<div dir="ltr">You could just ask for the value of virt_type parameter from a compute host (or the output of something like grep 'virt_type' /etc/nova/nova*) if you are using qemu or kvm.  I believe that's how nova figures out what parameters to use when launching an instance.</div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, May 11, 2016 at 8:39 AM, Kris G. Lindgren <span dir="ltr"><<a href="mailto:klindgren@godaddy.com" target="_blank">klindgren@godaddy.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">In the next user survey - could we clarify that qemu == full software cpu emulation and kvm (qemu/kvm) = hardware accelerated virtualization or some similar phrasing.  It's totally possible that people are like: I run both qemu and kvm (thinking that’s qemu/kvm) - when in fact they only run kvm (qemu/kvm).<br>
<br>
___________________________________________________________________<br>
Kris Lindgren<br>
Senior Linux Systems Engineer<br>
GoDaddy<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
On 5/11/16, 11:58 AM, "Tim Bell" <<a href="mailto:Tim.Bell@cern.ch">Tim.Bell@cern.ch</a>> wrote:<br>
<br>
>Does anyone see a good way to fix this to report KVM or QEMU/KVM ?<br>
><br>
>I guess the worry is whether this would count as a bug fix or an incompatible change.<br>
><br>
>Tim<br>
><br>
>On 11/05/16 17:51, "Kashyap Chamarthy" <<a href="mailto:kchamart@redhat.com">kchamart@redhat.com</a>> wrote:<br>
><br>
>>On Tue, May 03, 2016 at 02:27:00PM -0500, Sergio Cuellar Valdes wrote:<br>
>><br>
>>[...]<br>
>><br>
>>> I'm confused too about the use of KVM or QEMU In the computes the<br>
>>> file​/etc/nova/nova-compute.conf has:<br>
>>><br>
>>> virt_type=kvm<br>
>>><br>
>>> The output of:<br>
>>><br>
>>> nova hypervisor-show <id> | grep hypervisor_type<br>
>>><br>
>>> is:<br>
>>><br>
>>> hypervisor_type           | QEMU<br>
>><br>
>>As Dan noted in his response, it's because it is reporting the libvirt driver<br>
>>name (which is reported as QEMU).<br>
>><br>
>>Refer below if you want to double-confirm if your instances are using KVM.<br>
>><br>
>>><br>
>>> The virsh dumpxml of the instances shows:<br>
>>><br>
>>> <domain type='kvm' id='44'><br>
>><br>
>>That means, yes, you using KVM.  You can confirm that by checking your QEMU<br>
>>command-line of the Nova instance, you'll see something like "accel=kvm":<br>
>><br>
>>      # This is on Fedora 23 system<br>
>>      $ ps -ef | grep -i qemu-system-x86_64<br>
>>      [...] /usr/bin/qemu-system-x86_64 -machine accel=kvm [...]<br>
>><br>
>>> ....<br>
>>> <emulator>/usr/bin/qemu-system-x86_64</emulator><br>
>>><br>
>>> ​But according to ​this document [1], it is using QEMU emulator instead of<br>
>>> KVM, because it is not using /usr/bin/qemu-kvm<br>
>>><br>
>>><br>
>>> So I really don't know if it's using KVM or QEMU.<br>
>><br>
>>As noted above, a sure-fire way to know is to see if the instance's QEMU<br>
>>command-line has "accel=kvm".<br>
>><br>
>>A related useful tool is `virt-host-validate` (which is part of libvirt-client<br>
>>package, at least on Fedora-based systems):<br>
>><br>
>>   $ virt-host-validate | egrep -i 'kvm'<br>
>>    QEMU: Checking if device /dev/kvm exists                                   : PASS<br>
>>    QEMU: Checking if device /dev/kvm is accessible                            : PASS<br>
>><br>
>><br>
>>> [1] <a href="https://libvirt.org/drvqemu.html" rel="noreferrer" target="_blank">https://libvirt.org/drvqemu.html</a><br>
>>><br>
>><br>
>><br>
>>--<br>
>>/kashyap<br>
>><br>
>>_______________________________________________<br>
>>OpenStack-operators mailing list<br>
>><a href="mailto:OpenStack-operators@lists.openstack.org">OpenStack-operators@lists.openstack.org</a><br>
>><a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators</a><br>
><br>
>_______________________________________________<br>
>OpenStack-operators mailing list<br>
><a href="mailto:OpenStack-operators@lists.openstack.org">OpenStack-operators@lists.openstack.org</a><br>
><a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators</a><br>
_______________________________________________<br>
OpenStack-operators mailing list<br>
<a href="mailto:OpenStack-operators@lists.openstack.org">OpenStack-operators@lists.openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators</a><br>
</blockquote></div><br></div>