{"id":2912,"date":"2018-10-26T19:43:02","date_gmt":"2018-10-26T18:43:02","guid":{"rendered":"https:\/\/kudzia.eu\/b\/?p=2912"},"modified":"2018-10-26T19:43:16","modified_gmt":"2018-10-26T18:43:16","slug":"kvm-disabled-by-bios","status":"publish","type":"post","link":"https:\/\/kudzia.eu\/b\/2018\/10\/kvm-disabled-by-bios\/","title":{"rendered":"kvm: disabled by bios"},"content":{"rendered":"<p>does your kvm VM feel sluggish? mine did feel pretty slow.. as it turned out virt-install quietly overrode &#8216;hvm&#8217; preferences and created a fully emulated qemu vm when it failed to make use of hardware-assisted virtualization.<br \/>\n<!--more--><\/p>\n<p>after noticing unusually slow boot time i&#8217;ve run both on the host and guest:<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nroot@host:~# openssl speed md5\r\nDoing md5 for 3s on 16 size blocks: 21529562 md5's in 3.00s\r\n<\/pre>\n<p>vs<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nroot@guest:~# openssl speed md5\r\nDoing md5 for 3s on 16 size blocks: 2072732  md5's in 3.00s\r\n<\/pre>\n<p>notice that the later result is ~ 10x slower. i&#8217;ve diffed \/etc\/libvirt\/qemu\/guest.xml with a definition of similar VM from another server and found out the difference:<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n&lt; &lt;domain type='kvm'&gt;\r\n---\r\n&gt; &lt;domain type='qemu'&gt;\r\n<\/pre>\n<p>editing the definition file manually and trying to start the guest cryptic:<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nerror: Failed to start domain guest\r\nerror: unsupported configuration: Domain requires KVM, but it is not available. Check that virtualization is enabled in the host BIOS, and host configuration is setup to load the kvm modules.\r\n<\/pre>\n<p>since \/proc\/cpuinfo contained lines with <b>vmx<\/b> and i had another identical physical server with well performing KVM guests &#8211; i&#8217;ve checked BIOS and indeed &#8211; interl virtualisation technology was disabled. after flipping it on it was possible to boot the KVM guest with <i>type=&#8217;kvm&#8217;<\/i>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>does your kvm VM feel sluggish? mine did feel pretty slow.. as it turned out virt-install quietly overrode &#8216;hvm&#8217; preferences and created a fully emulated qemu vm when it failed to make use of hardware-assisted virtualization.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[51],"tags":[49,50],"class_list":["post-2912","post","type-post","status-publish","format-standard","hentry","category-unimportant","tag-kvm","tag-libvirt"],"_links":{"self":[{"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/posts\/2912","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/comments?post=2912"}],"version-history":[{"count":2,"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/posts\/2912\/revisions"}],"predecessor-version":[{"id":2914,"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/posts\/2912\/revisions\/2914"}],"wp:attachment":[{"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/media?parent=2912"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/categories?post=2912"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/tags?post=2912"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}