[libvirt] [libvirt-php] libvirt_domain_new Create a slow vm

Eric Blake eblake at redhat.com
Mon Jun 2 15:35:31 UTC 2014


On 06/02/2014 09:17 AM, Mario Di Ture wrote:
> Hi,
> 
> I've tested this script on centos 6.5 (libvirt-0.10.2, qemu-kvm-0.12.1.2)
> and
> ubuntu server 14.04 (libvirt 1.2.2, qemu-kvm  2.0.0) with the same result.
> The created vm is very slow compared to the vm created with virt-manager,
> with the same features/devices on the same host.
> Can you suggest any configuration that can avoid that slowness?

Can you compare the output of 'virsh dumpxml' for the fast and the slow
domain? My guess is that you forgot to request KVM hardware acceleration
for the slow domain.  Look for '<domain type='kvm'> as well as for the
right <emulator> binary.  'However, I'm not familiar enough with the
libvirt-php bindings to suggest what to add to your code to get the
correct XML.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 604 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20140602/de1896c5/attachment-0001.sig>


More information about the libvir-list mailing list