Zhang Qian
2009-Aug-07 07:11 UTC
[Libguestfs] It takes too long time for guestfish to launch
Hi, I am using guestfish, and found subcommand "launch" took about 20 seconds to finish for a 4GB disk image. Is there any way to improve the performance? Thanks! Regards, Qian
Matthew Booth
2009-Aug-07 07:42 UTC
[Libguestfs] It takes too long time for guestfish to launch
On 07/08/09 08:11, Zhang Qian wrote:> Hi, > > I am using guestfish, and found subcommand "launch" took about 20 > seconds to finish for a 4GB disk image. > Is there any way to improve the performance? Thanks!The launch command boots a virtual appliance, so it's the time taken to boot rather than the size of the disk image which is important. The most important thing is to ensure your appliance is using KVM. Check that the output of 'virsh capabilities' returns a guest structure containing a domain type of kvm. Also, if you're running as non-root, ensure that /dev/kvm has appropriate permissions. You can do this temporarily by doing chmod 0666 /dev/kvm, or permanently by adding the following to /etc/udev/rules.d/10-kvm.rules: KERNEL=="kvm", NAME="%k", MODE="0666",OWNER="root",GROUP="root" However, having done all of the above, it's still never going to be blisteringly quick. Matt -- Matthew Booth, RHCA, RHCSS Red Hat Engineering, Virtualisation Team M: +44 (0)7977 267231 GPG ID: D33C3490 GPG FPR: 3733 612D 2D05 5458 8A8A 1600 3441 EA19 D33C 3490
Richard W.M. Jones
2009-Aug-07 08:04 UTC
[Libguestfs] It takes too long time for guestfish to launch
On Fri, Aug 07, 2009 at 03:11:25PM +0800, Zhang Qian wrote:> I am using guestfish, and found subcommand "launch" took about 20 > seconds to finish for a 4GB disk image. > Is there any way to improve the performance? Thanks!This is normal, see: http://libguestfs.org/FAQ.html#slow Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones Read my programming blog: http://rwmj.wordpress.com Fedora now supports 75 OCaml packages (the OPEN alternative to F#) http://cocan.org/getting_started_with_ocaml_on_red_hat_and_fedora