On Sat, Apr 11, 2009 at 11:41:14PM +0100, Richard W.M. Jones wrote:
On Thu, Apr 09, 2009 at 07:57:59PM +0200, Ján ONDREJ (SAL) wrote:
> Is it possible to implment something like qemu-img convert, which can dump
> whole filesystem to stdout and restore from it into liguestfs?
This is a tremendously good idea, and I'm not sure why I didn't think
of it because it's also something that people have asked me about with
virt-p2v (resizing existing partitions) :-)
So .. yes.
This might be of interest:
http://rwmj.wordpress.com/2009/04/20/libguestfs-fun-with-tar/
You can also now use the upload and download commands to inject and
extract whole partitions, LVs, etc.
Rich.
--
Richard Jones, Emerging Technologies, Red Hat
http://et.redhat.com/~rjones
virt-p2v converts physical machines to virtual machines. Boot with a
live CD or over the network (PXE) and turn machines into Xen guests.
http://et.redhat.com/~rjones/virt-p2v