0% found this document useful (0 votes)
5 views16 pages

Lab M5

The document provides a detailed lab answer key for installing and configuring Hyper-V and virtual machines, including tasks for verifying the Hyper-V server role, creating external, internal, and private networks, and setting up virtual machines. It outlines step-by-step instructions for creating virtual switches, configuring virtual machines, and enabling nested virtualization. The document emphasizes the use of PowerShell commands and the Hyper-V Manager interface throughout the configuration process.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views16 pages

Lab M5

The document provides a detailed lab answer key for installing and configuring Hyper-V and virtual machines, including tasks for verifying the Hyper-V server role, creating external, internal, and private networks, and setting up virtual machines. It outlines step-by-step instructions for creating virtual switches, configuring virtual machines, and enabling nested virtualization. The document emphasizes the use of PowerShell commands and the Hyper-V Manager interface throughout the configuration process.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 16

about:blank

Lab Answer Key: Module 5: Installing and configuring


Hyper-V and virtual machines

Lab: configuring Hyper-V

Exercise installation of the

Task 1: Verify the presence of the Microsoft Hyper-V server role

1. On LON-HOST1, sign in as Administrator using the password Pa55w.rd.

2. Click Start, and then click Server Manager.

3. Tools, and then click

4. click LON-HOST1, and Settings.

5. Settings for LON-HOST1 window, the available


options in the left pane, and review the description.

6. Click Cancel.

Result exercise, you should verified the


presence the Hyper-V server server.

Exercise Hyper-V networks

Task 1: Create an external network

1 of 16 3/12/2019, 4:27 PM
about:blank

Note: To perform this task, your computer must have physical network card
(wired or wireless) and be connected to a network.

1. In Hyper-V Manager, click LON-HOST1, and then in the Actions pane, click
Virtual Switch Manager.

2. Manager for LON-HOST1 pane, click


switch.

3. switch pane, click External Create Virtual

4. In the Virtual switch properties pane, in the Name text box, type Physical
Network.

5. In the Connection type area, click External network. Select the Allow
system to share check box,

6. Changes dialog box, displays,

7. In Server Manager, click Local Server, and then verify that the name of the
network adapter has changed to vEthernet (Physical Network).

Task network

1. Hyper-V Manager, in the Virtual

2. In the Virtual Switch Manager for LON-HOST1 window, in the left pane, click
New virtual network switch.

2 of 16 3/12/2019, 4:27 PM
about:blank

3. In the Create virtual switch pane, click Private, and then click Create Virtual
Switch.

4. In the Virtual Switch Properties pane, in the Name text box, type Isolated
Network.

5. In the Connection type area, verify that Private network is selected, and then

6. that no new network

Task 3: Create an internal network

1. On LON-HOST1, in Hyper-V Manager, in the Actions pane, click Virtual


Switch Manager

2. Manager for LON-HOST1 pane, click


switch.

3. switch pane, click Internal Create Virtual

4. In the Virtual Switch Properties pane, in the Name text box, type Host
Internal Network.

5. In the Connection type area, verify that Internal network is selected, and then

6. that a new network vEthernet (Host


been created.

3 of 16 3/12/2019, 4:27 PM
about:blank

Result: After completing this exercise, you should have successfully configured an
external, internal, and private network.

Exercise 3: Creating and configuring virtual machines

Task virtual machine

1. taskbar, click File Explorer

2. to E:\Program Files\Microsoft Learning\20740\Drives.

Note: The drive letter for this path might vary depending on the
configuration of the physical host.

3. Home tab, and then icon twice to


Right-click each folder,

o LON-GUEST2

4. Close File Explorer.

5. In Hyper-V Manager, in the Actions pane, click New, and then click Virtual
Machine

6. Machine Wizard, on the click

7. and Location page, machine


location, enter the following values, click Next:

o Name: LON-GUEST2

4 of 16 3/12/2019, 4:27 PM
about:blank

o Location: E:\Program Files\Microsoft Learning\20740\Drives\LON-


GUEST2\

8. On the Specify Generation page, click Generation 2, and then click Next.

9. On the Assign Memory page, in the Startup memory box, enter a value of
1024 MB and then click Next.

10. Networking page, click Isolated then click

11. Hard Disk page, click disk.

12. In the Name text box, type LON-GUEST2.vhdx.

13. In the Location text box, type E:\Program Files\Microsoft Learning\20740


\Drives\LON-GUEST2.

14. 127, and then click

15. and then click Settings

16. LON-GUEST2 on LON-HOST1 Hardware


Controller.

17. In the right pane, click DVD Drive, and then click Add.

18. In the DVD Drive area, click Image file.

19. In the Image file text box, type E:\Program Files\Microsoft Learning\20740
\Drives\WinServer2016_1607.iso, and then

20. click Firmware.

21. click Network Adapter twice, and

22. Right-click LON-GUEST2, and then click Connect.

5 of 16 3/12/2019, 4:27 PM
about:blank

23. In the LON-GUEST2 on LON-HOST1 – Virtual Machine Connection window,


click Start.

24. Press any key to boot from DVD.

25. In the Windows Setup window, click Next, and then click Install now.

26. operating system you want Windows


Evaluation (Desktop then click

27. notices and license terms accept the


check box, and then click Next

28. On the Which type of installation do you want page, click Custom: Install
Windows only (advanced).

29. On the Where do you want to install Windows page, click Drive 0
then click Next.

Server operating requires an


time. You can work waiting for
installation to complete.

30. On the Customize settings page, in the Password and Reenter password
text boxes, type Pa55w.rd, and then click Finish.

31. complete, in the LON-GUEST2 LON-HOST1 –


Connection window, click click Shut

Task 2: Create a Generation 1 virtual machine

6 of 16 3/12/2019, 4:27 PM
about:blank

1. In Hyper-V Manager, in the Actions pane, click New, and then click Hard
Disk.

2. In the New Virtual Hard Disk Wizard, on the Before You Begin page, click
Next.

3. On the Choose Disk Format page, click VHD and then click Next

4. Type page, select Differencing Next.

letter for the file location steps


depending on the configuration host.

5. On the Specify Name and Location page, specify the following details, and
then click Next:

LON-GUEST1.vhd

\Program Files\Microsoft Learning\20740\Drives\LON-

6. Disk page, type E:\Program


Learning\Base\Base17C-WS16-1607.vhd as the location, and then click
Finish.

7. Click Start, and then click the Windows PowerShell icon.

8. PowerShell command prompt, command to


machine named LON-GUEST1 Enter:

LON-GUEST1 –MemoryStartupBytes –VHDPath


Files\Microsoft Learning\20740\Drives\LON-GUEST1
\LON-GUEST1.vhd” –SwitchName “Isolated Network”

7 of 16 3/12/2019, 4:27 PM
about:blank

9. Close the Windows PowerShell window.

Task 3: Configure virtual machines

8 of 16 3/12/2019, 4:27 PM
about:blank

1. On LON-HOST1, in Hyper-V Manager, right-click LON-GUEST1, and then click


Settings.

2. In the Settings for LON-GUEST1 on LON-HOST1 window, note the list of


hardware for LON-GUEST1.

3. In the Hardware click Memory.

4. Dynamic Memory check

5. box, type 4096.

6. area, click Processor.

7. In the Number of virtual processors text box, type 2.

8. In the Hardware area, click Network Adapter.

9. In the Bandwidth Management area, select the Enable bandwidth

10. bandwidth text box, type 10

11. bandwidth text box, type

12. In the Management area, click Integration Services.

13. Select the Guest services check box, and then click OK.

Note: You must have completed the previous tasks in this exercise
continue. This includes LON-GUEST2.

14. right-click LON-GUEST2 Settings.

15. LON-GUEST2 on LON-HOST1 note the list of


hardware for LON-GUEST2. Note the differences from LON-GUEST1.

9 of 16 3/12/2019, 4:27 PM
about:blank

16. In the Hardware area, click Security, and then read the settings that are
available.

17. In the Hardware area, click Memory.

18. Verify that the Enable dynamic memory check box is not selected.

19. click Processor.

20. processors text box,

21. expand Hard Drive, Service.

22. Select the Enable Quality of Service management check box.

23. In the Minimum text box, type 10.

24. In the Management area, click Integration Services.

25. services check box, and

Task

1. On LON-HOST1, in Hyper-V Manager, right-click LON-GUEST2, and then click


Checkpoint.

2. Right-click LON-GUEST2, and then click Start.

3. and then click Connect

4.

5. as Administrator password.

6. In Server Manager, click Local Server, and verify that there is only one
network adapter.

10 of 16 3/12/2019, 4:27 PM
about:blank

7. Switch to LON-HOST1.

8. On LON-HOST1, in Hyper-V Manager, right-click LON-GUEST2, and then click


Settings.

9. In the Settings for LON-GUEST2 on LON-HOST1 window, in the Hardware


click Add Hardware.

10. area, click Network Adapter Add.

11. area, in the Virtual Internal


OK.

12. Switch to LON-GUEST2.

13. On LON-GUEST2, in Server Manager, refresh the view and verify that a
second network adapter has been added.

14.

15. Hyper-V Manager, right-click then click

16. information in the Virtual Machine window, and then


click OK.

17. Right-click the most recent checkpoint, and then click Apply.

18. In the Apply Checkpoint dialog box, click Apply.

19. LON-GUEST2 is Off production

Task resource protection

11 of 16 3/12/2019, 4:27 PM
about:blank

1. On LON-HOST1, click the Start button, and then click Windows PowerShell.

2. In Windows PowerShell, at the command prompt, type the following


command, and then press Enter:

Set-VMProcessor LON-GUEST2 -EnableHostResourceProtection $true

3. PowerShell window.

Task 6: Export a virtual machine

1. On LON-HOST1, in Hyper-V Manager, right-click LON-GUEST2, and then click


Export

letter for the file location step might


the configuration of

2. In the Export Virtual Machine dialog box, in the Location text box, type
E:\Program Files\Microsoft Learning\20740\Drives\Guest2-Bak, and then
click Export.

Result exercise, you should created and


configured 1 virtual machine
machine.

Exercise 4: Enabling nested virtualization for a virtual machine

12 of 16 3/12/2019, 4:27 PM
about:blank

Task 1: Import LON-NVHOST2

Note: Before beginning this task, verify the location of the base drives and
20740 course drives. You need the drive letter for both locations in this
exercise. The exercise assumes that the drive letter E: is used for both, but
substitute the correct drive letter as necessary.

1. Start, and then click

2. PowerShell prompt, type the then press

& ‘E:\Program Files\Microsoft Learning\20740\Drives


\CreateVirtualSwitches.ps1’

3. and then press Enter:

Files\Microsoft Learning\20740\Drives\LON-
HOST1_VM-Pre-Import-20740C.ps1’

4. Type the drive letter for the base images, and then press Enter.

5. Type the drive letter for the course images, and then press Enter.

6.

Task virtualization

1. On LON-HOST1, in Hyper-V Manager, in the Virtual Machines pane, verify

13 of 16 3/12/2019, 4:27 PM
about:blank

that the Configuration Version for 20740C-LON-NVHOST2 is 5.0.

2. Right-click 20740C-LON-NVHOST2, and then click Upgrade Configuration


Version.

3. In the Upgrade Configuration Version dialog box, click Upgrade.

4. Configuration Version for 20740C-LON-NVHOST2 now 8.0.

5. PowerShell prompt, type the and then

Set-VMProcessor -VMName 20740C-LON-NVHOST2


-ExposeVirtualizationExtensions $true

6. Type the following command, and then press Enter:

-VMName 20740C-LON-NVHOST2
-MacAddressSpoofing

7. Type the following command, and then press Enter:

Set-VM -VMName 20740C-LON-NVHOST2 -MemoryStartupBytes 4GB

Task

1. On LON-HOST1, at the Windows PowerShell prompt, type the following


command, and then press Enter:

14 of 16 3/12/2019, 4:27 PM
about:blank

Start-VM 20740C-LON-NVHOST2

2. To view the activity on LON-NVHOST2, in Hyper-V Manager, right-click


20740C-LON-NVHOST2, and then click Connect.

3. has started, type Windows


then press Enter.

-VMName 20740C-LON-NVHOST2

4. When you receive a prompt, sign in as Adatum\Administrator by using


Pa55w.rd as the password.

5. Type the following command, and then press Enter:

Install-WindowsFeature -Name Hyper-V -IncludeAllSubFeature


-IncludeManagementTools -Restart

6. Wait for LON-NVHOST2 to restart. The virtual machine might restart several
times.

7. Switch to LON-NVHOST2.

8. Sign in to LON-NVHOST2 as Administrator by using Pa55w.rd as the

9. Server Manager

10. Tools, and then click

11. Verify that LON-NVHOST2 is listed in Hyper-V Manager, and then close
Hyper-V Manager.

15 of 16 3/12/2019, 4:27 PM
about:blank

Task 4: Prepare for the next module

• Leave your host computer LON-HOST1 started.

Result exercise, you should configured a


virtual virtualization.

16 of 16 3/12/2019, 4:27 PM

You might also like