[PATCH] Change to using ext2-based, cached supermin appliance.
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
I can report the good news that on Fedora 13 (ie. non-broken kernel) this patch and the updated febootstrap reduces the boot time below the magic number: real 0m4.954s user 0m2.117s sys 0m1.739s (Unfortunately the times are not as good with the broken kernel 2.6.35, because even with the much smaller -kernel and -initrd qemu-kvm takes many seconds to start up). Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming blog: http://rwmj.wordpress.com Fedora now supports 80 OCaml packages (the OPEN alternative to F#) http://cocan.org/getting_started_with_ocaml_on_red_hat_and_fedora
participants (1)
-
Richard W.M. Jones