[Libguestfs] It takes too long time for guestfish to launch

Matthew Booth mbooth at redhat.com
Fri Aug 7 07:42:46 UTC 2009


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




More information about the Libguestfs mailing list