How to install/run Hyper-V host as a VM(nested) on vSphere 5 or 6?
To be able to run nested Hyper-V hosts, you need to follow the below steps:
- Create a new VM on vSphere with Windows 2012 R2 installed on it.
- Power off the VM.
- If use Web Client please right click on VM and select Edit Settings.
On Virtual Hardware tab, collapse CPU and change CPU/MMU Virtualization
option to Hardware CPU and MMU.
via Standard Client: please right click on VM and select Edit
Settings. On Options tab please click on CPU/MMU Virtualization option
and select Use Intel VT-x/AMD-V for instructions set virtualization and Intel EPT/AMD RVI for MMU virtualization. - Click OK to save new settings.
- Right click on VM and remove it from inventory.
- Locate the VM folder on datastore, download a VM .vmx file to your desktop.
-
Open the VM vmx file and add two below options at the end of file. Save the file.
hypervisor.cpuid.v0 = "FALSE"
vhv.enable= "TRUE" - Upload the file again to datastore.
- Add to inventory/Register the VM again.
- Power on VM and please add Hyper-V role. (Server Manager --> Add Role --> Hyper-V)
- As you can see everything works well and virtual machines can be created inside nested Hyper-V as well
Hyper-V cannot be installed: A hypervisor is already running
No comments:
Post a Comment