Share via


Hyper-V Server Installation and Configuration

 

Overview

After an extensive research of at least 2 working weeks here I am writing this post after successfully installing a win hyper V server .

Some prerequisites 

  • Make sure you have a x64 server hardware
  • and the hardware support hardware virtualization

INSTALL

One checked download the hyper V server (its free) from http://www.microsoft.com/hyper-v-server/en/us/how-to-get.aspx

Burn the CD or DVD you will need it later. For my testing lab I was using a HP ProLiant server which comes with support CD to install new OS. Insert the server installation CD from the hardware manufacturer and choose windows 20008 x64 and then Hyper V server.

Fill in the blanks , choose your partition size and at a point of time you will be asked to insert the hyper V CD ./ DVD and finish the installation process . As hyper V is not an operating system and it only sits on the hardware layer so there is no GUI. :(( . And on 1st login what you get is a dos command (classic) and another one with series of options like change net bios name  , add DNS or join a domain . 

However if you are already have a NIC connected set the IP and DNS and use option no 6 on Hyper V server to download all the updates and patches if available. Option no 7 is for setting the automatic updates , be careful this will download and install every night which as well means restarting any VM's running.

It is important to note that if you are deploying this server in an existing network environment, it is advisable you join the server to the domain by selecting option no 1. And you will be prompted for a user name / password followed by a restart.

For the purpose of my lab environment I have used a domain environment with win 2000 DC installed. After restarting the machine log in using your domain account. 

At this point of time your Hyper V server is ready to roll. 

MANAGE

In order to manage the Hyper V server all you have is hyper V manager from another console or desktop. I am using my laptop with Windows 7 enterprise .

1st thing is to download win 7 hyper v manager. you can get it from here http://www.microsoft.com/downloads/en/details.aspx?familyid=88208468-0AD6-47DE-8580-085CBA42C0C2&displaylang=en

2nd thing is to perform some config on the hyper V server itself for remote management . follow the below steps.

  • add the hyper V server to the domain
  • on the hyper v console type  netsh advfirewall firewall set rule group="Windows Management Instrumentation (WMI)" new enable=yes
  • press enter make sure you received a success with 4 rules OK  
  • then add the domain user you are using to manage this server from i.e. the domain account you are using to connect to this server. For my testing I logged onto hyper V server and my laptop using the same domain user . Type this command and press enter , make sure to change the last bit to your own domain details net localgroup “Distributed COM Users” /add TWINKLE\tarun
  • one last setting is to enable remote desktop option on the hyper V , which you can enable by selecting the option on the dos prompt of the hyper V.
  • Restart the server .

Hyper V Manager (PRE-CONFIG)

I am assuming that you are also logged into domain on Hyper V server and your management station using the same domain account.  I am also assuming that you are using windows 7 as management station . I guess win vista is just the same.

  • Inside Control Panel -->System and Security ---->Administrative Tools . Select the 2nd option i.e. computer management. This will open up local computer management windows. 
  • From the left pane select your local computer and right click and then select connect to remote computer and type in the IP of your HYPER V Server
  • Once the details are loaded , select WMI Controls under Services and Applications.
  • Right click WMI controls and select properties and choose security tab. 
  • Inside security tab, expand the Root and select CIMV2 and press the security button. Add the domain user we have used to log onto Hyper V and management statio. After adding the user and whist in side the same window press the advance button to edit the user permissions and make the below 3 changes

In the “Apply to:” drop-down, select “This namespace and subnamespaces”

In the Allow column, select Remote Enable

Check “Apply these permissions to objects and/or containers within this container only”

  • Close the permission window and repeat the same step to enable permissions for Virtualization under the Security tab of WMI Controls.
  • Then finally do a map drive to the hyper V server , you can do this on your dos prompt of management computer by typing net use * TWINLE\C$
  • Then from the management station start --->run ---->azman.msc and right click the authorization store , and choose your newly mapped drive to hyper v server
  • Select the folder ProgramData (its hidden by default so just type the name and open) ---->Microsoft---->Windows--->Hyper V ----> InitialStore.xml
  • And the authorization store from the hyper V server should be loaded. Select the Last option under Hyper V Services ---> Role assignment --->Administrator 
  • Right click anywhere in the right pane and select the domain user we used to log into hyper v server and management station and add .

 

Voila :) Reboot your Hyper V Server and connect using Hyper V manager from your management station. 

PS: Hope this post is helpful to you all. Please post your comments and suggestions and I will try to help as we go.