{"id":89,"date":"2016-02-04T10:00:01","date_gmt":"2016-02-04T15:00:01","guid":{"rendered":"https:\/\/www.sqlskills.com\/blogs\/tim\/?p=89"},"modified":"2016-02-04T01:02:29","modified_gmt":"2016-02-04T06:02:29","slug":"how-to-run-windows-server-2012-hyper-v-on-vmware-workstation","status":"publish","type":"post","link":"https:\/\/www.sqlskills.com\/blogs\/tim\/how-to-run-windows-server-2012-hyper-v-on-vmware-workstation\/","title":{"rendered":"How to run Windows Server 2012 Hyper-V on VMware Workstation"},"content":{"rendered":"<p>I recently needed to create a new virtual machine, however with this virtual machine I needed to demo Windows Server 2012 with Hyper-V enabled. Since I run VMware Workstation as my hypervisor on my laptop, I needed to run a hypervisor within a hypervisor.<\/p>\n<p>Installing Windows Server 2012 was no problem, however when I tried to add the Hyper-V server role I received an error<\/p>\n<p><a href=\"https:\/\/www.sqlskills.com\/blogs\/tim\/wp-content\/uploads\/2016\/02\/AddRoles1.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-83\" src=\"https:\/\/www.sqlskills.com\/blogs\/tim\/wp-content\/uploads\/2016\/02\/AddRoles1-300x212.png\" alt=\"AddRoles1\" width=\"300\" height=\"212\" srcset=\"https:\/\/www.sqlskills.com\/blogs\/tim\/wp-content\/uploads\/2016\/02\/AddRoles1-300x212.png 300w, https:\/\/www.sqlskills.com\/blogs\/tim\/wp-content\/uploads\/2016\/02\/AddRoles1.png 800w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><br \/>\nCheck Hyper-V and click next<br \/>\n<\/a><\/p>\n<p><a href=\"https:\/\/www.sqlskills.com\/blogs\/tim\/wp-content\/uploads\/2016\/02\/AddRoles2.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-84\" src=\"https:\/\/www.sqlskills.com\/blogs\/tim\/wp-content\/uploads\/2016\/02\/AddRoles2-300x300.png\" alt=\"AddRoles2\" width=\"300\" height=\"300\" srcset=\"https:\/\/www.sqlskills.com\/blogs\/tim\/wp-content\/uploads\/2016\/02\/AddRoles2-300x300.png 300w, https:\/\/www.sqlskills.com\/blogs\/tim\/wp-content\/uploads\/2016\/02\/AddRoles2-150x150.png 150w, https:\/\/www.sqlskills.com\/blogs\/tim\/wp-content\/uploads\/2016\/02\/AddRoles2-144x144.png 144w, https:\/\/www.sqlskills.com\/blogs\/tim\/wp-content\/uploads\/2016\/02\/AddRoles2.png 430w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><br \/>\nI then click Add Feature and&#8230;..<\/a><\/p>\n<p><a href=\"https:\/\/www.sqlskills.com\/blogs\/tim\/wp-content\/uploads\/2016\/02\/AddRoles3.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-85\" src=\"https:\/\/www.sqlskills.com\/blogs\/tim\/wp-content\/uploads\/2016\/02\/AddRoles3-300x191.png\" alt=\"AddRoles3\" width=\"300\" height=\"191\" srcset=\"https:\/\/www.sqlskills.com\/blogs\/tim\/wp-content\/uploads\/2016\/02\/AddRoles3-300x191.png 300w, https:\/\/www.sqlskills.com\/blogs\/tim\/wp-content\/uploads\/2016\/02\/AddRoles3.png 535w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><br \/>\nThis is where things failed. Hyper-V cannot be installed: A hypervisor is already running.<\/a><\/p>\n<p>By default, you cannot install a hypervisor under another hypervisor. However there is a work around. First you to power down your VM and edit the .vmx file for that VM. You will need to add a two lines of code, save the file and then startup the VM.<\/p>\n<p>hypervisor.cpuid.v0 = &#8220;FALSE&#8221;<br \/>\nmce.enable = &#8220;TRUE&#8221;<\/p>\n<p><a href=\"https:\/\/www.sqlskills.com\/blogs\/tim\/wp-content\/uploads\/2016\/02\/Edit_vmx_file.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-86\" src=\"https:\/\/www.sqlskills.com\/blogs\/tim\/wp-content\/uploads\/2016\/02\/Edit_vmx_file-300x93.png\" alt=\"Edit_vmx_file\" width=\"300\" height=\"93\" srcset=\"https:\/\/www.sqlskills.com\/blogs\/tim\/wp-content\/uploads\/2016\/02\/Edit_vmx_file-300x93.png 300w, https:\/\/www.sqlskills.com\/blogs\/tim\/wp-content\/uploads\/2016\/02\/Edit_vmx_file.png 388w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Once I edited the VM and restarted and tried to add the Hyper-V role, I received another error regarding my CPU type. Hyper-V cannot be installed: The processor does not have required virtualization capabilities.<\/p>\n<p><a href=\"https:\/\/www.sqlskills.com\/blogs\/tim\/wp-content\/uploads\/2016\/02\/Error.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-87\" src=\"https:\/\/www.sqlskills.com\/blogs\/tim\/wp-content\/uploads\/2016\/02\/Error-300x199.png\" alt=\"Error\" width=\"300\" height=\"199\" srcset=\"https:\/\/www.sqlskills.com\/blogs\/tim\/wp-content\/uploads\/2016\/02\/Error-300x199.png 300w, https:\/\/www.sqlskills.com\/blogs\/tim\/wp-content\/uploads\/2016\/02\/Error.png 531w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>To correct this I needed to again power down the VM and edit the virtual machine settings, specifically, the processor values.<\/p>\n<p><a href=\"https:\/\/www.sqlskills.com\/blogs\/tim\/wp-content\/uploads\/2016\/02\/vmware_changes.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-88\" src=\"https:\/\/www.sqlskills.com\/blogs\/tim\/wp-content\/uploads\/2016\/02\/vmware_changes-300x138.png\" alt=\"vmware_changes\" width=\"300\" height=\"138\" srcset=\"https:\/\/www.sqlskills.com\/blogs\/tim\/wp-content\/uploads\/2016\/02\/vmware_changes-300x138.png 300w, https:\/\/www.sqlskills.com\/blogs\/tim\/wp-content\/uploads\/2016\/02\/vmware_changes.png 685w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Once I change the preferred mode to &#8220;Intel VT-x\/EPT or AMD-V\/RVI&#8221; and checked the box for &#8220;Virtualize Intel VT-x\/EPT or AMD-V\/RVI&#8221; I was able to successfully add the Hyper-V role to my VM and start provisioning additional VM&#8217;s under Hyper-V.<\/p>\n<p><a href=\"https:\/\/www.sqlskills.com\/blogs\/tim\/wp-content\/uploads\/2016\/02\/hyperv.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-90\" src=\"https:\/\/www.sqlskills.com\/blogs\/tim\/wp-content\/uploads\/2016\/02\/hyperv-300x137.png\" alt=\"hyperv\" width=\"300\" height=\"137\" srcset=\"https:\/\/www.sqlskills.com\/blogs\/tim\/wp-content\/uploads\/2016\/02\/hyperv-300x137.png 300w, https:\/\/www.sqlskills.com\/blogs\/tim\/wp-content\/uploads\/2016\/02\/hyperv.png 591w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>If you experience any of these issues then I hope this post solves your issues like it did mine.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I recently needed to create a new virtual machine, however with this virtual machine I needed to demo Windows Server 2012 with Hyper-V enabled. Since I run VMware Workstation as my hypervisor on my laptop, I needed to run a hypervisor within a hypervisor. Installing Windows Server 2012 was no problem, however when I tried [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[23,22],"tags":[27,25,26,28,24],"_links":{"self":[{"href":"https:\/\/www.sqlskills.com\/blogs\/tim\/wp-json\/wp\/v2\/posts\/89"}],"collection":[{"href":"https:\/\/www.sqlskills.com\/blogs\/tim\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sqlskills.com\/blogs\/tim\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sqlskills.com\/blogs\/tim\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sqlskills.com\/blogs\/tim\/wp-json\/wp\/v2\/comments?post=89"}],"version-history":[{"count":0,"href":"https:\/\/www.sqlskills.com\/blogs\/tim\/wp-json\/wp\/v2\/posts\/89\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.sqlskills.com\/blogs\/tim\/wp-json\/wp\/v2\/media?parent=89"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sqlskills.com\/blogs\/tim\/wp-json\/wp\/v2\/categories?post=89"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sqlskills.com\/blogs\/tim\/wp-json\/wp\/v2\/tags?post=89"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}