Saturday, February 23, 2013

Running Hyper-V within a VMware guest

I was trying out Server 2012, and wanted to test a Hyper-V live migration, but didn’t have the resources to stand up 2 physical machines.

I had already installed VMware Workstation 9, configured 2 guest VMs with Server 2012, and wanted to Install Hyper-V within the guests.

When I tried to install the Hyper-V role, the following error occurred:



“Hyper-V cannot be installed: A hypervisor is already running.”

Shut the virtual machine down.  Backup the .vmx file, then open it with a text editor and add the following lines at the end:

hypervisor.cpuid.v0 = "FALSE"
mce.enable = "TRUE"




Save the .vmx file.

If you attempt install the Hyper-V role now, it will fail with the following error:



“Hyper-V cannot be installed: The processor does not have required virtualization capabilities."

Edit the settings of the VM in VMware and make the following change:

In Processors, tick the “Virtualize Intel VT-x/EPT or AMD-V/RVI and click OK.



Start the VM and install the Hyper-V role

References:
http://notes.doodzzz.net/2012/09/06/add-hyper-v-role-on-windows-server-2012-under-vmware-workstation-9/

2 comments:

  1. Hello ,

    I got the same error when I was running server 2012 in VirtualBox. Do you know anything that I can do with VirtualBox to run Hyper V ?

    Thanks.

    ReplyDelete
    Replies
    1. Hi, sorry I have never used Virtualbox.

      Delete