Quantcast
Channel: VMware Communities : Blog List - All Communities
Viewing all articles
Browse latest Browse all 3135

Running Hyper-V on a VM

$
0
0

A few days ago I was doing some testing with Hyper-V. As I can easily create a Windows Server using vSphere (6.5 in my case), I decided create my Hyper-V host on a VM.

In order to get this to work I created a VM running Windows Server 2019 and then I needed to do some customization to it.

 

VM CPU Settings

 

When creating the VM, change the CPU/MMU Virtualization settings to Hardware CPU and MMU.

 

Screenshot 2019-05-04 at 13.47.39.png

 

After the VM is created, make sure it's Powered Off, and navigate to its folder under the Storage menu on vSphere.

Download the <VM Name>.vmx file to your PC and open it with a Text Editor.

 

In the end of the file, add those lines:

 

hypervisor.cpuid.v0 = "FALSE"

vhv.enable = "TRUE"

 

Screenshot 2019-05-04 at 13.57.09.png

 

Save the VMX file and upload it back to the VMs folder. In my case, instead of overwriting the file in the datastore, I renamed it to <VM Name>.vmx.old.

 

Screenshot 2019-05-04 at 12.58.33.png

 

 

Installing Hyper-V

 

Power on the VM, install Windows and VMware Tools if you haven't done so, and then go to Server Manager.

Click Add roles and features and follow the wizard to install Hyper-V.

 

Screenshot 2019-05-04 at 14.22.40.png

 

Restart the Server as requested, then launch Hyper-V Manager.

 

Screenshot 2019-05-04 at 14.31.01.png

 

As a quick test, create a new VM with the default values (click New > Virtual Machine and then follow the wizard). From my testing, you would get an error message when trying to Power On this VM if something is wrong with the Hyper-V VM.

 

 

Networking

 

After creating my test VM, I noticed that I could not ping anywhere in the network apart from itself and the Hyper-V Host. I checked the Virtual Switch Manager on Hyper-V and also the Networking settings on the VM, and all seemed to be configured as expected. The way I got it to work was by going to the ESXi Console and enabling Promiscuous mode and Forged transmits in the vSwitch that was connected to the Hyper-V Server VM.

 

Screenshot 2019-05-04 at 00.40.55.png

 

Screenshot 2019-05-04 at 00.41.10.png

 

 

 

 

--

 

This configuration was done on my testing environment and I cannot guarantee this is fit for production environments.

 

The postings on this site are my own and do not represent VMware’s positions, strategies or opinions.


Viewing all articles
Browse latest Browse all 3135

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>