I am still running VMWare Workstation 9, as I got a license
to use it when I passed my VCP 510 exam, and haven't yet found anything it cant
do.
I recently thought I might do at least one Windows Server 2012
exam, and as I specialise in VMWare Virtualisation, I thought I'd have a look
at the 70-410 exam which includes a piece on Hyper-V.
The Hyper V role doesn’t want to play nicely on my laptop
with VMWare Workstation installed, so I thought I would create a Windows Server
2012 R2 VM and try to get HyperV working on that.
I soon found that trying to install the HyperV role on a Windows
Server 2012 VM, without the below tweaks performed, will provoke the error
"Hyper-V cannot be installed: A hypervisor is already running."
To get around this, right click on the VM in Workstation,
and choose settings. Select Processers then select;
"Virtualise Intel VT-x/EPT or AMD-V/RVI"
Also, set the Virtualisation Engine preferred mode to "Intel
VT-x/EPT or AMD-V/RVI".
Click OK.
Finally, edit the vmx file in notepad (if you don’t know
about VMX files, right click on the VM in workstation and choose settings, then
click the Options tab and select Advanced. Highlight and copy the value in the "File
Locations: Configuration" field, then hold the windows key and press r to
bring up the Run dialog. Type notepad, then press space and insert the copied
path, then press return).
Copy and paste the below line to a new line of its own, then
save and close notepad.
hypervisor.cpuid.v0 = "FALSE"
*If you copy and paste the above, ensure the speech marks
around the word FALSE are straight and not curved*
You can now power on the VM, and go to Server Manager to click
"Add Roles and features". Tick the box next to Hyper-V, then click
Next until you can click Install.