0% found this document useful (0 votes)
17 views14 pages

Lab M9

The document provides a detailed lab answer key for implementing failover clustering with Windows Server 2016 Hyper-V. It includes step-by-step tasks for configuring a virtual environment, installing Hyper-V on nested virtualization hosts, and setting up a failover cluster. The document outlines specific commands and procedures to ensure successful configuration and management of virtual machines and clustering infrastructure.
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)
17 views14 pages

Lab M9

The document provides a detailed lab answer key for implementing failover clustering with Windows Server 2016 Hyper-V. It includes step-by-step tasks for configuring a virtual environment, installing Hyper-V on nested virtualization hosts, and setting up a failover cluster. The document outlines specific commands and procedures to ensure successful configuration and management of virtual machines and clustering infrastructure.
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/ 14

about:blank

Lab Answer Key: Module 9: Implementing failover


clustering with Windows Server 2016 Hyper-V

Lab: failover clustering Windows


Server Hyper-V

Exercise Configuring virtual environment

Task 1: Configure physical host, VMs, and nested virtualization

1. On LON-HOST2, click Start, and then click Windows PowerShell.

2. PowerShell window, type and then

Install-WindowsFeature –Name Hyper-V, Hyper-


–Restart

Your computer will restart a couple of times. Be sure to select 20740C-LON-


HOST2 at the boot menu each time it restarts.

3. Adatum\Administrator Pa55w.rd.

4. then browse to E:
Note that the drive upon your

5. Run the following scripts to create the needed switches and import the VMs that
need to be imported for this lab: CreateVirtualSwitches.ps1 LON-HOST2_VM-

1 of 14 3/12/2019, 4:56 PM
about:blank

Pre-Import-20740C.ps1.

6. Open Server Manager, click Tools, and then click Hyper-V Manager.

7. In the left pane, select LON-HOST2.

8. In the Virtual Machines pane, select 20740C-LON-NVHOST3.

9. click pgrade Configuration click

10. 20740-LON-NVHOST4 20740C-LON-DC1-C.

11. Start Windows PowerShell from the Start menu, and then run the following
commands to enable nested virtualization on 20740C-LON-NVHOST3 and
20740C-LON-NVHOST4.

Set-VMProcessor -VMName 20740C-LON-NVHOST3


-ExposeVirtualizationExtensions $true -Count 2

Set-VMMemory 20740C-LON-NVHOST3 -DynamicMemoryEnabled $false

Get-VMNetworkAdapter -VMName 20740C-LON-NVHOST3| Set-


VMNetworkAdapter -MacAddressSpoofing On

Set-VMProcessor -VMName 20740C-LON-NVHOST4


-ExposeVirtualizationExtensions $true -Count 2

20740C-LON-NVHOST4 -DynamicMemoryEnabled $false

-VMName 20740C-LON-NVHOST4| Set-


VMNetworkAdapter -MacAddressSpoofing

2 of 14 3/12/2019, 4:56 PM
about:blank

Task 2: Install Hyper-V on nested virtualization hosts

1. Open Server Manager, click Tools, and then click Hyper-V Manager.

2. In the left pane, select LON-HOST2.

3. pane, select 20740C-LON-NVHOST3

4. click Start.

5. 20740-LON-NVHOST4 20740C-LON-DC1-C.

6. Windows PowerShell window click Start, right-


click Windows PowerShell, and then click Run as Administrator.

7. To open a PSSession utilizing Windows PowerShell Direct, at the Windows


PowerShell command prompt, type the following command, and then press
Enter:

–VMName 20740C-LON-NVHOST3

8. request dialog box, in the box, type


Adatum\Administrator, and in the Password text box, type Pa55w.rd, and
then press Enter.

9. To install Hyper-V, type the following command at the Windows PowerShell


command prompt, and then press Enter:

Install-WindowsFeature –Name Hyper-V, Hyper-


–Restart

10. Wait until the installation completes. Type the following command at the
Windows PowerShell command prompt, and then press Enter:

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

Exit

Note: If this generates the error “Command ‘Exit’ was not run as the
session in which it was intended to run was either closed or broken,”
ignore this error.

11. 10 for 20740C-LON-NVHOST4

12. in a Windows PowerShell LON-HOST2,


command: (Note that the your host
machine.)

Invoke-Command –VMName 20740C-LON-NVHOST3 –FilePath “D:\Program


Files\Microsoft Learning\20740\Drives
\CreateVirtualSwitches.ps1”

13. request dialog box, in the type


Adatum\Administrator, and in the Password Pa55w.rd, and
press

14. Repeat steps 12 and 13 for 20740C-LON-NVHOST4.

15. Switch to the Hyper-V Manager console, right-click 20740C-LON-NVHOST3,


click Connect and then sign in as Adatum\Administrator with the password

16. 20740C-LON-NVHOST4

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

Result: After completing this exercise, you should have successfully imported VMs
and enabled nested virtualization on 20740C-LON-NVHOST3 and 20740C-LON-
NVHOST4.

Exercise 2: Configuring a failover cluster for Hyper-V

Task target from both

1. , Start, click the Server then in the


window click Tools, and then Initiator.

2. At the Microsoft iSCSI prompt, click Yes.

3. Click the Discovery tab.

4. click Discover Portal

5. name text box, type click OK.

6. then click Refresh

7. targets list, click iqn.1991-05. microsoft:lon-dc1-


target1-target, and then click Connect.

8. If not already selected, select Add this connection to the list of Favorite
Targets, and then click OK.

9. Properties dialog box,

10. .

11. Server Manager, iSCSI

12. In the Microsoft iSCSI dialog box, click Yes.

5 of 14 3/12/2019, 4:56 PM
about:blank

13. In the iSCSI Initiator dialog box, click the Discovery tab.

14. On the Discovery tab, click Discover Portal.

15. In the IP address or DNS name text box, type 172.16.0.10, and then click OK.

16. Click the Targets tab, and then click Refresh.

17. targets list, click iqn.1991-05. lon-dc1-


click Connect.

18. connection to the list of Favorite click OK.

19. To close the iSCSI Initiator Properties dialog box, click OK.

20. On LON-NVHOST4, in Server Manager, click Tools, and then click Computer
Management.

21. Expand Storage and then click Disk Management

22. then click Online. (This 20 GB in


might be different.)

23. then click Initialize Disk

24. In the Initialize Disk dialog box, click OK.

25. Right-click the unallocated space next to Disk 1, and then click New Simple
Volume.

26. On the Welcome click Next.

27. Size page, click Next

28. Letter or Path page,

29. Partition page, in the Volume type ClusterDisk.

30. Select the Perform a quick format check box, click Next, and then click

6 of 14 3/12/2019, 4:56 PM
about:blank

Finish.

Note: If a Microsoft Windows prompt appears to format the disk, click


Cancel.

31. 30 for Disk 2 and following

ClusterVMs

Quorum

32. Switch back to LON-NVHOST3.

33. On LON-NVHOST3 in Server Manager, click Tools, and then click Computer
Management.

34. then click Disk Management

35. Management, and then click

36. and then click Online.

37. Right-click Disk 2, and then click Online.

38. Right-click Disk 3, and then click Online.

39. Close Computer Management console.

might vary based on the disks in the


the disks that are 20

Task 2: Configure failover clustering on both host machines

7 of 14 3/12/2019, 4:56 PM
about:blank

1. On LON-NVHOST3, ensure that Server Manager console is open.

2. In Server Manager, on the Dashboard, click Add roles and features.

3. On the Before you begin page, click Next.

4. On the Select installation type page, click Next.

5. destination server page, ensure from the


and then click Next

6. roles page, click Next

7. On the Select features page, in the Features list, click Failover Clustering. At
the Add features that are required for failover clustering prompt, click Add
Features, and then click Next.

8. On the Confirm installation selections page, click Install.

9. complete, click Close.

10. .

11. on LON-NVHOST4

12. Switch back to LON-NVHOST3.

13. On LON-NVHOST3, in Server Manager, click Tools, and then click Failover
Cluster Manager.

14. In Failover Cluster Manager, in the center under Management, click

15. page of the Create the


Next.

16. Servers page, in the Enter server box, type LON-


NVHOST3, and then click Add. Again, in the Enter server name text box, type

8 of 14 3/12/2019, 4:56 PM
about:blank

LON-NVHOST4, and then click Add.

17. Verify the entries, and then click Next.

18. On the Validation Warning page, click No. I don’t require support from
Microsoft for this cluster, and then click Next.

skipping validation to save In a


environment, you should never

19. Point for Administering the the Cluster


Name text box, type VMCluster.

20. In the Address text box, type 172.16.0.126, and then click Next.

21. In the Confirmation dialog box, verify the information, clear the Add all
cluster option check

22. click Finish.

Task 3: Configure disks for a failover cluster

1. On LON-NVHOST3, in the Failover Cluster Manager console, expand


VMCluster.Adatum.com, expand Storage, right-click Disks, and then click

2. Cluster dialog box, verify selected, and

3. left pane and verify that all Available


Storage in Failover Cluster Manager.

9 of 14 3/12/2019, 4:56 PM
about:blank

4. Click Cluster Disk 1, right-click that disk, and then click Add to Cluster Shared
Volumes.

5. Right-click VMCluster.adatum.com, click More Actions, click Configure


Cluster Quorum Settings, and then click Next.

6. On the Select Quorum Configuration Option click Use default quorum


click Next.

7. page, click Next.

8. page, click Finish.

Result: After completing this exercise, you should have successfully configured
the failover clustering infrastructure for Hyper-V.

Exercise highly available

Task the iSCSI target

1. Ensure that LON-NVHOST3 is the owner of the disk that you just assigned to
Cluster Shared Volume. You can read the owner value in the Owner Node
column. If that is not the case, then move the disk to LON-NVHOST3 before
proceeding to step 2.

disk:
disk, and then click

Node, click LON-NVHOST3

10 of 14 3/12/2019, 4:56 PM
about:blank

2. On LON-NVHOST3, on the desktop, on the taskbar, click the File Explorer


icon.

3. In File Explorer, expand drive C:, expand Program Files, expand Microsoft
Learning, expand 20740, expand Drives, expand 20740B-NANO-SVR1, and
then click Virtual Hard Disks.

letter might be different physical

4. In the details pane, move the 20740B-NANO-SVR1.vhd virtual hard disk file to
the C:\ClusterStorage\Volume1 location.

Task highly available

1. Failover Cluster Manager then in the


Virtual Machines.

2. Click New Virtual Machine.

3. Select LON-NVHOST3 as the cluster node, and then click OK.

4. In the New Virtual Machine Wizard, on the Before You Begin page, click
Next

5. and Location page,


Store the virtual machine location, and

6. select C:\ClusterStorage\Volume1 Folder, and


then click Next.

11 of 14 3/12/2019, 4:56 PM
about:blank

7. On the Specify Generation page, click Generation1, and then click Next.

8. On the Assign Memory page, type 256, and then click Next.

9. On the Configure Networking page, leave the selection as Not Connected,


and then click Next.

10. Hard Disk page, click virtual hard


Browse.

11. \ClusterStorage\Volume1, click vhd, and

12. Click Next, and then click Finish. If an error appears informing you that
Microsoft Management has stopped working, restart this task from step 1.

13. On the Summary page of the High Availability Wizard, click Finish.

14. TestClusterVM, and then click

15. the Settings for TestClusterVM the


Processor, and then

16. select the Migrate to a physical with a different


processor version check box, and then click OK.

17. Right-click TestClusterVM, and then click Start.

18. Ensure that the VM starts successfully.

Task

1. , in Server Manager console, and then click


Failover Cluster Manager.

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

2. Expand VMCluster.Adatum.com, and then click Roles.

3. Right-click TestClusterVM, click Move, click Live Migration, and then click
Select Node.

4. Click LON-NVHOST4, and then click OK. Wait until the machine is migrated.
You will that the Owner Node column will change the value when migration

option is LON-NVHOST3 LON-NVHOST3 and


lab.

5. Right-click TestClusterVM, and then click Connect.

6. Ensure that you can access and operate the VM after it is migrated to another
host.

7. Manager, right click TestClusterVM Shut

Task 4: Configure drain on shutdown

1. On LON- NVHOST3, select Windows Start, and then launch Windows


PowerShell

2. PowerShell command prompt, command,

DrainOnShutdown

13 of 14 3/12/2019, 4:56 PM
about:blank

Note: This should return a value of “1”.

3. On LON- NVHOST3, restore Failover Cluster Manager.

4. Select Roles in Failover Cluster Manager.

5. on Windows Start select

6. select Continue

7. TestClusterVM live migrate to LON- LON-NVHOST4


before shutting down.

Task module

When lab, revert all VMs

1. computer, start Hyper-V Manager

2. Shut down all VMs.

3. Restart your computer, and when prompted, choose Windows Server 2016.

Result exercise, you should configured


the

14 of 14 3/12/2019, 4:56 PM

You might also like