1) enable the VM copy Function
Right-click the Virtual Machine win7-01 --> "enable replication"
650) This. width = 650; "Title =" clip_image001 "style =" border-top: 0px; border-Right: 0px; border-bottom: 0px; border-left: 0px; display: inline "border =" 0 "alt =" clip_image001 "src =" http://img1.51cto.com/attachment/201407/10/8946015_1404969844a2XV.png "" 635 "Height =" 484 "/>
The enable copy dialog box is displayed.
650) This. width = 650; "Title =" clip_image002 "style =" border-top: 0px; border-Right: 0px; border-bottom: 0px; border-left: 0px; display: inline "border =" 0 "alt =" clip_image002 "src =" http://img1.51cto.com/attachment/201407/10/8946015_1404969845QESA.png "" 644 "Height =" 484 "/>
Click "Next" to select the replica server
650) This. width = 650; "Title =" clip_image003 "style =" border-top: 0px; border-Right: 0px; border-bottom: 0px; border-left: 0px; display: inline "border =" 0 "alt =" clip_image003 "src =" http://img1.51cto.com/attachment/201407/10/8946015_14049698467WrU.png "" 641 "Height =" 484 "/>
Confirm the "replication configuration" of the replica server"
650) This. width = 650; "Title =" clip_image004 "style =" border-top: 0px; border-Right: 0px; border-bottom: 0px; border-left: 0px; display: inline "border =" 0 "alt =" clip_image004 "src =" http://img1.51cto.com/attachment/201407/10/8946015_1404969847cLlC.png "" 244 "Height =" 229 "/>
Specify connection Parameters
650) This. width = 650; "Title =" clip_image005 "style =" border-top: 0px; border-Right: 0px; border-bottom: 0px; border-left: 0px; display: inline "border =" 0 "alt =" clip_image005 "src =" http://img1.51cto.com/attachment/201407/10/8946015_1404969849Ui2Y.png "" 644 "Height =" 484 "/>
Select the virtual hard disk source file location
650) This. width = 650; "Title =" clip_image006 "style =" border-top: 0px; border-Right: 0px; border-bottom: 0px; border-left: 0px; display: inline "border =" 0 "alt =" clip_image006 "src =" http://img1.51cto.com/attachment/201407/10/8946015_140496984953ol.png "" 644 "Height =" 482 "/>
Configuration recovery history
650) This. width = 650; "Title =" clip_image007 "style =" border-top: 0px; border-Right: 0px; border-bottom: 0px; border-left: 0px; display: inline "border =" 0 "alt =" clip_image007 "src =" http://img1.51cto.com/attachment/201407/10/8946015_1404969850ddtK.png "" 644 "Height =" 484 "/>
Select an initial replication method
650) This. width = 650; "Title =" clip_image008 "style =" border-top: 0px; border-Right: 0px; border-bottom: 0px; border-left: 0px; display: inline "border =" 0 "alt =" clip_image008 "src =" http://img1.51cto.com/attachment/201407/10/8946015_14049698614ATM.png "" 642 "Height =" 484 "/>
Copy wizard confirmation
650) This. width = 650; "Title =" clip_image009 "style =" border-top: 0px; border-Right: 0px; border-bottom: 0px; border-left: 0px; display: inline "border =" 0 "alt =" clip_image009 "src =" http://img1.51cto.com/attachment/201407/10/8946015_1404969862zHEX.png "" 644 "Height =" 484 "/>
If the firewall inbound rules of the replica server do not allow port 80 access, the following error occurs:
650) This. width = 650; "Title =" clip_image010 "style =" border-left-0px; border-right-width: 0px; border-bottom-width: 0px; border-top-width: 0px "border =" 0 "alt =" clip_image010 "src =" http://img1.51cto.com/attachment/201407/10/8946015_1404968914MArY.png "width =" 393 "Height =" 314 "/>
Solution: Create an inbound rule on the copy server hv02 to allow connection to port 80.
2) VM replication process
After the replication starts, you can view the replication status of the virtual machine through the hyper-V manager.
650) This. width = 650; "Title =" clip_image011 "style =" border-top: 0px; border-Right: 0px; border-bottom: 0px; border-left: 0px; display: inline "border =" 0 "alt =" clip_image011 "src =" http://img1.51cto.com/attachment/201407/10/8946015_14049698634tHe.png "" 574 "Height =" 484 "/>
The detailed information of the copy operation status is:
650) This. width = 650; "Title =" clip_image012 "style =" border-left-0px; border-right-width: 0px; border-bottom-width: 0px; border-top-width: 0px "border =" 0 "alt =" clip_image012 "src =" http://img1.51cto.com/attachment/201407/10/8946015_14049689168Vw0.png "width =" 664 "Height =" 445 "/>
The hyper-V replica folder is automatically generated in the target folder on the replica server and contains the following three folders:
650) This. width = 650; "Title =" clip_image013 "style =" border-left-0px; border-right-width: 0px; border-bottom-width: 0px; border-top-width: 0px "border =" 0 "alt =" clip_image013 "src =" http://img1.51cto.com/attachment/201407/10/8946015_1404968917WyzC.png "width =" 649 "Height =" 149 "/>
The details of virtual hard disks and virtual machines are as follows:
650) This. width = 650; "Title =" clip_image014 "style =" border-left-0px; border-right-width: 0px; border-bottom-width: 0px; border-top-width: 0px "border =" 0 "alt =" clip_image014 "src =" http://img1.51cto.com/attachment/201407/10/8946015_1404968917cR0j.png "width =" 767 "Height =" 113 "/>
650) This. width = 650; "Title =" clip_image015 "style =" border-left-0px; border-right-width: 0px; border-bottom-width: 0px; border-top-width: 0px "border =" 0 "alt =" clip_image015 "src =" http://img1.51cto.com/attachment/201407/10/8946015_1404968918nrt2.png "width =" 828 "Height =" 108 "/>
After replication synchronization is complete, you can find that the master server and the replica server have exactly the same time, while the replica server also has a WIN7-01 of this virtual machine.
650) This. width = 650; "Title =" clip_image016 "style =" border-top: 0px; border-Right: 0px; border-bottom: 0px; border-left: 0px; display: inline "border =" 0 "alt =" clip_image016 "src =" http://img1.51cto.com/attachment/201407/10/8946015_1404969866PzS4.png "" 644 "Height =" 409 "/>
650) This. width = 650; "Title =" clip_image017 "style =" border-top: 0px; border-Right: 0px; border-bottom: 0px; border-left: 0px; display: inline "border =" 0 "alt =" clip_image017 "src =" http://img1.51cto.com/attachment/201407/10/8946015_1404969867jISY.png "" 636 "Height =" 484 "/>
3) test failover
On the hv02 host machine select Win7-01 --> copy --> test failover
650) This. width = 650; "Title =" clip_image018 "style =" border-top: 0px; border-Right: 0px; border-bottom: 0px; border-left: 0px; display: inline "border =" 0 "alt =" clip_image018 "src =" http://img1.51cto.com/attachment/201407/10/8946015_1404969867L5FI.png "" 610 "Height =" 484 "/>
Click "test failover,
650) This. width = 650; "Title =" clip_image019 "style =" border-left-0px; border-right-width: 0px; border-bottom-width: 0px; border-top-width: 0px "border =" 0 "alt =" clip_image019 "src =" http://img1.51cto.com/attachment/201407/10/8946015_1404968922CEYl.png "width =" 459 "Height =" 196 "/>
A Win7-01 Test Virtual Machine is generated in hyper-V manager with detailed hard disk file information
650) This. width = 650; "Title =" clip_image020 "style =" border-left-0px; border-right-width: 0px; border-bottom-width: 0px; border-top-width: 0px "border =" 0 "alt =" clip_image020 "src =" http://img1.51cto.com/attachment/201407/10/8946015_1404968922JzAa.png "width =" 855 "Height =" 140 "/>
4) Enable failover
Select Win7-01 --> copy --> planned failover on hv01
650) This. width = 650; "Title =" clip_image021 "style =" border-top: 0px; border-Right: 0px; border-bottom: 0px; border-left: 0px; display: inline "border =" 0 "alt =" clip_image021 "src =" http://img1.51cto.com/attachment/201407/10/8946015_1404969869JAJy.png "" 244 "Height =" 208 "/>
650) This. width = 650; "Title =" clip_image022 "style =" border-left-0px; border-right-width: 0px; border-bottom-width: 0px; border-top-width: 0px "border =" 0 "alt =" clip_image022 "src =" http://img1.51cto.com/attachment/201407/10/8946015_1404968924COYd.png "width =" 562 "Height =" 321 "/>
Click "failover" to perform some basic checks. If no relevant settings have been made before, the following error window will pop up:
650) This. width = 650; "Title =" clip_image023 "style =" border-left-0px; border-right-width: 0px; border-bottom-width: 0px; border-top-width: 0px "border =" 0 "alt =" clip_image023 "src =" http://img1.51cto.com/attachment/201407/10/8946015_1404968924HPLg.png "width =" 365 "Height =" 221 "/>
The solution to the above error is: Set the hv01Copy ConfigurationAs follows:
650) This. width = 650; "Title =" clip_image024 "style =" border-top: 0px; border-Right: 0px; border-bottom: 0px; border-left: 0px; display: inline "border =" 0 "alt =" clip_image024 "src =" http://img1.51cto.com/attachment/201407/10/8946015_1404969872jCGd.png "" 515 "Height =" 484 "/>
Click "application" and the port 80 inbound rule is enabled in the firewall;
650) This. width = 650; "Title =" clip_image025 "style =" border-left-0px; border-right-width: 0px; border-bottom-width: 0px; border-top-width: 0px "border =" 0 "alt =" clip_image025 "src =" http://img1.51cto.com/attachment/201407/10/8946015_1404968929g0tJ.png "width =" 365 "Height =" 184 "/>
If "scheduled failover" is performed again after the above two settings are changed, a message indicating success is displayed.
650) This. width = 650; "Title =" clip_image026 "style =" border-left-0px; border-right-width: 0px; border-bottom-width: 0px; border-top-width: 0px "border =" 0 "alt =" clip_image026 "src =" http://img1.51cto.com/attachment/201407/10/8946015_14049689294EVs.png "width =" 525 "Height =" 359 "/>
The WIN7-01 status on the hv01 host isShutdownAndReplication typeIsCopy.
650) This. width = 650; "Title =" clip_image027 "style =" border-top: 0px; border-Right: 0px; border-bottom: 0px; border-left: 0px; display: inline "border =" 0 "alt =" clip_image027 "src =" http://img1.51cto.com/attachment/201407/10/8946015_1404969873qR7O.png "" 571 "Height =" 484 "/>
The WIN7-01 status on the hv02 host is running andReplication typeIsMainAnd the Win7-01 Test Virtual Machine is automatically deleted.
650) This. width = 650; "Title =" clip_image028 "style =" border-top: 0px; border-Right: 0px; border-bottom: 0px; border-left: 0px; display: inline "border =" 0 "alt =" clip_image028 "src =" http://img1.51cto.com/attachment/201407/10/8946015_1404969874vPYU.png "" 602 "Height =" 484 "/>
Connect to the virtual machine.
650) This. width = 650; "Title =" image "style =" border-top: 0px; border-Right: 0px; border-bottom: 0px; border-left: 0px; display: inline "border =" 0 "alt =" image "src =" http://img1.51cto.com/attachment/201407/10/8946015_1404969875nIWD.png "" 644 "Height =" 403 "/>