This patch changes libguestfs to use the ext2-based appliance, cached
if possible.
I've tested this with the alpha version of febootstrap from here:
http://koji.fedoraproject.org/koji/buildinfo?buildID=191338
and it at least passes the tests.
There are some hacky bits right now:
(1) We add the root -drive option last on the command line, then (in
the initrd) reverse-search through the block devices, mounting the
first one we find. Dan pointed out that we could name the drive using
the qemu '-drive file=..,serial=LIBGUESTFSROOT' option, which would
allow unambiguous identification. However there are other issues with
this.
(2) We take steps to ignore the new device from the point of view of
the user, but I haven't rigorously gone through the whole API to check
that the device is truly hidden everywhere.
Rich.
--
Richard Jones, Virtualization Group, Red Hat
http://people.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