Skip to main content
Enterprise applications

Deploy Hyper-V replica in a clustered environment

Contributors netapp-bingen netapp-chrisgeb

Learn how to deploy and configure Hyper-V replica with Windows Server Failover Cluster.

Prerequisites

  • You need to have Hyper-V clusters located in the same or in separate geographical locations serving as primary and replica clusters. Review Deploy Hyper-V Cluster for more details.

  • If separate sites are used, then the firewall at each site must be configured to allow communication between the primary and replica clusters.

  • The replica cluster must have enough space to store the replicated workloads.

Deployment

  1. Enable firewall rules on all the nodes of a cluster. Run the following PowerShell cmdlet with admin privileges on all the nodes in both the primary and replica clusters.

    # For Kerberos authentication
    get-clusternode | ForEach-Object \{Invoke-command -computername $_.name -scriptblock \{Enable-Netfirewallrule -displayname "Hyper-V Replica HTTP Listener (TCP-In)"}}
    # For Certificate authentication
    get-clusternode | ForEach-Object \{Invoke-command -computername $_.name -scriptblock \{Enable-Netfirewallrule -displayname "Hyper-V Replica HTTPS Listener (TCP-In)"}}
  2. Configure the replica cluster.

    1. Configure the Hyper-V Replica broker with a NetBIOS name and IP address to use as the connection point to the cluster that is used as the replica cluster.

      1. Open Failover Cluster Manager.

      2. Expand the cluster, click Roles, and click the Configure Role from Actions pane.

      3. Select Hyper-V Replica Broker in the Select Role page.

      4. Provide the NetBIOS name and IP address to be used as the connection point to the cluster (client access point).

      5. This process creates a Hyper-V Replica broker role. Verify that it comes online successfully.

    2. Configure replication settings.

      1. Right-click the replica broker created in the previous steps and click Replication Settings.

      2. Select Enable This Cluster as a Replica Server.

      3. In the Authentication and Ports section, select the authentication method and port.

      4. In the authorization and storage section, select the servers allowed to replicate VMs to this cluster. Also, specify the default location where the replicated VMs are stored.

Replication

Replication is similar to the process described in the section Replica Outside a Clustered Environment.