How to Run Hyper-V in vSphere 5.1
Hyper-V cannot be installed
If you are running Hyper-V on a physical server (with no virtualization hypervisor in between) then either your CPU really is not compatible or you need to enable Intel-VT or AMD-V in your server’s BIOS.
However, if you are trying to run Hyper-V in a virtual machine (and your physical server has Intel-VT / AMD-V enabled) and you are getting this message in a VMware product then you need to make the tweaks below.
Step 1
If you are using vSphere 5 or greater then you need to modify the vmware config file on the ESXi host that will run the Hyper-V virtual machine. To edit this file, ssh to the server and vi /etc/config/vmware. Add the line vhv.allow = “TRUE” to the file and save it with “wq”.
Step 2
Next, power off the Hyper-V VM and remove it from inventory. Browse the datastore that the VM is stored on and download the VMX configuration file to your local computer. Use Wordpad, or a similar text editor, to edit the VMX configuration file that you downloaded.
Change the guestos line to read:
guestOS = “winhyperv”
Save the file and upload it back to the datastore using the datastore browser.
Right-click on the virtual machine’s VMX configuration and use “Add to Inventory” to add the VM back to the ESXi host that it was on (where you added the vhv.allow line).
Step 3
Finally, upgrade the virtual machine hardware to hardware version 9 by right-clicking on the VM and clicking Upgrade Virtual Hardware.
Now, power on the virtual machine and you shouldn’t have any trouble adding the Hyper-V role, as you see below.
With this configuration, you’ll also be able to run 64-bit nested virtual machines inside this virtualized Hyper-V host. In the example below, you can see Windows Server 2012 running inside Windows 2008 R2 as a Hyper-V VM, which is running inside vSphere 5.1 as a virtual machine (that’s a VM in a VM, all running inside vSphere).
No comments:
Post a Comment