Secure Infrastructure Blog

Windows Server 2012 – Part3: Virtualization Enhancements “Mobility”– Hyper-V Replica

In this post series I started here with a release date announced in Windows Server Blog (by the way it was announced yesterday (1st of August) that Windows Server 2012 is RTM today), then I start highlighting the main areas of enhancements that I will focus on in this series starting from Virtualization Enhancements started from scalability & flexibility and shown how to host Virtual Machine on Windows Server 2010 file server here.

Today I am going to move to different area which is Hyper-V Mobility, and will cover one of my favorite features in Windows Server 2012 which is Hyper-V Replica, Hyper-V Replica is new functionality added to the Hyper-V Role in Windows Server 2012 that allow virtual machines running on a host or cluster in a primary site to be replicated to a server or cluster in secondary site using available network bandwidth. Hyper-V Replica replication is efficient, periodic, and asynchronous over IP-based networks and allows a system administrator, in the event of a failure at a primary site (e.g. disaster, server failure, etc.), to execute a failover of production workloads to replica servers at a secondary location within a very short time, let me show you how to configure Hyper-V Replica.


Consider that you have a very simple Hyper-V environment consists of consists of one Domain Controller “DC” and two Hyper-V Hosts “HV1” & “HV2” in the same Active Directory Domain “contoso.com”, and the high level steps to configure and test Hyper-V Replica are as follows:

  1. Configure the Firewall to allow Hyper-V Replication.
  2. Create Virtual Network and a Virtual Machine to Replicate.
  3. Configure Hyper-V Replication Settings on the two Hosts HV1 & HV2.
  4. Configure Guest IP Injection.
  5. Test Failover (Planned and Unplanned).
  6. View Replication Status Health.

Let us start showing you how it is easy to configure and test this amazing feature .


Configure the Firewall to Allow Hyper-V Replication

Create Virtual Network and a Virtual Machine to Replicate

Configure Hyper-V Replication Settings on the two Hosts HV1 & HV2:

Configure Guest IP Injection:

Let me explain more why we need guest IP Injection, when a virtual machine is replicated from a primary server to a replica server, all the machine properties, including its IP address, are replicated. Hyper-V allows an administrator to place a new IP address on the replica of the virtual machine so that when it starts, it is configured with an IP address suitable to the network where the replica server is located.

Test Failover (Planned and Unplanned):

Hyper-V allows an administrator to test whether or not a virtual machine is successfully replicating by starting it on the replica server. The test is done by starting the virtual machine on a replica server and ensuring a successful start. In the test, the virtual machine does not connect to the network; therefore it will not interfere with the original virtual machine running on the primary server. In addition, replication from the primary server to the replica server is not interrupted.

And to execute a planned failover such as during hardware upgrades or during a planned disaster recover test follow the below steps:

And now let us simulate unplanned failover, something that can happened if primary datacenter failed.

View Status Replication Health:

Hyper-V Replication provides information as to the status and health of the replicated virtual machines, in this step we will determine the replication health of a virtual machine, and then we will determine the primary and replica servers for a virtual machine.

Determine the replication health of a virtual machine:

 

I did not decide yet about what I am going to cover in the next post, but almost I will keep digging into Virtualization Enhancements specially Mobility area that has a lot of new good features and capabilities that put Microsoft Hyper-V Virtualization Platform on top of Virtualization technologies, stay tuned, get ready, get excited.


Related Posts:


Authors