Now to the more exciting stuff! Hyper-V Replication enables virtual machines workloads on Windows Server 2012 to be consistently copied to a remote server in the event a site or hardware system should crash.
Tasks in this Lab Module
1) Enable Hyper-V Replication.
2) Configuring Hyper-V Replication.
3) Implement a planned failover.
4) Implement an unplanned failover.
5) Remove Replication (Optional)
You will need a virtual machine named WS2012VMServer3 that is joined to the domain as Server3 for this exercise.
1) Enable replication on WS2012VMHost1 and WS2012VMHost2
To enable replication on host machines, type the following commands and press ENTER after each.
If the script below fails to run, type Set-ExecutionPolicy RemoteSigned and then re-run the script.
Invoke-Command -ComputerName WS2012VMHost1 -ScriptBlock {
Set-VMReplicationServer -ReplicationEnabled $True -ComputerName WS2012VMHost1 -AllowedAuthenticationType Kerberos -ReplicationAllowedFromAnyServer $True -DefaultStorageLocation C:\Replica
Enable-NetFirewallRule -Name VIRT-HVRHTTPL-IN-TCP-NOSCOPE
}
Invoke-Command -ComputerName WS2012VMHost2 -ScriptBlock {
Set-VMReplicationServer -ReplicationEnabled $True -ComputerName WS2012VMHost2 -AllowedAuthenticationType Kerberos -ReplicationAllowedFromAnyServer $True -DefaultStorageLocation C:\Replica
2) Configure Hyper-V Replication.
IPv4 Address: 192.168.10.31 (Assuming this is your IP Scheme for the secondary site)
Subnet Mask: 255.255.255.0
Preferred DNS: 192.168.10.1
3) Implement a Planned Failover
4) Implement an Unplanned Failover
Note: WS2012VMServer3 was started automatically after failover.
Optional! Remove Replication if so desired.
More Information
Tommy’s Blog
http://virtuallycloud9.com
Windows Server Blogs
http://blogs.technet.com/b/windowsserver/
Windows Server 2012 Product Download
http://aka.ms/ws2012tp
Microsoft Virtual Academy
http://aka.ms/tpva
Windows Server 2012 Virtual Labs
http://technet.microsoft.com/en-us/windowsserver/hh968267.aspx
Windows Azure 90-Day Free Trial Page
http://aka.ms/mshosting