You are on page 1of 5

Lab: Implementing Server Virtualization with Hyper-V

Scenario
Your assignment is to configure the infrastructure service for a new branch office.
To use the server hardware that is available currently at branch offices more effectively, your manager has
decided that all branch office servers will run as virtual machines. You must now configure a virtual
network and a new virtual machine for these branch offices.
Objectives
After performing this lab, you should be able to:
• Install the Hyper-V role onto a server.
• Configure virtual networking.
• Create and configure a virtual machine.
• Use virtual machine checkpoints.
Lab Setup
Estimated Time: 70 minutes

Virtual machine 20410D-LON-HOST1

User name Administrator

Password Pa$$w0rd
Before beginning the lab, you must complete the following steps:
1. Reboot the classroom computer and from the Windows Boot Manager, select 20410D-LON-HOST1.
2. Sign in to LON-HOST1 with the Administrator account and the password Pa$$w0rd.
Exercise 1: Installing the Hyper-V Role onto a Server

Scenario
The first step in migrating to a virtualized environment for the branch office is installing the Hyper-V role on
a new Windows Server 2012 server.
The main tasks for this exercise are as follows:
1. Install the Hyper-V role onto a server.
2. Complete the Hyper-V role installation, and verify the settings.
Task 1: Install the Hyper-V role onto a server
In Server Manager, click Local Server, and then configure the following network settings:
o IP Address: 172.16.0.31
1. o Subnet mask: 255.255.0.0
o Default gateway: 172.16.0.1
o Preferred DNS server: 172.16.0.10
Use the Add Roles and Features Wizard to add the Hyper-V role to LON-HOST1 with the following
options:
2. o Do not create a virtual switch.
o Use the Default stores locations.
o Allow the server to restart automatically if required.
After a few minutes, the server restarts automatically. Ensure that you restart the machine from the boot
3.
menu as 20410D-LON-HOST1. The computer will restart several times.
Task 2: Complete the Hyper-V role installation, and verify the settings
1. Sign in to LON-HOST1 by using the account Administrator with the password Pa$$word.
2. When the installation of the Hyper-V tools completes, click Close.
3. Open the Hyper-V Manager console, and then click LON-HOST1.
Edit the Hyper-V settings of LON-HOST1, and then configure the following settings:
4. o Keyboard: Use on the virtual machine
o Virtual Hard Disks: C:\Users\Public\Documents\Hyper-V\Virtual Hard Disks
Results: After completing this exercise, you should have installed the Hyper-V role onto a physical server.
Exercise 2: Configuring Virtual Networking

Scenario
After installing the Hyper-V role on the new server, you need to configure the virtual network. You need to
create a network that connects to the physical network and a private network that you can use only for
communication between virtual machines. You will use the private network when you configure the virtual
machines for high availability. You also need to configure a specific range of media access control (MAC)
addresses for the virtual machines.
The main tasks for this exercise are as follows:
1. Configure the external network.
2. Create a private network.
3. Create an internal network.
4. Configure the MAC address range.
Task 1: Configure the external network
1. Open the Hyper-V Manager console, and then click LON-HOST1.
Use the Virtual Switch Manager to create a new External virtual network switch with the following
properties:
2. o Name: Switch for External Adapter
External Network: Mapped to the host computer’s physical network adapter. (This varies depending on
o
the host computer.)
Task 2: Create a private network
In the Hyper-V Manager console use the Virtual Switch Manager to create a new virtual switch with the
following properties:

o Name: Private Network
o Connection type: Private network
Task 3: Create an internal network
Use the Virtual Switch Manager to create a new virtual switch with the following properties:
• o Name: Internal Network
o Connection type: Internal network
Task 4: Configure the MAC address range
Use the Virtual Switch Manager to configure the following MAC Address Range settings:
• o Minimum: 00-15-5D-0F-AB-A0
o Maximum: 00-15-5D-0F-AB-EF
Results: After completing this exercise, you should have configured virtual switch options on a physically
deployed Windows Server 2012 server that is running the Hyper-V role.
Exercise 3: Creating and Configuring a Virtual Machine

Scenario
You have been asked to deploy two virtual machines to LON-HOST1. You have copied a sysprepped
virtual hard disk file that hosts a Windows Server 2012 installation.
To minimize disk space use at the cost of performance, you are going to create two differencing virtual
hard disk files based on the sysprepped virtual hard disk. You then will use these differencing virtual hard
disk files as the virtual hard disk files for the new virtual machines.
The main tasks for this exercise are as follows:
1. Create differencing virtual hard disks.
2. Create virtual machines.
3. Enable resource metering.
Task 1: Create differencing virtual hard disks
Use File Explorer to create the following two folders:
o E:\Program Files\Microsoft Learning\Base\LON-GUEST1
1.
E:\Program Files\Microsoft Learning\Base\LON-GUEST2
o
Note: The drive letter may depend upon the number of drives on the physical host computer.
In the Hyper-V Manager console, create a virtual hard disk with the following properties:
o Disk Format: VHD
2.
o Disk Type: Differencing
o Name: LON-GUEST1.vhd
o Location: E:\Program Files\Microsoft Learning\Base\LON-GUEST1\
o Parent Location: E:\Program Files\Microsoft Learning\Base\ Base14A-WS12R2.vhd
Open Windows PowerShell, and then execute the following command:
3. New-VHD "E:\Program Files\Microsoft Learning\Base\LON-GUEST2\LON-GUEST2.vhd"
-ParentPath "E:\Program Files\Microsoft Learning\Base\ Base14A-WS12R2.vhd"
4. Inspect the disk at E:\Program Files\Microsoft Learning\Base\LON-GUEST2\LON-GUEST2.vhd.
Verify that LON-GUEST2.vhd is configured as a differencing virtual hard disk with E:\Program
5.
Files\Microsoft Learning\Base\ Base14A-WS12R2.vhd as a parent.
Task 2: Create virtual machines
On LON-HOST1, in the Hyper-V Manager console, in the Actions pane, click New, and then click Virtual
1.
Machine.
Create a virtual machine with the following properties:
o Name: LON-GUEST1
o Location: E:\Program Files\Microsoft Learning\Base\LON-GUEST1\
o Generation: Generation 1
2. o Memory: 1024 MB
o Use Dynamic Memory: Yes
o Networking: Private Network
Connect Virtual Hard Disk: E:\Program Files\Microsoft Learning\Base\LON-GUEST1 \lon-
o
guest1.vhd
Open Windows PowerShell, and then execute the following command:
New-VM -Name LON-GUEST2 -MemoryStartupBytes 1024MB -VHDPath "E:\Program
3.
Files\Microsoft Learning\Base\LON-GUEST2\LON-GUEST2.vhd" -SwitchName "Private
Network"
Use the Hyper-V Manager console to edit the settings of LON-GUEST2 by configuring the following:
4. o Automatic Start Action: Nothing
o Automatic Stop Action: Shut down the guest operating system
Task 3: Enable resource metering
At the Windows PowerShell prompt, enter the following commands:
• Enable-VMResourceMetering LON-GUEST1
Enable-VMResourceMetering LON-GUEST2
Results: After completing this exercise, you should have deployed two separate virtual machines by using
a sysprepped virtual hard disk file as a parent disk for two differencing virtual hard disks.
Exercise 4: Using Virtual Machine Checkpoints

Scenario
You are in the process of developing a strategy to mitigate the impact of incorrectly applied change
requests. As a part of this strategy development, you are testing the speed and functionality of virtual
machine checkpoints to roll back to a previously existing stable configuration.
In this exercise, you will deploy Windows Server 2012 in a virtual machine. You then will create a stable
configuration for that virtual machine, and create a virtual machine checkpoint. Finally, you will modify the
configuration, and roll back to the checkpoint.
The main tasks for this exercise are as follows:
1. Deploy Windows Server 2012 in a virtual machine.
2. Create a virtual machine checkpoint.
3. Modify the virtual machine.
4. Revert to the existing virtual machine checkpoint.
5. View resource metering data.
Task 1: Deploy Windows Server 2012 in a virtual machine
1. Use the Hyper-V Manager console to start LON-GUEST1.
Open the Virtual Machine Connection Window, and perform the following steps to deploy Windows
Server 2012 on the virtual machine:
2. o On the Settings page, click Next to accept the Region and Language settings.
o On the Settings page, click I accept.
o On the Settings page, enter the password Pa$$w0rd twice, and then click Finish.
3. Sign in to the virtual machine by using the account Administrator and the password Pa$$w0rd.
4. Reset the name of the virtual machine to LON-GUEST1, and then restart the virtual machine.
Task 2: Create a virtual machine checkpoint
Sign in to the LON-GUEST1 virtual machine, and then verify that the name of the computer is set to
1.
LON-GUEST1.
2. Create a checkpoint of LON-GUEST1, and name the checkpoint Before Change.
Task 3: Modify the virtual machine
Sign in to the LON-GUEST1 virtual machine, and use the Server Manager console to change the
1.
computer’s name to LON-Computer1.
2. Reboot the virtual machine.
Sign in to the LON-GUEST1 virtual machine, and then verify that the server name is set to LON-
3.
Computer1.
Task 4: Revert to the existing virtual machine checkpoint
1. Use the Virtual Machine Connection window to revert the virtual machine.
2. Verify that the Computer Name of the virtual machine now is set to LON-GUEST1.
Task 5: View resource metering data
On LON-HOST1, issue the following command:
1.
Measure-VM LON-GUEST1
Note the average central processing unit (CPU), average random access memory (RAM), and total disk
2.
use figures, and then close Windows PowerShell.
Results: After completing this exercise, you should have used virtual machine checkpoints to recover from
a virtual machine misconfiguration.
Revert the virtual machines
After you finish the lab, restart the computer in Windows Server 2012 by performing the following steps:
1. On the taskbar, click the Windows PowerShell icon.
In the Windows PowerShell window, enter the following command, and then press Enter:
2.
Shutdown /r /t 5
3. From the Windows Boot Manager, select Windows Server 2012.
Lab Review Questions
Question: What type of virtual network switch would you create if you want to allow the virtual machine to
communicate with the LAN that is connected to the Hyper-V virtualization server?
Question: How can you ensure that no single virtual machine uses all of the available bandwidth that the
Hyper-V virtualization server provides?
Question: What Dynamic Memory configuration task was not possible on previous versions of Hyper-V,
but which you can now perform on a virtual machine that is hosted on the Hyper-V role on a Windows
Server 2012 server?
Module Review and Takeaways
Review Questions
Question: In which situations should you use a fixed memory allocation instead of Dynamic Memory?
Question: In which situations must you use virtual hard disks with the new .vhdx format, instead of virtual
hard disks with the old .vhd format?
Question: You want to deploy a Windows Server 2012 Hyper-V virtual machine’s virtual hard disk on a file
share. What operating system must the file server be running to support this configuration?
Best Practices
When implementing server virtualization with Hyper-V, use the following best practices:
Ensure that the processor on the computer that will run Hyper-V supports hardware assisted

virtualization.
Ensure that you provision a virtualization server with adequate RAM. Having multiple virtual machines
• paging the hard disk drive because they have inadequate memory decreases performance for all virtual
machines on the server.
Monitor virtual machine performance carefully. A virtual machine that uses a disproportionate amount of
• server resources can reduce the performance of all other virtual machines that the same virtualization
server is hosting.
Common Issues and Troubleshooting Tips
Common Issue Troubleshooting Tip
Common Issue Troubleshooting Tip

Cannot deploy Hyper-V on an x64 platform.

Virtual machine does not use Dynamic Memory.

Tools
You can use the following tools with Hyper-V to deploy and manage virtual machines.
Name of tool Used for Where to find it

Sysinternals disk2vhd Use to convert physical hard disks to virtual hard Microsoft TechNet
tool disk format. website.
Course Evaluation

Your evaluation of this course will help Microsoft understand the quality of your learning experience.
Please work with your training provider to access the course evaluation form.
Microsoft will keep your answers to this survey private and confidential and will use your responses to
improve your future learning experience. Your open and honest feedback is valuable and appreciated.

You might also like