Hyper-V installation in Vsphere 5.1


To install Hyper-V in an Esx server, the following requirements to be done before the installation of Windows2012 OS.

Step-1:

If you are using vSphere 5 or greater then you need to modify the vmware config file on the ESXi host that will run the Hyper-V virtual machine. To edit this file, ssh to the server and vi /etc/config/vmware. Add the line vhv.allow = “TRUE” to the file and save it with “wq”.

Hyper-V cannot be installed-2

Step-2: In the .VMX config file, path /vmfs/volumes/datastores/VMfolder (HyperV-VM), adding these 4 lines:

mce.enable = "TRUE"
hypervisor.cpuid.v0 = "FALSE"
featMask.vm.hv.capable = "Min:1"
vhv.enable = "TRUE"

Alternatively, you should change the suffice guestOS line to
guestOS = "winhyperv" in the .vmx config file and save the file.

Now the Hyper-V VM can be successfully power on without any issues.

 

For more info : http://www.tinkertry.com/vmware-esxi-5-1-can-run-microsoft-hyper-v-server-2012-vms-nice/

 

 

Advertisements

Installation of Hyper-V Windows2012


When you install Hyper-V in windows 2012 in the add and remove roles you will get an error message “Hyper-V cannot be installed: A hypervisor is already running. Refer screen shot below.

 

Hyper-v-role-issue

 

 

 

 

 

 

 

Solution:

The first thing you need to do is to open and change the PowerShell execution policy scripts to RemoteSigned then run the following command to install the Hyper-V :

C:\> Get-ExcutionPolicy

c:\>Enable-WindowsOptionalFeature –Online -FeatureName Microsoft-Hyper-V –All -NoRestart

The above command installs only the hypervisor but does not install the administration tools, so you can manage the Hyper-V within the virtual machine you must install RSAT for Hyper-V to do this run the following command:

c:\> Install-WindowsFeature RSAT-Hyper-V-Tools -IncludeAllSubFeature

 

Now I suppose you want to create a cluster then you need to install the Cluster service,  run:

c:\>Install-WindowsFeature RSAT-Clustering -IncludeAllSubFeature

 

Optionally you can install Multipath I/O to enable multiple paths to the storage, if this is your case follow:

c:\>Install-WindowsFeature Multipath-IO

Then restart Computer

c:\>Restart-Computer

 

Windows2012 Hyper-V successfully installed.