How to use Hyper-V replica on single/cluster servers and replicate VM to another

This blog post describes how to enable Hyper-V replica on single Hyper-V host and also cluster. Post will also show how to enable replication on a single VM and how to move it to another Hyper-V server.

First I will show how to enable Replica on singe Hyper-V server. Modify Hyper-V settings from Hyper-V manager
8

Then Enable server as Replica server. I used basic Kerberos (HTTP) authentication and allowed all server to replicate to this server. I also specified default location for replica files
9

Remember to allow replication from firewall

 

 

Hyper-V replica configuring on cluster,

First, open Failover Cluster Manager and configure new role
1

Then choose “Hyper-V Replica Broker”
2

Add name of your replica and added IP address.
(NOTE: If you don´t have needed rights to create computer object for replica you can ask your AD managers to configure it manually before configuring Hyper-V Replica Broker. Ask them to create computer object and grant full rights for both nodes and cluster account. Then disable computer account.)
3

Ensure that settings are as you expected
4

Finish
5

Then we need to configure Replication settings for broker which we just created.
6

First, enable Cluster as Replica server and I used Kerberos (http) for authentication.
Default location for Replica files I used CSV disk

7

Last step is to allow communication from both nodes via powershell

 

 

Next we will configure one VM to use Replication. First, right click from vm and choose “Enable Replication”
10

Specify Replica server
11

Used basic settings for this
12

Used basic settings (if you want to leave one of disks out of replication uncheck it)
13

Choose requency
14

Configure Recovery points if needed
15

Choose Initial replication method and schedule
16

Ensure settings and finish
17

 

Next we will do Planned failover for VM (vm should be stopped).
25

Check settings (I didn´t want that server is going to start after replication)
26

After planned failover you can do Reverse Replication or if you want to leave server to just replicated server choose Remove Replication
27

 

Leave a Reply

Your email address will not be published. Required fields are marked *