When Microsoft relesed Windows Server 2008 they included a built-in virtualization solution, Hyper-V.It is a role of Server 2008 that lets administrators create multiple virtual machines. A virtual machine is a separate, isolated environment that runs its own operating system and applications.
Hyper-V requires an x64-based processor, hardware-assisted virtualization, and hardware data execution prevention (DEP). Hyper-V is available in the x64-based versions of Windows Server 2008 Standard, Enterprise, and Datacenter,or as stand alone solution based on Windows 2008 Server and Hyper-V, Hyper-V Server 2008,that can be downloaded for free from Microsoft.
Before you install Hyper-V, verify that your computer has been updated with the release version of Hyper-V. On a full installation of Windows Server 2008, click Start, click Windows Update, click View update history, and then click Installed Updates. On a Server Core installation, at the command prompt, type: wmic qfe list Look for update number kbid=950050, which indicates that the update for Hyper-V has been installed.
You use Server Manager to install Hyper-V on a full installation. To install on a Server Core installation, you must perform the installation from a command prompt. Running the following command: Start /w ocsetup Microsoft-Hyper-V
To install Hyper-V on a full installation of Server 2008.
1.Click Start, and then click Server Manager.In the Roles area of Server Manager main window, click Add Roles.
2.On the Select Server Roles page, click Hyper-V.
3.On the Create Virtual Networks page, click one or more network adapters if you want to make their network connection available to virtual machines.
4.On the Confirm Installation Selections page, click Install.
5.Click Close to finish the wizard, and then click Yes to restart the computer.After restart log on with the same account you used to install the role. After the Resume Configuration Wizard completes the installation, click Close.
Create and set up a virtual machine
After you have installed Hyper-V, you can create a virtual machine and set up an operating system on the virtual machine.
1. Click Start, Administrative Tools, and then click Hyper-V Manager.
2.From the Action pane, click New, and then click Virtual Machine.
3.From the New Virtual Machine Wizard, click Next.
4.On the Specify Name and Location page, specify what you want to name the virtual machine and where you want to store it.
5.On the Memory page, specify enough memory to run the guest operating system.
6.On the Networking page, connect the network adapter to an existing virtual network if you want to establish network connectivity at this point.
If you want to use a remote image server to install an operating system on your virtual machine, select the external network.
7,On the Connect Virtual Hard Disk page, specify a name, location, and size to create a virtual hard disk, so you can install an operating system on it.
8.On the Installation Options page, choose the method you want to use to install the operating system:
Install an operating system from a boot CD/DVD-ROM.
Install an operating system from a boot floppy disk
Install an operating system from a network based installation server. To use this option, you must configure the virtual machine with a legacy network adapter connected to an external virtual network,and the external virtual network must have access to the same network as the image server. Legacy network adapters works without installing a virtual machine driver because the driver is available on most operating systems.It also supports network based installations because it includes the ability to boot to the Pre-Boot Execution Environment.It is not supported in the 64-bit edition of Windows Server 2003 or the Windows XP Professional x64 Edition
Install the operating system and integration services
Instructions here assume that you specified the location of the installation media when you created the virtual machine,and that you are installing an operating system for which integration services are available.
1.From the Virtual Machines section of the results pane, right click the name of the virtual machine you created and click Connect.
2.From the Action menu in the Virtual Machine Connection window, click start and proceed through the installation.
When you are at the point where you need to provide input to complete the process, move the mouse cursor over the image of the setup window. When the mouse pointer changes to a small dot, click anywhere in the virtual machine window. To return the to the physical computer, press Ctrl+Alt+Left arrow and then move the mouse pointer outside of the virtual machine window. After the operating system is set up, you are ready to install the integration services.
From the Action menu of Virtual Machine Connection, click Insert Integration Services Setup Disk. On Windows operating systems, you must close the New Hardware Wizard to start the installation. If Autorun does not start the installation, you can start it manually. Click anywhere in the guest operating system window and navigate to the CD drive. After you have completed the setup and integration services are installed, you can start using the virtual machine.
Configuring virtual networks
You can create virtual networks on the server running Hyper-V to define various networking topologies for virtual machines and the virtualization server. There are three types of virtual networks: a private network, which provides communication between virtual machines only. Internal network, which provides communication between the virtualization server and virtual machines. External network, which provides communication between a virtual machine and a physical network by creating an association to a physical network adapter on the virtualization server.
To create a virtual network
1.Open Hyper-V Manager.
2.From the Actions menu, click Virtual Network Manager. Under Create virtual network, select the type of network you want to create.
3.Click Add. The New Virtual Network page appears. Type a name for the new network. Review the other properties and modify them if you need to.
4.Click OK to create the virtual network and close Virtual Network Manager, or click Apply to create the virtual network and continue using Virtual Network Manager.
To add a network adapter to a virtual machine
1.Open Hyper-V Manager. Click Start, point to Administrative Tools, and then click Hyper-V Manager.
2.In the results pane, under Virtual Machines, select the virtual machine that you like to configure.
3.In the Action pane, under the virtual machine name, click Settings.
4.In the navigation pane, click Add Hardware. Choose a network adapter or a legacy network adapter.Network adapters can only be added to a virtual machine when the machine is turned off.
6.The Network Adapter or Legacy Network Adapter page appears. Under Network, select the virtual network you want to connect to.
7.Click OK. Membership in the local Administrators group,is the minimum required to complete this procedure.As an administrator you can use Authorization Manager to modify the authorization policy so that a user or group of users can complete this procedure.
New Features in Windows Server 2008 R2
With the release of Server 2008 R2, some new functionality has been added to the Hyper-V role:
Live migration : Offers the ability to move a virtual machine from one cluster node to another without any user downtime.
Support for 64 logical processors: Allows you to take full advantage of the newest multi core processors.
Processor compatibility mode: Allows administrators to use nonmatching systems in a Failover Cluster configuration.
Enhanced processor functionality support: Provides support for Second Level Address Translation functionality in newer processors, reducing the work that the hypervisor has to do.
Hot-add/remove of storage: Allows dynamic storage growth inside the virtual machine.
TCP Offoad/VM queue support: Enables the virtual network adapter to offoad tasks to the hosts network adapter, enhancing network performance..