Hyper-V Replica Installation, Configuration and Failover Types

A fire, a flood or a long power outage in a data centre takes the Hyper-V hosts at that location and the virtual machines that run on them out of service at the same time. If an up-to-date copy of the virtual machines is ready at a different location, the recovery time is shorter. If it is not, the only option left is to return to the most recent backup. Shared storage, dedicated replication hardware or third-party software can be used to keep such a copy up to date. Hyper-V Replica, which was introduced with Windows Server 2012, meets this need from within the Hyper-V role itself.

Hyper-V Replica replicates a virtual machine that runs on a Hyper-V host to another Hyper-V host asynchronously over TCP/IP. The word asynchronous is a decisive detail here: changes are not written to the other side instantly, they are sent at set intervals according to the selected replication frequency. For this reason, the copy on the Replica side can be behind until the changes written to the primary VM are applied on the other side. When the primary location becomes unavailable, the copy on the Replica host is started with a failover. The time it takes for the service to become accessible again depends on when the failover is started and on whether the target network and the application are ready, and it can only be measured by a test on the relevant workload.

Hyper-V Replica

In this article, I first explain the features of Hyper-V Replica and the components that work in the background, and then I configure replication with Kerberos (HTTP) between 2 standalone Windows Server 2012 R2 Hyper-V hosts that are members of the same Active Directory domain. In the last section, I cover the failover types and the replication management options. The installation of the Hyper-V role and the creation of the virtual machine are outside the scope of this article; I explained those steps in my Hyper-V role and virtual machine installation article.

Extended support for Windows Server 2012 R2 ended on 10 October 2023. Hyper-V Replica is also included in later Windows Server versions; I state the version-dependent values separately in the relevant steps.

Key Features

✅ Integrated and No Additional Licence Required

Hyper-V Replica comes as part of the Hyper-V role. No separate product installation or additional licence is required for the feature; it is ready to use on every host that runs Windows Server 2012 or later with the Hyper-V role installed. The operating system licences of the virtual machines that will run on the Replica side are a separate matter and must be assessed against your own licence terms.

✅ Independent of Third-Party Vendors

Because replication takes place at the hypervisor level, you do not depend on any storage or replication vendor. You also do not have to have servers, storage or network hardware of the same make and model at the primary and Replica sites. It is enough to have servers that can run Hyper-V on both sides.

✅ Periodic Replication over IP

All replication traffic is carried over TCP/IP, with HTTP or HTTPS. The replication frequency was fixed at 5 minutes in Windows Server 2012. The 30 seconds, 5 minutes and 15 minutes options arrived with Windows Server 2012 R2. The data that is sent is compressed by default; this option can be turned off if required.

✅ Bandwidth Savings During Replication

The virtual disks are sent to the other side in full only during the first replication (initial replication). In later replications (delta replication), only the blocks that have changed since the last transfer are carried. Together with compression, this design reduces bandwidth consumption on the links between locations.

✅ No Additional Installation or Technology Required

No additional component needs to be installed for replication. The feature becomes available after a short configuration on the hosts. There is also no dependency on an Active Directory domain or a failover cluster; it can run between hosts in a workgroup environment with certificate-based authentication.

✅ No Shared Storage Unit Required

Unlike failover cluster designs, no shared storage is required between the primary and Replica hosts. Each host uses its own local disk or its own storage. It is enough for the hosts to reach each other over TCP/IP.

✅ Provides Authentication Methods

Before replication starts, the primary and Replica hosts authenticate each other at the machine level. There are 2 methods for this: Kerberos authentication and certificate-based authentication. Kerberos can only be used between hosts that are members of the same Active Directory domain or of mutually trusted domains. Certificate-based authentication is mandatory in workgroup or untrusted domain environments.

✅ Security Features

Because replication traffic is carried over the network, 2 points must be assessed separately: which servers the Replica host accepts replication from, and whether the data in transit is encrypted. The source of replication can be restricted on the Replica host so that replication is accepted only from specific servers. Encryption depends on the authentication method; data is carried unencrypted with Kerberos (HTTP) and encrypted with a certificate (HTTPS).

✅ Configuration Permissions

Hyper-V Replica can be configured by a user who is a member of the Hyper-V Administrators group. This group is a local delegation group that comes with the Windows Server 2012 Hyper-V installation. Members of the Administrators group can already manage Hyper-V with full permissions. The Hyper-V Administrators group is used to give only Hyper-V management permissions to an IT specialist to whom you do not want to give full administrator rights on the server.

Hyper-V Replica

A user who is a member of this group can manage all Hyper-V features, and can also configure a host as a Replica server and enable replication for virtual machines.

Hyper-V Replica Architecture and Terminology

The following components work in the background of the Hyper-V Replica mechanism.

Hyper-V Replica

These terms appear often on the configuration screens and in the rest of the article, so I list what each of them means in the table below.

Term Description
Primary site The main location that contains the virtual machine to be replicated and the Hyper-V host that hosts it.
Primary host (primary server) The Hyper-V host on which the virtual machine to be replicated runs.
Primary VM The running original copy of the virtual machine.
Replica site The second location, to which the replication data is sent.
Replica host (Replica server) The Hyper-V host that receives the replication data.
Replica VM The copy of the virtual machine that is updated with the replication data and stays turned off on the Replica host until a failover.
Replication Engine Manages the replication configuration. It runs the initial replication, delta replication, failover and Test Failover operations.
Change Tracking Module Tracks the write operations made to the virtual disks of the primary VM and records the changes in a log file (Hyper-V Replica Log, .hrl). The data to be sent in delta replication is determined from this log.
Network Module Carries the data between the primary and Replica hosts over HTTP or HTTPS. Compression, and encryption when HTTPS is used, are performed at this layer.
Hyper-V Replica Broker The cluster role used in failover cluster environments. It is required so that hosts that are cluster members can take part in replication.
Management components Hyper-V Manager, the Hyper-V PowerShell module and the Hyper-V WMI provider. They provide the interface and command support for managing the setup.

The Hyper-V Replica Broker role needs a closer look. In a Windows Server 2012 Hyper-V failover cluster environment, a virtual machine can move between nodes, so it is not correct to tie replication to the name of a single node. For this reason, the Hyper-V Replica Broker role is added to the cluster, and the Client Access Point name of this role is given to the other side as the Replica server name. The replication configuration is also not done on individual hosts. It is done on the Broker role in Failover Cluster Manager and applies to all nodes in the cluster. This role also makes sure that replication continues with the correct node after virtual machine move operations such as Quick Migration and Live Migration.

1- Prerequisite Checklist

Before I start the configuration, I make sure that the following items are met on both hosts.

Check Expected State
Hyper-V role Installed on both hosts. The processor supports Intel VT or AMD-V, and Data Execution Prevention (DEP) is enabled.
Operating system version In this lab, both hosts run Windows Server 2012 R2. The situation between different versions is explained below the table.
Disk space The Replica host has free space equal to the total size of the virtual disks to be replicated, and more than this if additional recovery points are kept.
Name resolution The hosts can resolve each other by FQDN.
Windows Firewall On the host that receives the replication, the inbound rule for the selected authentication method is enabled.
Permissions The account that performs the configuration is a member of the Administrators or Hyper-V Administrators group on both hosts.

There are 2 points to note about versions. A Replica server that runs Windows Server 2012 R2 accepts replication from a primary server that runs Windows Server 2012; the reverse is not supported. In this case a failover can be performed, but reverse replication cannot be started until the primary server is also upgraded to 2012 R2. If replication to newer versions is planned, you must also check whether the target host supports the configuration version of the virtual machine. Virtual machines created in Windows Server 2012 R2 are version 5.0; this version is supported on Windows Server 2016 and 2019 hosts and is not supported on Windows Server 2022 and 2025 hosts.

On the hardware side, as with all Windows Server systems, hardware with the Windows Server logo is recommended. You can check whether a server model is certified at www.windowsservercatalog.com.

The Windows Firewall rule is an item that needs separate attention. When the Hyper-V role is installed, the inbound rules required for Hyper-V Replica are created, but these rules are disabled by default. If the rule is not enabled, the primary host cannot connect to the other side even when the Replica server configuration is complete. Because I will use Kerberos (HTTP), I enable the relevant rule with the following command in a PowerShell session that I opened as administrator.


Enable-NetFirewallRule -DisplayName "Hyper-V Replica HTTP Listener (TCP-In)"

I run the command on SRV0002, which will receive the replication. I also run the same command on SRV0001 so that I can reverse the replication direction later. If certificate-based authentication is used, the name of the rule to enable is Hyper-V Replica HTTPS Listener (TCP-In). If there is another firewall between the 2 locations, the selected port must be allowed there too.

2- Decision Table

The Replica server configuration and the Enable Replication wizard contain several decision points. I list them in the table below so that these decisions are made in advance and not at the screens.

Step Screen Decision to Make Choice in This Setup
Step 3 - Authentication and ports Replication Configuration Kerberos (HTTP) or certificate (HTTPS), and the port to use Use Kerberos (HTTP), port 80
Step 4 - Authorization and Storage Replication Configuration Which servers replication is accepted from, and the location of the Replica files Allow replication from the specified Servers, trust group: Replication01
Step 6 - Specify Replica Server Enable Replication wizard The host to which replication is sent SRV0002
Step 7 - Specify Connection Parameters Enable Replication wizard Authentication type, port and compression Kerberos (HTTP), port 80
Step 8 - Choose Replication VHDs Enable Replication wizard The virtual disks to include in replication Single virtual disk, selected
Step 9 - Configure Replication Frequency Enable Replication wizard 30 seconds, 5 minutes or 15 minutes 5 minutes
Step 10 - Configure Additional Recovery Points Enable Replication wizard Only the latest recovery point, or additional hourly recovery points Determined by the acceptable data loss and the disk space
Step 11 - Choose Initial Replication Method Enable Replication wizard How and when the initial copy is sent Over the network

3- Replica Server Configuration

In my earlier Hyper-V role and virtual machine installation article, I installed the Hyper-V role and created my first virtual machine, with the Windows Server 2012 R2 Standard operating system, in Hyper-V Manager. In this article, I replicate that virtual machine. The lab details for my scenario are as follows.

Primary Server

• Physical server: SRV0001
• Domain: firatboyan.com
• FQDN: SRV0001.firatboyan.com
• Primary server: SRV0001

NOTE: SRV0001 is the physical server that will send the replication. The Virtual_SRV0001 virtual machine to be replicated runs on this server.

Replica Server

• Physical server: SRV0002
• Domain: firatboyan.com
• FQDN: SRV0002.firatboyan.com
• Replica server: SRV0002

NOTE: SRV0002 is the physical server that will receive the replication. I did not create a virtual machine manually on this server. The Replica copy of the Virtual_SRV0001 virtual machine will be created here automatically when replication is enabled.

A host must be enabled as a Replica server before it can receive replication. Because the replication direction is from SRV0001 to SRV0002, this setting is mandatory on SRV0002. I also apply the same setting on SRV0001, because the former primary host must also be able to accept replication in order to reverse the replication direction (reverse replication) after a failover.

Step 1 - Hyper-V Settings

In the Hyper-V Manager console of both servers, I click Hyper-V Settings... under Actions.

Hyper-V Replica

Step 2 - Replication Configuration

In the window that opens, I click Replication Configuration. In the section on the right, I select Enable this computer as a Replica Server to specify that the host can accept replication. The authentication and authorisation fields below do not become active until this option is selected.

Hyper-V Replica

Step 3 - Authentication and ports

This section determines which authentication method and which port the Replica server uses to accept replication. The differences between the 2 methods are as follows.

Feature Use Kerberos (HTTP) Use certificate-based Authentication (HTTPS)
Default port 80 443
Where it can be used The same Active Directory domain or mutually trusted domains Workgroup, untrusted domain and domain environments
Replication data Carried unencrypted Carried encrypted
Additional requirement None A suitable certificate on both hosts

With the Use Kerberos (HTTP) option, the hosts authenticate each other with their machine accounts through Active Directory. The authentication is secure, but the replication data is sent unencrypted over HTTP. SRV0001 and SRV0002 are members of the same domain, so they meet the Kerberos condition. I select this method in my scenario and leave the port at its default value of 80.

With the Use certificate-based Authentication (HTTPS) option, the hosts authenticate each other with certificates and the data is carried encrypted. With this method, both the sending host and the receiving host must have a certificate that meets the following conditions.

Certificate Condition Expected State
Validity Not expired.
Private key The private key associated with the certificate is present.
Enhanced Key Usage Includes both Client Authentication and Server Authentication.
Trust chain Chains to a valid root CA that the host trusts.
Name match The Subject Common Name (CN) or the Subject Alternative Name (SAN) matches the FQDN of the relevant host.

With both methods, the port number can be changed on this screen. If the port is changed, the predefined rules in Windows Firewall do not cover the new port; a separate inbound rule must be created for the new port.

Hyper-V Replica

With Kerberos (HTTP), the replication data is not encrypted. If the traffic between locations passes through an untrusted network, use a site-to-site VPN or IPsec, or select the certificate-based method.

Step 4 - Authorization and Storage

This section determines which primary servers the Replica server accepts replication from and where the incoming Replica files are stored.

Option Result
Allow replication from any authenticated Server Replication is accepted from every server that is authenticated. All Replica files are collected in a single specified location.
Allow replication from the specified Servers Replication is accepted only from primary servers that match an authorisation entry. A separate storage location and trust group can be defined for each entry.

Hyper-V Replica

To keep control over which servers the Replica server receives replication from, I select the Allow replication from the specified Servers option. The FQDN of a single server can be entered in the authorisation entry, or a pattern in the form *.firatboyan.com can be defined with a wildcard in the first label. In this lab, I use the full FQDN of the other host.

Hyper-V Replica

I click the Add... button. On SRV0001, I enter the FQDN SRV0002.firatboyan.com in the Specify the Primary Server field. When I apply the same setting on SRV0002, I enter the FQDN SRV0001.firatboyan.com in this field. The entry that replication needs in order to work is the entry on SRV0002; the entry on SRV0001 allows the replication that comes from SRV0002 to be accepted during reverse replication.

I enter Replication01 in the Specify the trust group field on both servers. A trust group is used to group more than 1 primary server under the same label. When a virtual machine is moved to another primary server in the same trust group, the Replica server accepts replication from that server too. I complete the configuration by clicking the OK button.

Hyper-V Replica

Hyper-V Replica

Verification Point
On both servers, on the Replication Configuration screen, Enable this computer as a Replica Server is selected, Use Kerberos (HTTP) is selected with port 80, and the FQDN of the other host appears in the list of authorised servers with the Replication01 trust group.

4- Enabling Replication

The Replica server configuration is a host-level setting and does not replicate any virtual machine on its own. Replication is enabled per virtual machine on the primary host. The Enable Replication wizard used for this operation asks, in order, which server replication goes to, with which connection settings, how often and for which virtual disks. When the wizard is complete, the copy of the virtual machine is created on the Replica host and the initial replication starts.

Step 5 - Enable Replication

In Hyper-V Manager on SRV0001, I right-click the virtual machine that I will replicate and select Enable Replication....

Hyper-V Replica

The Enable Replication for Virtual_SRV0001 window opens. I complete the next steps in this window in order.

Step 6 - Specify Replica Server

On this screen, I specify the server to which the replication data is sent. I select the SRV0002 server as the Replica server. If the Replica side were a failover cluster, I would have to enter the Client Access Point name of the Hyper-V Replica Broker role in this field instead of a node name.

Hyper-V Replica

Step 7 - Specify Connection Parameters

If remote WMI access is open on the Replica server, the wizard reads the setting that I made in the Step 3 - Authentication and ports section from the other server and fills it in on this screen automatically. If there is no access, the authentication type and the port must be entered manually so that they match the values configured on the Replica server. In my environment the values were filled in automatically; the authentication type is Kerberos (HTTP) and the port is 80.

The Compress the data that is transmitted over the network option on the same screen is selected by default. Compression can reduce the bandwidth that replication consumes; it is not a mandatory setting and can be turned off if required. I leave the settings as they are and click the Next button to continue.

Hyper-V Replica

Step 8 - Choose Replication VHDs

The virtual disks attached to the virtual machine are listed on this screen. If there is more than 1 virtual disk and one of them holds data that is not worth replicating, its check box can be cleared to leave it out of replication. The typical example is a virtual disk dedicated to the page file; not replicating this data, which changes constantly but is not needed after a failover, reduces bandwidth usage. My virtual machine has a single virtual disk, so I leave it selected and click the Next button.

Hyper-V Replica

Step 9 - Configure Replication Frequency

On this screen, I specify how often the changes are sent to the Replica server. In Windows Server 2012 R2, the options are 30 seconds, 5 minutes and 15 minutes. This value is a transfer target, not a guarantee against data loss. If the link cannot carry the changes that accumulate in each cycle within that time, or if cycles fail, the Replica VM can be further behind than the selected interval. A shorter interval keeps the Replica VM more up to date as long as the cycles complete without problems. I select 5 minutes.

Hyper-V Replica

Step 10 - Configure Additional Recovery Points

This screen determines how many recovery points are kept on the Replica server.

Option Result
Maintain only the latest recovery point Only the state that arrived with the most recent replication is kept. Failover is performed from this point.
Create additional hourly recovery points Hourly recovery points are kept in addition to the latest state. In Windows Server 2012 R2, a maximum of 24 additional recovery points can be stored.

Additional recovery points are created about 1 hour apart; the interval cannot be changed, only the number to keep is selected. This option is useful when corruption on the primary VM is also carried to the Replica side. For example, an operation that corrupts data is also reflected on the Replica VM with the next replication cycle; if there are additional recovery points, it is possible to return to an hour before the corruption during failover.

When additional recovery points are selected, the Volume Shadow Copy Service (VSS) Snapshot frequency setting on the same screen also becomes available. Default replication preserves the state of the operating system, but it does not preserve the state of applications that are processing at that moment. When this setting is enabled, application-consistent recovery points are created with VSS at intervals set in hours. This protection is meaningful if applications that support VSS, such as SQL Server, run in the virtual machine; having the setting enabled does not on its own guarantee the consistency of every application. Additional recovery points use more disk space on the Replica server.

Hyper-V Replica

Step 11 - Choose Initial Replication Method

On this screen, I specify how the virtual disks are transferred in full to the Replica server for the first time.

Option What It Does When to Choose It
Send initial copy over the Network Sends the initial copy directly to the Replica server over the network. When the link capacity can carry the virtual disk size in a reasonable time.
Send initial copy using external media Writes the initial copy to an external disk or a share. This copy is transported to the Replica site and imported there. When the virtual disks are large and the link between locations is slow.
Use an existing Virtual Machine on the Replica Server as the initial copy Uses a virtual machine that already exists on the Replica server as the initial copy and sends only the differences. When the virtual machine was previously restored to the Replica server from a backup.

With option 3, not every virtual machine on the Replica server can be used. The Virtual Machine ID of the existing copy must be the same as that of the primary VM, and its virtual disks and disk properties must also match the primary VM. In practice, a copy restored from a backup of the primary VM meets this condition. If the copy restored from backup has earlier snapshots, they must be deleted before replication is enabled.

The lower part of the screen also sets when the initial replication starts. With Start replication immediately it starts as soon as the wizard finishes, and with Start replication on it can be started at a later date and time. Option 2 is used to schedule a large initial copy over the network outside working hours.

Hyper-V Replica

Step 12 - Summary and Finish

The Summary section lists a summary of the choices that I made on the earlier screens. If there is a setting that I want to change, I can return to the relevant step with the < Previous button.

Hyper-V Replica

The settings are correct, so I click the Finish button to enable replication.

Hyper-V Replica

After the wizard closes, replication starts from the SRV0001 primary server to the SRV0002 Replica server for the Virtual_SRV0001 virtual machine.

Hyper-V Replica

Hyper-V Replica

Verification Point
In Hyper-V Manager on SRV0002, the Virtual_SRV0001 virtual machine is listed in the Off state. When the initial replication is complete, the Replication Health value on the Replication tab of the virtual machine shows Normal.

You can also check the same state with PowerShell. I run the following command on SRV0001 in a PowerShell session opened as administrator.


Measure-VMReplication -VMName "Virtual_SRV0001"

In the output, a State value of Replicating and a Health value of Normal show that replication is progressing without problems. It is normal to see a different value in the State field while the initial replication is still in progress.

There is 1 more setting to make after replication is set up. In Windows Server 2012 R2, the Replica VM does not connect to any network on the Replica server automatically after a failover. For this reason, you need to open the settings of the Replica VM on SRV0002 and select the virtual switch that the network adapter will use after a failover. If the Replica site uses a different IP subnet, the IP address, subnet mask, default gateway and DNS server values that the virtual machine will receive after a failover can be defined in advance in the Failover TCP/IP section under the same network adapter. In a failover performed without these settings, the virtual machine starts but cannot reach the network.

5- Replication Management

After replication is enabled, it is managed from the Replication menu that opens when you right-click the virtual machine. The options in the menu change depending on whether the virtual machine that you click is the primary VM or the Replica VM. The reason is that each failover type is started from a different side.

Failover Type Where It Is Started State of the Primary VM Data Loss
Planned Failover Primary VM Must be shut down None
Failover Replica VM Unreachable Changes made after the selected recovery point
Test Failover Replica VM Continues to run None, replication is not affected

⚡ Replication Options

1- Planned Failover

Planned Failover is used when planned maintenance will be carried out at the primary site or when the disaster recovery plan needs to be tested end to end. The operation is started from the primary VM and requires the virtual machine to be shut down beforehand. Hyper-V first transfers the changes that have not yet been sent to the Replica server and then performs the failover. Because the switch takes place after both sides are synchronised, there is no data loss.

If the Reverse the replication direction after failover option is selected in the Planned Failover window, the replication direction is reversed after the switch and the former primary host becomes the new Replica server. For this to work, the former primary host must also be configured as a Replica server and must have authorised the other server. This was the reason I applied the same setting on SRV0001 in the Step 4 - Authorization and Storage section.

2- Failover

Failover is for situations where the primary site becomes unavailable unexpectedly, and it is started from the Replica VM. The Replica VM is started from the selected recovery point. If additional recovery points are kept in the replication configuration, you select at this stage which hour's copy to start from; if they are not kept, the most recently replicated state is used. An older recovery point is usually chosen when the latest point is corrupt or is not application-consistent.

During failover, Hyper-V checks over remote WMI whether the primary VM is running. The purpose of this check is to prevent the same virtual machine from running at 2 locations at once (split-brain). After the virtual machine starts, it connects to the network according to the virtual switch and Failover TCP/IP settings that I described at the end of Step 12 - Summary and Finish. If these settings were not made in advance, the network adapter must be connected to a virtual switch manually after the failover, and the IP and DNS settings must also be updated if a different subnet is used.

After a failover, 3 options are important on the Replica VM. If a problem is seen at the selected recovery point, the operation is cancelled with Cancel Failover before the failover is completed, and the failover can be performed again with a different recovery point. Cancelling is safe if no changes have been made on the Replica VM yet; if the data written to the Replica VM after the failover must be kept, the operation must not be cancelled. Replication does not continue automatically after a cancellation; the replication state must be checked on the primary VM and replication must be resumed manually with Replication > Resume Replication.

After you confirm that the virtual machine works correctly, the Complete operation merges the recovery points; from this point on, it is not possible to return to an older recovery point. When the primary site is available again, replication is set up again in the opposite direction with Reverse Replication.

In a failover, the changes made on the primary VM after the selected recovery point do not exist on the Replica VM. If there are delayed or failed replication cycles, this loss can exceed 1 replication interval.

3- Test Failover

Test Failover is used to verify that the Replica VM actually starts, without touching the production environment. The operation is started from the Replica VM. From the selected recovery point, Hyper-V creates a separate virtual machine on the Replica server with - Test added to the end of its name. The primary VM continues to run and replication continues without interruption.

By default, the test virtual machine is not connected to any network. This is a deliberate design, because it has the same name and IP address as the production virtual machine. If you want to test at the application level, you can define an isolated virtual switch for Test Failover in the network adapter settings of the Replica VM. This network is set separately from the virtual switch selected for a real failover.

When the test is finished, use the Replication > Stop Test Failover option on the Replica VM and do not delete the virtual machine manually. This operation deletes the test virtual machine and the data created during the test. Only 1 Test Failover can run at a time for the same virtual machine.

Test Failover shows that the selected recovery point can start without interrupting production. Planned Failover is used to test the whole recovery plan end to end, that is, the switch, the network settings and reverse replication. Both tests verify only the state at the time of the test; for this reason, they must be repeated at regular intervals.

4- Pause Replication

Pause Replication temporarily stops data transfer without breaking the replication relationship. It is used during planned network maintenance or when the link must be freed for another task. The primary VM continues to run, and the changes on the virtual disks continue to be tracked and accumulated on the primary host; they are only not sent to the Replica server.

When Resume Replication is selected, the accumulated changes are transferred to the Replica server and replication continues from where it stopped. The longer the pause lasts, the larger the accumulated data becomes, and it consumes disk space on the primary host. When the amount of change becomes very large, Hyper-V can require a resynchronisation to bring the 2 sides back in sync, and this takes much longer than a normal delta replication. For this reason, Pause must be used for short-term needs.

5- Extend Replication

Extend Replication is a feature that arrived with Windows Server 2012 R2, and it allows the Replica VM to be replicated to a 3rd host as well. The chain then has 2 stages: Primary → Replica → Extended Replica. The operation is started on the Replica server by right-clicking the Replica VM and selecting Replication > Extend Replication..., and it proceeds with steps similar to the Enable Replication wizard.

In the typical scenario, the Replica server is in the same data centre or the same city as the primary host, and the Extended Replica server is at a remote location. If the primary and Replica sites become unavailable at the same time, the virtual machine can be run from the Extended Replica.

For extended replication, the replication frequency can only be set to 5 minutes or 15 minutes; there is no 30 seconds option. In addition, this frequency cannot be shorter than the frequency between the primary and the Replica. The Extended Replica server must also be enabled as a Replica server, must have authorised the first Replica server and must have its firewall rule enabled.

6- View Replication Health

View Replication Health summarises the replication status of a virtual machine in a single window. The window contains the replication state (Replication State) and health (Replication Health), the primary and Replica server names, the time of the last successful replication, the number of successful replication cycles in the monitored period, the average and maximum replication size, the average latency and the number of errors encountered.

The content of the window changes depending on the side from which it is opened. When it is opened on the primary VM, the size of the data that has not yet been sent is shown; this is the place to check how far behind replication is. When it is opened on the Replica VM, it contains fields specific to the receiving side, such as whether a Test Failover is running at that moment and when the last Test Failover was started.

When the Replication Health value changes to a value other than Normal (Warning or Critical), the window also states the reason. For example, it shows that some of the replication cycles were missed or that too much time has passed since the last replication. This gives an idea of the direction of the problem without searching for individual records in the Event Log. Because replication runs in the background once it is set up, checking this window regularly lets you see that the Replica VM is as up to date as expected before a failover is needed.

Hyper-V Replica

This article covered which need Hyper-V Replica meets, which components it works with in the background and how it is configured with Kerberos (HTTP) between 2 Windows Server 2012 R2 Hyper-V hosts that are members of the same domain. It went through the Replica server settings, the Windows Firewall rule and the results of the options on each screen of the Enable Replication wizard step by step. The last section covered the differences between Planned Failover, Failover and Test Failover, the Pause Replication and Extend Replication options, and how to monitor replication health.

I hope you find it useful...

No comments on this article yet. Be the first to comment!

750 characters available.
Security code
Comments are published once approved.
Your email is only used to let you know when your comment is approved. It is never published.