Once you have the appropriate hardware, you can add the Hyper-V role to Windows Server 2012 R2 by using Server Manager, just as you would any other role.
Adding the Hyper-V role installs the hypervisor software, and, in the case of a full GUI installation, also installs the management tools. The primary tool for creating and managing VMs and their components on Hyper-V servers is the Hyper-V Manager console. Hyper-V Manager provides administrators with a list of all the VMs on the local host and enables administrators to configure the environments of both the servers and the individual VMs.
There is also a set of Hyper-V cmdlets for Windows PowerShell that enables you to exercise complete control over VMs using that interface.
Microsoft recommends that you do not install other roles with Hyper-V. It is better to implement any other roles that you need the physical computer to perform within one of the VMs you create by using Hyper-V. In addition, you might want to consider installing Hyper-V on a computer by using the Server Core installation option. This will minimize the overhead expended on the partition. As with other roles, installing Hyper-V on Server Core excludes the graphical management tools, which you must install separately as a feature on another computer.
Before you can install the Hyper-V role on a server running Windows Server 2012 R2, you must have the appropriate hardware:
– A 64-bit processor that includes hardware-assisted virtualization. This is available in processors that include a virtualization option, such as Intel Virtualization Technology (Intel VT) or AMD Virtualization (AMD-V) technology.
– A system BIOS that supports the virtualization hardware, on which the virtualization feature has been enabled.
– Hardware-enforced Data Execution Prevention (DEP), which Intel describes as eXecute Disable (XD) and AMD describes as No eXecute (NX). This is a technology used in CPUs to segregate areas of memory. Specifically, you must enable the Intel XD bit (execute disable bit) or the AMD NX bit (no execute bit).
To install the Hyper-V role, use the following procedure.
1. In Server Manager, on the Manage menu, select Add Roles And Features. The Add Roles And Features Wizard starts, displaying the Before You Begin page.
2. Click Next to open the Select Installation Type page.
3. Leave the Role-Based Or Feature-Based Installation option selected and click Next. The Select Destination Server page opens.
4. Select the server on which you want to install Hyper-V and click Next. The Select Server Roles page opens.
5. Select the Hyper-V role. The Add Features That Are Required For Hyper-V dialog box appears.
6. Click Add Features to accept the dependencies and then click Next to open the Select Features page.
7. Click Next to open the Hyper-V page.
8. Click Next. The Create Virtual Switches page opens, as shown in Figure 3-5.
FIGURE 3-5 The Create Virtual Switches page of the Add Roles and Features Wizard
9. Select the appropriate check box for a network adapter and click Next. The Virtual Machine Migration page opens, as shown in Figure 3-6.
FIGURE 3-6 The Virtual Machine Migration page of the Add Roles and Features Wizard
10. Click Next to open the Default Stores page.
11. Specify alternatives to the default locations for virtual hard disk (VHD) and VM configuration files, if desired, and click Next. The Confirm Installation Selection page opens.
12. Click Install to move to the Installation Progress page as the wizard installs the role.
13. Click Close to close the wizard.
14. Restart the server.
Installing the role modifies the Windows Server 2012 R2 startup procedure so that the newly installed hypervisor is able to address the system hardware directly and then load the OS as the primary partition on top of that.
NOTE: USING WINDOWS POWERSHELL
You can also install the Hyper-V role by using the Install-WindowsFeature cmdlet, using the following syntax:
Install-WindowsFeature –Name Hyper-V
-ComputerName <name> -IncludeManagementTools -Restart
This article is a part of 70-410 Installing and Configuring Windows Server 2012 Prep course, more articles in this course are :
70-410 Installing and Configuring Windows Server 2012 Prep course includes following practice tests: