How to enable Hyper-V role in VMware VM (nested Hyper-V)

When trying to enable Hyper-V role in your Windows 2012R2 recently installed into VMware VM you may get this:


Don't worry! There is workaround. Switch off your VM and browse the folder (on the VMware datastore, you may have SAN etc, does not matter), just find out .vmx file that is responsible for your VM configuration and do the following change at the end (actually just add these two lines):

    
vhv.enable = “TRUE”
hypervisor.cpuid.v0 = “FALSE”
    

In short, this is about:
#vmware
#nested hyper-v
#hyper-v

Start discussion:
Related articles:
20 this virtual machine appears to be in use preview
This virtual machine appears to be in use, quick resolution. ... more
about 2 years#vmware