<div dir="ltr"><div>I have been curious as to why as mentioned in the thread virt_type=kvm, but os-hypervisors API call states QEMU.</div><div><br></div>Interestingly this command mentioned (which works on Ubuntu) gives me a FAIL and WARN on my home test setup that runs on physical H/W.<div><br></div><div><br></div><div><div>$ virt-host-validate<br></div><div> QEMU: Checking for hardware virtualization : PASS</div><div> QEMU: Checking for device /dev/kvm : FAIL (Check that the 'kvm-intel' or 'kvm-amd' modules are loaded & the BIOS has enabled virtualization)</div><div> QEMU: Checking for device /dev/vhost-net : WARN (Load the 'vhost_net' module to improve performance of virtio networking)</div><div> QEMU: Checking for device /dev/net/tun : PASS</div><div> LXC: Checking for Linux >= 2.6.26 : PASS</div></div><div><br></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div><div style="font-family:arial;font-size:small">Ronald Bradford</div><div style="font-family:arial;font-size:small"><br></div><span style="color:rgb(102,102,102)">Web Site: </span><a style="color:rgb(102,102,102)" href="http://ronaldbradford.com/" target="_blank">http://ronaldbradford.com</a><br style="color:rgb(102,102,102)">
<span style="color:rgb(102,102,102)">LinkedIn: </span><a style="color:rgb(102,102,102)" href="http://www.linkedin.com/in/ronaldbradford" target="_blank">http://www.linkedin.com/in/ronaldbradford</a><br><span style="color:rgb(102,102,102)">Twitter: </span><a style="color:rgb(102,102,102)" href="http://twitter.com/ronaldbradford" target="_blank">@RonaldBradford</a><br>
<span style="color:rgb(102,102,102)">Skype: RonaldBradford</span><div><span style="color:rgb(102,102,102)">GTalk: Ronald.Bradford<br></span><div><span style="color:rgb(102,102,102)">IRC: rbradfor<br></span><br></div></div></div></div></div></div></div></div></div></div></div>
<br><div class="gmail_quote">On Wed, May 11, 2016 at 12:18 PM, Maish Saidel-Keesing <span dir="ltr"><<a href="mailto:maishsk@maishsk.com" target="_blank">maishsk@maishsk.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<p>Which still brings me back to the original point.</p>
<p>Is this a bug - and should it be reported as such? <br>
</p><div><div class="h5">
<p><br>
</p>
<br>
<div>On 11/05/16 18:51, Kashyap Chamarthy
wrote:<br>
</div>
<blockquote type="cite">
<pre>On Tue, May 03, 2016 at 02:27:00PM -0500, Sergio Cuellar Valdes wrote:
[...]
</pre>
<blockquote type="cite">
<pre>I'm confused too about the use of KVM or QEMU In the computes the
file/etc/nova/nova-compute.conf has:
virt_type=kvm
The output of:
nova hypervisor-show <id> | grep hypervisor_type
is:
hypervisor_type | QEMU
</pre>
</blockquote>
<pre>As Dan noted in his response, it's because it is reporting the libvirt driver
name (which is reported as QEMU).
Refer below if you want to double-confirm if your instances are using KVM.
</pre>
<blockquote type="cite">
<pre>The virsh dumpxml of the instances shows:
<domain type='kvm' id='44'>
</pre>
</blockquote>
<pre>That means, yes, you using KVM. You can confirm that by checking your QEMU
command-line of the Nova instance, you'll see something like "accel=kvm":
# This is on Fedora 23 system
$ ps -ef | grep -i qemu-system-x86_64
[...] /usr/bin/qemu-system-x86_64 -machine accel=kvm [...]
</pre>
<blockquote type="cite">
<pre>....
<emulator>/usr/bin/qemu-system-x86_64</emulator>
But according to this document [1], it is using QEMU emulator instead of
KVM, because it is not using /usr/bin/qemu-kvm
So I really don't know if it's using KVM or QEMU.
</pre>
</blockquote>
<pre>As noted above, a sure-fire way to know is to see if the instance's QEMU
command-line has "accel=kvm".
A related useful tool is `virt-host-validate` (which is part of libvirt-client
package, at least on Fedora-based systems):
$ virt-host-validate | egrep -i 'kvm'
QEMU: Checking if device /dev/kvm exists : PASS
QEMU: Checking if device /dev/kvm is accessible : PASS
</pre>
<blockquote type="cite">
<pre>[1] <a href="https://libvirt.org/drvqemu.html" target="_blank">https://libvirt.org/drvqemu.html</a>
</pre>
</blockquote>
<pre>
</pre>
</blockquote>
<br>
</div></div><span class="HOEnZb"><font color="#888888"><div>-- <br>
Best Regards,<br>
Maish Saidel-Keesing</div>
</font></span></div>
<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></blockquote></div><br></div>