Saturday, April 20, 2013

How to configure Hyper v server 2008


Since day one of introducing Hyper-V with Windows Server 2008, people on the TechNet forums were wondering if a stand alone Hyper-V server would ever be released and how much would it cost. People were very excited for Hyper-V, but not all of them had a hand on experience on Windows Server 2008 With Hyper-V ! For those people who have been waiting, the day had came and Microsoft released Hyper-V Server 2008, which in absolutely free !
Microsoft Hyper-V Server 2008 requires specific hardware ( they are the same as Hyper-V that is available with Windows Server 2008).
You will need the following:

  • An x64-based processor
  • Hardware-assisted virtualization. This is available in processors that include a virtualization option; specifically, Intel VT or AMD Virtualization
  • Hardware Data Execution Protection (DEP) must be available and be enabled. Specifically, you must enable Intel XD bit (execute disable bit) or AMD NX bit (no execute bit).
Before installing Hyper-V Server 2008 , let me show you a table that will summaries the differences between Hyper-V Server 2008 and Hyper-V role that is available in the different versions of Windows Server 2008.
irtualization Needs
Microsoft Hyper-V Server 2008
Windows Server 2008 Standard
Windows Server 2008 Enterprise
Windows Server 2008 Datacenter
Server Consolidation
Available Available Available Available
Test and Development
Available Available Available Available
Mixed OS Virtualization (Linux and Windows)
Available Available Available Available
Local Graphical User Interface
Available Available Available
High Availability—Clustering
Available Available
Quick Migration
Available Available
Large Memory Support (Host OS) > 32 GB RAM
Available Available
Support for > 4 Processors (Host OS)
Available Available
Ability to Add Additional Server Roles
Available Available Available
Virtualization Rights per Server License
Each VM Guest requires a server license
1 Physical + 1 VM
1 Physical + 4 VMs
1 Physical + Unlimited VMs
Download Hyper-V Server 2008 from this link : http://www.microsoft.com/servers/hyper-v-server/how-to-get.mspx
Once you download the ISO image file, burn it to a DVD disk.
Ready to install Hyper-V Server ? Then boot your machine with the DVD disk inserted into the DVD-Rom, make sure that the DVD-Rom is higher than the Hard disk in the boot sequence of the BIOS.

  1. You will be asked to choose the language of the Wizard, then will select the language that will be installed for your Hyper-V server 2008, the time and currency format and the keyboard language. Once you have made your selections, click on Next





  2. Click on Install now



  3. Accept the license terms, by selecting the checkbox beside I accept the license terms, then click on Next



  4. On the Installation type page, click on Custom (advanced). You will notice that the Upgrade option is grayed out, as Hyper-V Server 2008 can not be upgraded from any previous Windows Operating Systems.



  5. Choose the drive/partition that you wish to install Hyper-V Server on, and then click Next



  6. Installing Microsoft Hyper-V Server 2008 will start, which will include several restarts during installation







  7. Once installation is completed, press CTRL+ALT+DEL to log on.



    Click on Other User



    Type administrator as a username and keep the password textbox empty, then hit the Enter key or click on the arrow button



  8. You will be asked to change the administrator password, click OK



    The new password must meet the following minimum requirements:
    • The password is at least six characters long.
    • The password contains characters from three of the following four categories:
      • English uppercase characters (from A through Z)
      • English lowercase characters (from a through z)
      • Base 10 digits (from 0 through 9)
      • Non-alphanumeric characters (for example: !, $, #, or %)

    Type the new password and confirm it, then click Enter



    You will get a confirmation message that your password has been changed, click OK



  9. The administrator account desktop will be prepared and in few seconds you will be logged in.



  10. You will noticed that the desktop of Hyper-V Server 2008 looks as Windows Server 2008 Server Core but with a new windows called Hyper-V Configuration. Now you can use the blue background screen ( Hyper-V Configuration ), where you can easily configure your basic server settings, instead of memorizing different commands as we did with Windows Server 2008 Server Core.

In the second part of  this article, I will configure Hyper-V Server 2008 ( computer name, domain membership , etc .. ) and then in the last and third part of this article, I will show how to connect to it using the Hyper-V management console using a remote computer.


Summary

A stand alone Hyper-V Server is now available and it is free. You install it on a physical machine and configure it using the Hyper-V Configuration window, then after that, everything that you need to do with the Hyper-V server such as creating new virtual machines, is done using the Hyper-V management console using a remote machine.
As shown in part 1 of this article, the desktop of the Hyper-V server contains only two windows; the Command Line window and the Hyper-V Configuration window. If by mistake you closed any of these windows, you can easily re-open anyone of these windows by following the below steps:

Opening the Command Line window
  1. Click CTRL+ALT+DEL > click on Start Task Manager
  2. Click on New Task...
  3. Type cmd > click Enter or OK


Opening the Hyper-V configuration window
  1. In the command line window, type hvconfig and then click Enter


Now lets start configuring our Hyper-V Server. The Hyper-V Configuration window has a list of configuration that you can go through any of them by typing the number of that item and clicking Enter, you are not obliged to go through them in sequence ( ex. from option 1 download to option 13) . But some options can not be completed, before configuring an option that it depends on. For example, you can not join a domain ( option 1 ) or download updates (option 6)  if you have not configured your network settings first ( option 3 ).  That's why I will configure the options in the way I prefer.
The following configurations are available with the Hyper-V configuration window

Computer Name
  1. Type 2 and click Enter to change the computer name.
  2. Type the new computer name and click Enter

  3. You will be prompted with The computer needs to be restarted in order to complete the operation. The command completed successfully. Click OK

  4. You will be prompted with You must restart your computer to apply these changes. Restart now? , click Yes

  5. After the machine reboots and you logon, you will see the new computer name.



Network Settings
Hyper-V Server network settings can be assigned by a DHCP Server or an IP Address can be assigned manually.
  1. Type 3 and click Enter to configure the Hyper-V Server network settings.

  2. The Network cards that are attached to your machine will be listed



  3. Type the Index# of the adapter you want to configure and click Enter. I only have one network adapter in my server, so I will type 1

  4. You will be presented with the current configuration for the network adapter you selected.



  5. Type 1 and click Enter to configure the IP address for the selected network adapter
  • To set the network card to receive its IP address from a DHCP Server
  1. Type D and click Enter
  • To set a static IP address
  1. Type S and click Enter

  2. Type the IP address then click Enter

  3. Type the subnet mask then click Enter, the default subnet mask is 255.255.255.0 , so you can leave this entry blank and just click Enter

  4. Type the default gateway then click Enter

  • To configure DNS Server settings for the selected network adapter
  1. Type 2 then click Enter

  2. Type the IP address of the DNS server then click Enter



  3. Click OK on the pop up message box : Preferred DNS server set


     
  4. If you have an alternate DNS server, then type its IP address then click Enter. If you do not have an alternate DNS Server, then keep this entry blank and click Enter

  5. If in the previous step you had configured an Alternate DNS Server, then click OK on the pop up message box : Alternate DNS server set
  • To Clear DNS Server Settings, follow these steps:
  1. In the Network Adapter Settings option, type 3 then click OK

  2. Click OK when the pop up message DNS servers removed. DNS servers will be automatically obtained from network is displayed


Add Local Administrator
This option adds a user as a local administrator in the server itself. This option does not create a new user. If your server is on a workgroup and you want to create a new user on the server, then you will need to use the command : Net user username /add

If the server is joined to a domain, then you can set a domain user as a local administrator on this server.
To add a local administrator, follow these steps :
  1. Type 4 and click Enter
  2. Type the username and click Enter, if you the server is joined to a domain, then the username would be domain\username , example : elmajdal\tarek. If the server is in a workgroup, then type the username only as shown in the below image

  3. When prompted, type a password for the user and click Enter
  4. When prompted, type the password a second time and click Enter

  5. Click OK on the confirmation message box User added to local Administrators group. Username.
Domain/Workgroup
By default, Hyper-V Server is joined to the workgroup : WORKGROUP, you can either keep it in the same workgroup, joined it to another workgroup or join it to a domain. In my case, I will keep it in its default workgroup.
If you want to join it to another workgroup, do the following :
  1. Type 1 and click Enter
  2. Type W and click Enter
  3. Type the name of the workgroup you want to join your server to and click Enter

  4. Click OK on the pop up message Welcome to the workgroup: NEW WORKGROUP NAME

To join the server to a domain, do the following :
  1. Type 1 and click Enter
  2. Type D and click Enter
  3. Type the domain name ( ex. ELMAJDAL.NET ) and click Enter
  4. Type the domain username in the following format: domain\user ( ex. ELMAJDAL\TAREK), make sure that this user has the needed permissions to join this server to the domain ( ex. domain admin )

  5. When prompted, type a password for the user and click Enter

  6. You will receive a pop up message You must restart your computer to apply these changes. Restart now? , Click Yes and the server will be restarted


Remote Desktop
  1. Type 7 and click Enter.
  2. Here you have a choice to either selection option 1 or option 2. Option 1 is to allow only clients running remote desktop with Network Level Authentication ( XP SP3, Vista SP1 & Windows Server 2008 ), whereas option 2 to allow clients running any version of remote desktop.



  3. Once you made you selection and clicked on Enter, you will be prompted with a pop up message showing your selection. Click OK



  4. You will notice that the status beside 7) Remote Desktop inside the Hyper-V Configuration window is now displaying as Enabled ( your selection ), where your selection is replaced either by less secure (option 1) or more secure clients only (option 2).



Date and Time
  1. Type 9 and click Enter to configure or modify the Hyper-V Server Date and Time options.
  2. The Date and Time applet will open, configure the desired settings and then click on OK



Regional and Language Options
  1. Type 8 and click Enter to configure or modify the Hyper-V Server Regional and Language options.

  2. The Regional and Language Options applet will open, configure the desired settings and then click on OK


Set Automatic Windows Update

The current Update settings are displayed in the default Hyper-V Configuration window.

To set updates to automatic
  1. Type 5 and click Enter.
  2. Type A and click Enter

  3. You will be prompted with Windows Update set to Automatic. System will check for and install updates every day at 3:00AM
  4. Click OK

  5. You will notice that the Windows Updates Settings status has changed to Automatic


Download and Install Updates

The current Update Status is displayed in the default Hyper-V Configuration window.
  1. Type 6 and click Enter to search for updates. Searching for updates will start and if any updates are available, they will be listed.

  2. If there was no updates to download, then just click on any key to exit from the above window, else type Y and click Enter, this will download the updates and then they will be installed.

Log Off User
  1. Type 10 and click Enter
  2. You will be prompted with Are you sure you want to log off?
  3. Click Yes


Restart Server
  1. Type 11 and click Enter
  2. You will be prompted with Are you sure you want to restart?
  3. Click Yes


Shut Down Server
  1. Type 12 and click Enter
  2. You will be prompted with Are you sure you want to shut down?
  3. Click Yes


Exit to Command Line
  1. Type 13 and click Enter to exit to the Command Line.

Summary

In part two of the article Introducing Microsoft Hyper-V Server 2008, I configured Hyper-V Server so that it is set on the network. In the next and last part of this article, part three,  I will show you how to connect to the server remotely so that you can start creating your virtual machines.