Sei sulla pagina 1di 12

Test Lab Guide: Demonstrate Hyper-V

Replica

Mikhail Komarov

MVP Virtual Machine

Date of last update: March 23, 2013

Editor Joe Davies

Abstract
This Microsoft Test Lab Guide (TLG) provides step-by-step instructions to demonstrate Hyper-V
Replica in the Windows Server 2012 Base Configuration for Private Cloud test lab, using computers
running Windows Server 2012.
Copyright Information
This document is provided for informational purposes only and Microsoft makes no warranties,
either express or implied, in this document. Information in this document, including URL and other
Internet Web site references, is subject to change without notice. The entire risk of the use or the
results from the use of this document remains with the user. Unless otherwise noted, the example
companies, organizations, products, domain names, e-mail addresses, logos, people, places, and
events depicted herein are fictitious, and no association with any real company, organization,
product, domain name, e-mail address, logo, person, place, or event is intended or should be
inferred. Complying with all applicable copyright laws is the responsibility of the user. Without
limiting the rights under copyright, no part of this document may be reproduced, stored in or
introduced into a retrieval system, or transmitted in any form or by any means (electronic,
mechanical, photocopying, recording, or otherwise), or for any purpose, without the express
written permission of Microsoft Corporation.

Microsoft may have patents, patent applications, trademarks, copyrights, or other intellectual
property rights covering subject matter in this document. Except as expressly provided in any
written license agreement from Microsoft, the furnishing of this document does not give you any
license to these patents, trademarks, copyrights, or other intellectual property.

© 2013 Microsoft Corporation. All rights reserved.

Microsoft, Windows, Active Directory, Internet Explorer, and Windows Server are either
registered trademarks or trademarks of Microsoft Corporation in the United States and/or other
countries.

All other trademarks are property of their respective owners.


Contents
Step 1: Configure the Windows Server 2012 Base Configuration for Private Cloud lab .......... 4

Step 2: Configure the Hyper-V hosts to support replication .................................................... 4

Step 3: Enable replication virtual machine ............................................................................... 6

Step 4: Test-Failover ................................................................................................................. 8

Step 5: Unplanned failover and reverse replication ................................................................. 8

Step 6: Planned failover .......................................................................................................... 11

Step 7: Remove Replica .......................................................................................................... 11


Test Lab Guide: Hyper-V Replica
Applies to Windows Server 2012

This lab demonstrates Hyper-V Replica in Windows 2012.

Step 1: Configure the Windows Server 2012 Base Configuration for Private Cloud lab
Use the instructions in Test Lab Guide: Windows Server 2012 Base Configuration for Private Cloud to
configure the Hyper-V hosts HV1 and HV2 and the DC1, APP1, and CLIENT1 virtual machines.

Step 2: Configure the Hyper-V hosts to support replication


Configure the Hyper-V hosts HV1 and HV2 to support replication.

Configuring HV1 host:

1. Log on to the HV1 server as the CORP\user1 user account.


2. Server Manager will start automatically. If it does not automatically start, click Start,
type servermanager.exe, and then click Server Manager.
3. In the left panel click Hyper-V, in SERVERS select HV1.
4. Select Hyper-V Manager in the right mouse click contents menu.
5. Select HV1 in the left Hyper-V Manager panel, select Hyper-V settings in the Actions
panel.
6. In Hyper-V Settings HV1, select Replication configurations and configure the following
parameters.
7. Select: Enable this computer as Replica server, Use Kerberos (HTTP), Allow replication
from any authenticated server. Click OK. (see picture below).
8. In the left Hyper-V manager panel, select Hyper-V Manager in the right mouse click
contents menu, select Connect to Server… and connect to HV2.
9. Go to Server manager, in the left panel select Local Server.
10. Click Tools and select Windows firewall with Advanced security.
11. Select Inbound Rules and find the rule Hyper-V Replica HTTP listener (TCP-in), then
enable it (see picture below).

Configure HV2 host.

1. Log on to the HV2 server as the CORP\user1 user account.


2. Server Manager will start automatically. If it does not automatically start, click Start,
type servermanager.exe, and then click Server Manager.
3. In the left pane, click Hyper-V, in SERVERS select HV2.
4. Select Hyper-V Manager in the right mouse click contents menu.
5. Select HV2 in the left Hyper-V Manager panel, then select Hyper-V settings in the
Actions panel.
6. In Hyper-V Settings HV2, select Replication configurations and configure the following
parameters.
7. Select: Enable this computer as Replica server, Use Kerberos (HTTP), Allow replication
from any authenticated server. Click OK. (see picture below).

8. In the left pane Hyper-V manager, select Hyper-V Manager in the right mouse click
contents menu, select Connect to Server…, and connect to HV1.
9. Go to Server Manager, in the left panel select Local Server.
10. Click Tools and select Windows firewall with Advanced security
11. Select Inbound Rules and find the rule Hyper-V Replica HTTP listener (TCP-in) and
enable it. (see picture below)

12. Open \\app1\files\example.txt in Explorer, type the text “Replication stage 1” and save
it.

Hosts HV1 and HV2 are ready for use in Hyper-V Replica.

Step 3: Enable replication virtual machine

In this step, you will activate replication virtual machine APP1

1. Log on to the HV2 server as the CORP\user1 user account


2. Server Manager will start automatically. If it does not automatically start,
click Start, type servermanager.exe, and then click Server Manager.
3. In the left panel click Hyper-V, in SERVERS, select HV2.
4. Select APP1 virtual machine and select Enable Replication in the right
mouse click contents menu. Start the Replication Wizard.
5. Specify Replica Server: HV1 and press Next.
6. Specify Connection Parameter: (Default) and press Next.
7. Choose Replication VHDx: (Default) and press Next.
8. Configure Recovery History and press Next.

9. Choose Initial Replication Method (Default) and press Finish.

10. Press Windows key+X and start Task Manager. Select the Performance tab
and select Ethernet to view the heavy network load.
11. At the end of this process, select APP1, select View Replication Health in
the Hyper-V Manager right mouse click contents menu Replication part.

Step 4: Test-Failover
In this step, you will test replication virtual machine APP1.

1. Log on to the HV1 server as the CORP\user1 user account.


2. Server Manager will start automatically. If it does not automatically start, click Start,
type servermanager.exe, and then click Server Manager.
3. In the left panel click Hyper-V, in SERVERS select HV1.
4. Select APP1, select Test-Failover in the Hyper-V Manager right mouse click contents
menu Replication part.

5. Click Test-Failover. Hyper-V Manager will show the new virtual machine APP1-Test.

Connect to this virtual machine and start it. After it starts, log on to the APP1-Test
machine as the CORP\user1 user account. Open Explorer and view “Replication stage 1”
in the c:\files\example.txt file.
6. Shutdown APP1-Test. Select APP1, select Cancel Test-Failover in the Hyper-V Manager
right mouse click contents menu Replication part. Machine name APP1-Test is deleted.

Step 5: Unplanned failover and reverse replication

In this step, you will test Unplanned failover HV2 host with running APP1 virtual machine.
1. Log on to the HV2 server as the CORP\user1 user account.
2. Server Manager will start automatically. If it does not automatically start, click Start, type
servermanager.exe, and then click Server Manager.
3. Go to Server Manager; in the left panel select Local Server. Click IP address 10.0.0.11
and open Network Connection. Disable Physical Ethernet interface
4. Go to Server Manager, in the left panel click Hyper-V, in SERVERS select HV2.
5. Select Hyper-V manager in the right mouse click contents menu.
6. Select APP1 and Shutdown in left panel.
7. Change physical host! Log on to the HV1 server as the CORP\user1 user account.
8. Server Manager will start automatically. If it does not automatically start, click Start, type
servermanager.exe, and then click Server Manager.
9. In the left panel click Hyper-V, in SERVERS select HV1.
10. Select Hyper-V Manager in the right mouse click contents menu.
11. Select APP1, select Failover in the Hyper-V Manager right mouse click contents menu
Replication part.

12. After the virtual machine APP1 starts, open \\app1\ files\example.txt in Explorer on HV1,
type the text Replication stage 2 and save the file. Close the file and Explorer.
13. Change physical host! Log on to the HV2 server as the CORP\user1 user account
14. Server Manager will start automatically. If it does not automatically start, click Start, type
servermanager.exe, and then click Server Manager.
15. Go to Server Manager; in the left panel select Local Server. Click IP address 10.0.0.11
and open Network Connection. Enable Physical Ethernet interface. Close the window.
16. In the left panel click Hyper-V, in SERVERS select HV1 and refresh.
17. Select APP1 running on HV1, select Reverse Replication in the right mouse click contents
menu Replication part. Start the Replication Wizard.
18. Specify Replica Server: HV2 and press Next.
19. Specify Connection Parameter: (Default) and press Next.

20. Choose Replication VHDx: (Default) and press Next.


21. Configure Recovery History and press Next.

22. Configure Recovery Point (Default-Only Latest Recovery Point) and press Next.
23. Choose Initial Replication Method: Use an existing virtual machine on Replica server as
the initial copy and press Finish.

24. Press Windows key+X and start Task Manager, select the Performance tab and then
select Ethernet to view the network load.

25. At the end of process, select APP1, select View Replication Health in the Hyper-V
Manager right mouse click contents menu Replication part.

26. Open Explorer on HV1 and view “Replication stage 2” in the c:\files\example.txt file.
Step 6: Planned failover

In this step, you will change Replica server using a Planned failover procedure.

1. Log on to the HV1 server as the CORP\user1 user account.


2. Server Manager will start automatically. If it does not automatically start, click Start, type
servermanager.exe, and then click Server Manager.
3. In the left panel click Hyper-V, in SERVERS, select HV1.
4. Select APP1 virtual machine and select Shutdown in the right mouse click contents menu.
5. Select APP1 virtual machine and select Planned Failover in then right mouse click contents
menu Replication part.

6. At the end of this process, select APP1, select View Replication Health in Hyper-V
Manager right mouse click contents menu Replication part.

7. After Planned Failover running on host HV1, the virtual machine will start automatically on
host HV2. We have changed Replica server.
8. Open Explorer on HV1 host and view “Replication stage 2” in the c:\files\example.txt file.

Step 7: Remove Replica

In this step, Replica will be removed.

1. Log on to the HV1 server as the CORP\user1 user account.


2. Server Manager will start automatically. If it does not automatically start, click Start, type
servermanager.exe, and then click Server Manager.
3. In the left panel click Hyper-V, in SERVERS, select HV1.
4. Select APP1 virtual machine and select Remove Replica in the right mouse click contents
menu Replication part.
5. Log on to the HV2 server as the CORP\user1 user account.
6. Server Manager will start automatically. If it does not automatically start, click Start, type
servermanager.exe, and then click Server Manager.
7. In the left panel click Hyper-V, in SERVERS, select HV2.

8. Select APP1 virtual machine and select Remove Replica in the right mouse click contents
menu Replication part.

Potrebbero piacerti anche