<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">2014-06-02 17:35 GMT+02:00 Eric Blake <span dir="ltr"><<a href="mailto:eblake@redhat.com" target="_blank">eblake@redhat.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

On 06/02/2014 09:17 AM, Mario Di Ture wrote:<br>
> Hi,<br>
><br>
> I've tested this script on centos 6.5 (libvirt-0.10.2, qemu-kvm-0.12.1.2)<br>
> and<br>
> ubuntu server 14.04 (libvirt 1.2.2, qemu-kvm  2.0.0) with the same result.<br>
> The created vm is very slow compared to the vm created with virt-manager,<br>
> with the same features/devices on the same host.<br>
> Can you suggest any configuration that can avoid that slowness?<br>
<br>
Can you compare the output of 'virsh dumpxml' for the fast and the slow<br>
domain? My guess is that you forgot to request KVM hardware acceleration<br>
for the slow domain.  Look for '<domain type='kvm'> as well as for the<br>
right <emulator> binary.  'However, I'm not familiar enough with the<br>
libvirt-php bindings to suggest what to add to your code to get the<br>
correct XML.<br>
<span><font color="#888888"><br><br>
</font></span></blockquote></div><div class="gmail_extra"><br></div>That's right Eric, the setting is <domain type='kvm'> on the fast, and <span style="font-family:arial,sans-serif;font-size:13px"><domain type='qemu'> on the slow domain.</span></div>

<div class="gmail_extra"><font face="arial, sans-serif">It seems that the parameter cannot be passed with the  libvirt_domain_new function...looking for an alternative...</font></div><div class="gmail_extra"><font face="arial, sans-serif">Thanks for the tip!<br>
</font><br clear="all"><div><br></div><br>
</div></div>