Sie sind auf Seite 1von 12

Lab Answer Key: Module 11: Implementing Failover

Clustering with Hyper­V

Lab: Implementing Failover Clustering with Hyper­V

Exercise 1: Configuring Hyper­V Replicas

Task 1: Import LON­CORE virtual machine on LON­HOST1

1. Sign on to LON­HOST1 as Adatum\Administrator with the password Pa$$w0rd.

2. On LON­HOST1, open the Hyper­V Manager console.

3. In the Actions pane, click Import Virtual Machine.

4. On the Before You Begin page of the Import Virtual Machine Wizard, click Next.

5. On the Locate Folder page, click Browse.

6. Browse to the folder E:\Program Files\Microsoft Learning\20412\Drives\20412D­
LON­CORE. Click Select Folder, and click Next.

Note: The drive letter might be different based upon the number of drives on the
physical host machine.

7. On the Select Virtual Machine page, select 20412D­LON­CORE, and then click Next.

8. On the Choose Import Type page, click Next.

9. On the Connect network page, ensure that External Network is selected, and then
click Next.

10. On the Summary page, click Finish.
Task 2: Configure a replica on both host machines

1. On LON­HOST2, open the Hyper­V Manager console.

2. In Hyper­V Manager, right­click LON­HOST2, and then select Hyper­V Settings.

3. In Hyper­V Settings for LON­HOST2, click Replication Configuration.

4. In the Replication Configuration pane, click Enable this computer as a Replica server.

5. In the Authentication and ports section, select Use Kerberos (HTTP).

6. In the Authorization and storage section, click Allow replication from any
authenticated server, and then click Browse.

7. Click Computer, double­click Local Disk (E), and then click New folder. Type
VMReplica for the folder name, and press Enter. Select the E:\VMReplica\ folder, and
click Select Folder.

8. In Hyper­V Settings for LON­HOST2, click OK.

9. In the Settings window, read the notice, and then click OK.

10. Click the Start screen, and click Control Panel.

11. In the Control Panel, click System and Security, and then click Windows Firewall.

12. Click Advanced settings.

13. Click Inbound Rules.

14. In the right pane, in the rule list, find and right­click the Hyper­V Replica HTTP
Listener (TCP­In) rule, and then click Enable Rule.

15. Close the Windows Firewall with Advanced Security console, and close the Windows
Firewall.

16. Repeat steps 1 through 15 on LON­HOST1.

Task 3: Configure replication for LON­CORE virtual machine
1. On LON­HOST1, open the Hyper­V Manager console. Click LON­HOST1, and right­
click 20412D­ LON­CORE.

2. Click Enable Replication.

3. On the Before You Begin page, click Next.

4. On the Specify Replica Server page, click Browse.

5. In the Select Computer window, type LON­HOST2, and click Check Names, and then
click OK. Click Next.

6. On the Specify Connection Parameters page, review the settings, and ensure that Use
Kerberos authentication (HTTP) is selected, and then click Next.

7. On the Choose Replication VHDs page, ensure that 20412D­LON­CORE.vhd is
selected, and then click Next.

8. On the Configure Replication Frequency page, select 30 seconds from drop­down list
box, and then click Next.

9. On the Configure Additional Recovery Points page, select Maintain only the latest
recovery point, and then click Next.

10. On the Choose Initial Replication Method page, click Send initial copy over the
network, select Start replication immediately, and then click Next.

11. On the Completing the Enable Replication Wizard page, click Finish.

12. Wait five to seven minutes. You can monitor the progress of the initial replication in the
Status column in the Hyper­V Manager console. When it completes (progress reaches
100 percent), ensure that 20412D­LON­CORE has appeared on LON­HOST2 in Hyper­
V Manager.

Task 4: Validate a planned failover to the replica site

1. On LON­HOST2, in Hyper­V Manager, right­click 20412D­LON­CORE.

2. Select Replication, and then click View Replication Health.
3. Review content of the window that appears, and ensure that there are no errors.

4. Click Close.

5. On LON­HOST1, open Hyper­V Manager, and verify that 20412D­LON­CORE is
turned off.

6. Right­click 20412D­LON­CORE, select Replication, and then click Planned Failover.

7. In the Planned Failover window, ensure that the option Start the Replica virtual
machine after failover is selected, and then click Fail Over.

8. On LON­HOST2, in Hyper­V Manager, ensure that 20412D­LON­CORE is running.

9. On LON­HOST1, right­click 20412D­LON­CORE, point to Replication, and then click
Remove replication.

10. In the Remove replication dialog box, click Remove Replication.

11. On LON­HOST2, right­click 20412D­LON­CORE, and then select Shut Down. In the
Shut Down Machine dialog box, click Shut Down.

Results: After completing this exercise, you will have configured Hyper­V Replica.

Exercise 2: Configuring a Failover Cluster for Hyper­V

Task 1: Connect to iSCSI target from both host machines

1. On LON­HOST1, open the Server Manager, click Tools, and then click iSCSI
Initiator. At the Microsoft iSCSI prompt, click Yes.

2. Click the Discovery tab.

3. Click Discover Portal.

4. In the IP address or DNS name box, type 172.16.0.21, and then click OK.
5. Click the Targets tab.

6. Click Refresh.

7. In the Targets list, select iqn.1991­05.com.microsoft:lon­svr1­target1­target, and then
click Connect.

8. Select Add this connection to the list of Favorite Targets, and click OK.

9. To close iSCSI Initiator Properties, click OK.

10. On LON­HOST2, open Server Manager, click Tools, and then click iSCSI Initiator.

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

12. Click the Discovery tab.

13. Click Discover Portal.

14. In the IP address or DNS name box, type 172.16.0.21, and then click OK.

15. Click the Targets tab.

16. Click Refresh.

17. In the Discovered targets list, select iqn.1991­05.com.microsoft:lon­svr1­target1­
target, and then click Connect.

18. Select Add this connection to the list of Favorite Targets, and click OK. To close
iSCSI Initiator Properties, click OK.

19. On LON­HOST2, in the Server Manager window, click Tools, and then click Computer
Management.

20. Expand Storage, and click Disk Management.

21. Right­click Disk 2, and click Online. (Note: The disk letter and number might be
different based upon the number of drives on the physical host machine.)

22. Right­click Disk 2, and click Initialize Disk. In the Initialize Disk dialog box, click
OK.

23. Right­click the unallocated space next to Disk 2, and click New Simple Volume.
24. On the Welcome page, click Next.

25. On the Specify Volume Size page, click Next.

26. On the Assign Drive Letter or Path page, click Next.

27. On the Format Partition page, in the Volume label box, type ClusterDisk. Select the
Perform a quick format check box, and click Next.

28. Click Finish.

29. Repeat steps 21 through 28 for Disk 3 and Disk 4. In step 27, provide the name
ClusterVMs for Disk 3 and Quorum for Disk 4.

30. On LON­HOST1 in the Server Manager, click Tools, and then click Computer
Management.

31. Expand Storage, and click Disk Management.

32. Right­click Disk Management, and click Refresh.

33. Right­click Disk 2, and click Online.

34. Right­click Disk 3, and click Online.

35. Right­click Disk 4, and click Online.

Task 2: Configure failover clustering on both host machines

1. On LON­HOST1, on the taskbar, to open the Server Manager, click the Server
Manager icon.

2. On the Dashboard window, click Add roles and features.

3. On the Before You Begin page, click Next.

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

5. On the Select destination server page, ensure that Select server from the server pool
is selected, and then click Next.
6. On the Select server roles page, click Next.

7. On the Select features page, in the Features list, click Failover Clustering. In 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. When installation is complete, click Close.

10. Repeat steps one through nine on LON­HOST2.

11. On LON­HOST1, in the Server Manager console, click Tools, and then click Failover
Cluster Manager.

12. In Failover Cluster Manager, in the center pane, under Management, click Create
Cluster.

13. On the Before You Begin page of the Create Cluster Wizard, read the information, and
then click Next.

14. In the Enter server name box, type LON­HOST1, and then click Add. Type LON­
HOST2, and click Add.

15. Verify the entries, and click Next.

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

17. In the Access Point for Administering the Cluster page, in the Cluster Name box,
type VMCluster.

18. In the IP address name box, under Address, type 172.16.0.126, and then click Next.

19. In the Confirmation dialog box, verify the information, clear the check box next to Add
all eligible storage to the cluster, and then click Next.

20. On the Summary page, click Finish.

Task 3: Configure disks for failover cluster
1. On LON­HOST1, in the Failover Cluster Manager console, expand
VMCluster.Adatum.com, expand Storage, and then right­click Disks.

2. Click Add Disk.

3. In the Add Disks to Cluster dialog box, verify that all disks are selected, and then click
OK.

4. Verify that all disks appear available for cluster storage in Failover Cluster Manager.

5. Select the disk that displays the Volume name ClusterVMs. Right­click the
ClusterVMs disk, and select Add to Cluster Shared Volumes. (Note: Click the disk,
and the Volume name will display).

6. Right­click VMCluster.adatum.com, select More Actions, and then click Configure
Cluster Quorum Settings. Click Next.

7. On the Select Quorum Configuration Option page, click Use default quorum
configuration, and then click Next.

8. On the Confirmation page, click Next.

9. On the Summary page, click Finish.

Results: After completing this exercise, the students will have the failover clustering
infrastructure configured for Hyper­V.

Exercise 3: Configuring a Highly Available Virtual Machine

Task 1: Copy virtual machine storage to iSCSI target

1. Ensure that LON­HOST1 is the owner of the ClusterVMs disk in Failover Cluster
Manager. If it is not, then move the ClusterVMs resource to LON­HOST1 before doing
this procedure.

2.
On LON­HOST1, open File Explorer, browse to E:\Program Files\Microsoft
Learning\20412\Drives\20412D­LON­CORE\Virtual Hard Disks, and then copy the
20412D­LON­CORE.vhd virtual hard disk file to the C:\ClusterStorage\Volume1
location.

Task 2: Configure the virtual machine as highly available

1. In the Failover Cluster Manager console, click Roles, and then in the Actions pane, click
Virtual Machines.

2. Click New Virtual Machine.

3. Select LON­HOST1 as the cluster node, and click OK.

4. In the New Virtual Machine Wizard, click Next.

5. On the Specify Name and Location page, type TestClusterVM for the Name, click
Store the virtual machine in a different location, and then click Browse.

6. Browse to and select C:\ClusterStorage\Volume1, and then click Select Folder.

7. On the Specify Generation page, select Next.

8. Click Next.

9. On the Assign Memory page, type 1536, and then click Next.

10. On the Configure Networking page, click External Network, and then click Next.

11. On the Connect Virtual Hard Disk page, click Use an existing virtual hard disk, and
then click Browse.

12. Locate C:\ClusterStorage\Volume1, select 20412D­LON­CORE.vhd, and then click
Open.

13. Click Next, and click Finish.

14. On the Summary page, click Finish.

15. Right­click the TestClusterVM, and click Settings.
16. In the Settings for TestClusterVM on LON­Host1, expand Processor in the left
navigation pane, and then click Compatibility.

17. In the right pane, select the check box before the Migrate to a physical computer with
a different processor version option.

18. Click OK.

19. Right­click TestClusterVM, and click Start.

20. Ensure that the machine successfully starts.

Task 3: Perform a Live Migration for the virtual machine

1. Open the Failover Cluster Manager on LON­HOST2.

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

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

4. Click LON­HOST2, and click OK.

5. Right­click TestClusterVM, and click Connect.

6. Ensure that you can access and operate the virtual machine while it is migrating to
another host.

7. Wait until the migration is finished.

Task 4: Perform a Storage Migration for the virtual machine

1. On LON­HOST1, open File Explorer, and browse to the E:\Program Files\Microsoft
Learning\20412\Drives\ folder.

2. In this folder, create a new folder and name it LON­GUEST1.
3. On LON­HOST1, open File Explorer, browse to E:\Program Files\Microsoft
Learning\20412\Drives\20412D­LON­CORE\Virtual Hard Disks, and then copy the
20412D­LON­CORE.vhd virtual hard disk file to the E:\Program Files\Microsoft
Learning\20412\Drives\LON­GUEST1 location.

4. On LON­HOST1, open the Hyper­V Manager.

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

6. On the Before You Begin page of the New Virtual Machine Wizard, click Next.

7. On the Specify Name and Location page of the New Virtual Machine Wizard, select
Store the virtual machine in a different location, enter the following values, and then
click Next:

• Name: LON­GUEST1

• Location: E:\Program Files\Microsoft Learning\20412\Drives\LON­GUEST1

8. On the Specify Generation page, click Next.

9. On the Assign Memory page of the New Virtual Machine Wizard, enter a value of 1024
MB, select the Use Dynamic Memory for this virtual machine option, and then click
Next.

10. On the Configure Networking page of the New Virtual Machine Wizard, select
External Network, and then click Next.

11. On the Connect Virtual Hard Disk page, choose Use an existing virtual hard disk.
Click Browse, and browse to E:\Program Files\Microsoft
Learning\20412\Drives\LON­GUEST1 \20412D­LON­CORE.vhd. Click Open, and
click Finish.

12. In the central pane of Hyper­V Manager, click LON­GUEST1.

13. In the Actions pane, click Start. Wait until the virtual machine is fully started.

14. Switch back to the Hyper­V Manager console, and in the Actions pane, click Move.

15. On the Before You Begin page, click Next.
16. On the Choose Move Type page, select Move the virtual machine's storage, and then
click Next.

17. On the Choose Options for Moving Storage page, select Move all of the virtual
machine’s data to a single location, and then click Next.

18. On the Choose a new location for virtual machine page, click Browse.

19. Locate C:\, and create a new folder named Guest1. Click Select Folder.

20. Click Next.

21. On the Summary page, click Finish. Wait for the move process to finish. While the
virtual machine is moving, you can connect to it and verify that it is fully operational.

22. Shut down all running virtual machines.

Task 5: Prepare for the next module

1. Restart LON­HOST1.

2. When you are prompted with the boot menu, select Windows Server 2012, and then
press Enter.

3. Sign in to the host machine as directed by your instructor.

4. Repeat steps one through three on LON­HOST2.

Results: After completing this exercise, the students will have configured the virtual
machine as highly available.

Das könnte Ihnen auch gefallen