{"id":635,"date":"2016-04-29T16:08:49","date_gmt":"2016-04-29T15:08:49","guid":{"rendered":"http:\/\/www.haxed.me.uk\/?p=635"},"modified":"2016-04-29T16:11:36","modified_gmt":"2016-04-29T15:11:36","slug":"configure-nested-kvm-intel-based-machines","status":"publish","type":"post","link":"https:\/\/haxed.me.uk\/index.php\/2016\/04\/29\/configure-nested-kvm-intel-based-machines\/","title":{"rendered":"Configure Nested KVM for Intel &#038; AMD based Machines"},"content":{"rendered":"<p>So, we are configuring some openstack and kvm stuff at work for some projects. We&#8217;re &#8216;cloudy&#8217; guys. What can I say? \ud83d\ude00 One Issue I had when installing xenserver, underneath KVM. <\/p>\n<p>(why would we do this?) In our testing environment we&#8217;re using a single OnMetal v2 server, and, instead of running xenserver directly on the server, and requiring additional servers, we are using a single 128GB RAM hypervisor for the test environment. One issue though is that Windows is only supported with xenserver when directly run on the &#8216;host&#8217;. Because Xen is running virtualized under KVM we have a problem.<\/p>\n<p>Enter, tested virtualization support. Hardware virtualization assist support will now work for xenserver thru KVM, which means I can boot windows servers. YAY! uh.. \ud83d\ude09 kinda. <\/p>\n<h1> Check if Nested hardware virtualization assist is enabled <\/h1>\n<pre>\r\n$cat \/sys\/module\/kvm_intel\/parameters\/nested\r\nN\r\n<\/pre>\n<p>It wasn&#8217;t \ud83d\ude41 Lets enable it<\/p>\n<h1> Enable nested hardware virtualization assist <\/h1>\n<pre>\r\nsudo rmmod kvm-intel\r\nsudo sh -c \"echo 'options kvm-intel nested=y' >> \/etc\/modprobe.d\/dist.conf\"\r\nsudo modprobe kvm-intel\r\n<\/pre>\n<h1> Ensure nested hardware virtualization is enabled <\/h1>\n<pre>\r\ncat \/sys\/module\/kvm_intel\/parameters\/nested\r\nY\r\n\r\nmodinfo kvm_intel | grep nested\r\nparm:           nested:bool\r\n<\/pre>\n<p>It worked!<\/p>\n<p>This can also be done for AMD systems simply substituting kvm_amd.<\/p>\n<p>http:\/\/docs.openstack.org\/developer\/devstack\/guides\/devstack-with-nested-kvm.html<\/p>\n","protected":false},"excerpt":{"rendered":"<p>So, we are configuring some openstack and kvm stuff at work for some projects. We&#8217;re &#8216;cloudy&#8217; guys. What can I say? \ud83d\ude00 One Issue I had when installing xenserver, underneath KVM. (why would we do this?) In our testing environment &hellip; <a href=\"https:\/\/haxed.me.uk\/index.php\/2016\/04\/29\/configure-nested-kvm-intel-based-machines\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[49,9,52,50,5,53],"tags":[],"class_list":["post-635","post","type-post","status-publish","format-standard","hentry","category-kvm","category-linux","category-virtualization","category-windows","category-xen","category-xenserver"],"_links":{"self":[{"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/posts\/635","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/comments?post=635"}],"version-history":[{"count":2,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/posts\/635\/revisions"}],"predecessor-version":[{"id":637,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/posts\/635\/revisions\/637"}],"wp:attachment":[{"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/media?parent=635"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/categories?post=635"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/tags?post=635"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}