How to install Hyper-V server role on a VMware ESXi 6.5 Windows cluster virtual machine.

The reason to install Hyper-V on multiple servers in my cluster is to get familiar with the Hyper-V (Virtual Machine) Cluster server role for exam 70-412. Unfortunately Microsoft doesn't like the fact that i'm trying to install Hyper-V in a virtual envoirement.
Because the installation of Hyper-V will check if you are running in a virtualizes environment you have to perform a little trick so the virtual machine doesn’t know it is being virtualized. The easiest way to do this is to power down the virtual machine and enable SSH on the host where the Virtual Machine is running on. You can achieve this by using the web interface which in my case is on https://192.168.2.5/ui/#/login
After this you need to navigate to Host -> Manage -> Services and enable TSM and TSM-SSH, do not forget to turn this of when you're done for security reasons.














After you enabled SSH you can use Putty to connect to the server through the ip adress which is: 192.168.2.5










After we logged on to the ESXi host you can use the following commands to navigate to the correct Virtual Machine:

[username@ESXi01:~] cd vmfs/
[username@ESXi01:/vmfs] cd volumes/
[username@ESXi01:/vmfs/volumes] cd HDD_Fileserver/
[username@ESXi01:/vmfs/volumes/ HARDDISKGUID] cd IIS01
[username@ESXi01:/vmfs/volumes/HARDDISKGUID/IIS01] vi IIS01.vmx












































As you can see in the picture above i have added the lines by pressing the insert button on my keyboard:
vhv.enable = "TRUE"
hypervisor.cpuid.v0 = "FALSE"

When done press the escape key and type in ZZ to close and save the vmx file, start your VM and give the operation another try:

Install-WindowsFeature -ComputerName Node3 -Name Hyper-V -IncludeManagementTools

Or in my case i want to install these features on all nodes in my cluster:

foreach ($Node in (Get-Cluster -Name Clust | Get-ClusterNode | Select -ExpandProperty Name)) { Install-WindowsFeature -ComputerName $Node -Name Hyper-V -IncludeManagementTools }

Don't forget to initiate a reboot after installation if needed.
























Comments

Popular posts from this blog

How to use your NVidia Graphics Card in VMware Passthrough mode (Bypass Windows Error 43)

Let’s automate! Building an Application Delivery Portal (DEV-Process)