We all know that a HYPERVISOR can only be installed and officially supported in physical servers.

But today I am sharing the tricks to install it on VM, for study and practice purpose only.

Normally when you tried to install the Hyper-V in Windows Server 2012 through Server Manager probably encountered the following message:

Hyper-V Cannot be installed.  A hypervisor is already running.

img1

Now through PowerShell we can install the same role.

Open PowerShell Run as administrator and execute the below command to install Hyper-V role,

Enable-WindowsOptionalFeature –Online -FeatureName Microsoft-Hyper-V –All –NoRestart

img2

As we mentioned norestart, restart is suppressed.

The above command installs only the hypervisor but does not install the administration tools, so you must install RSAT for Hyper-V to do this run the below command,

Install-WindowsFeature RSAT-Hyper-V-Tools -IncludeAllSubFeature

img3

Now Reboot the server.

After reboot, we can see the Hyper-V Manager and now I can install VM’s on it.

img4

If you want the Hyper-V clustering then proceed the below steps.

Run the below command to install clustering features,

Install-WindowsFeature RSAT-Clustering –IncludeAllSubFeature

img5

Optionally you can install Multipath I/O to enable multiple paths to the storage for failover clustering.  Run the below command,

Install-WindowsFeature Multipath-IO

img6

Now again restart the computer and you can see Hyper-V and Failover Clustering in Server Manager.

img7

Finally now you can install vm’s on the Hyper-V manager and also you can configure the Hyper-V Failover clustering.

img8

img9

This post will be useful for the lab and self-study purpose.