|
| 1 | +--- |
| 2 | +title: How to Set Up Hyper-V Replica Between Windows Server 2016 and Windows Server 2022 |
| 3 | +description: Provides guidance to set up Hyper-V Replica if the source VM is on Windows Server 2016 and the destination VM is on Windows Server 2022. |
| 4 | +ms.date: 08/28/2025 |
| 5 | +manager: dcscontentpm |
| 6 | +audience: itpro |
| 7 | +ms.topic: troubleshooting |
| 8 | +ms.reviewer: kaushika, simonw, v-appelgatet |
| 9 | +ms.custom: |
| 10 | +- sap:virtualization and hyper-v\hyper-v replica (hvr) |
| 11 | +- pcy:WinComm Storage High Avail |
| 12 | +--- |
| 13 | + |
| 14 | +# How to set up Hyper-V Replica between Windows Server 2016 and 2022 |
| 15 | + |
| 16 | +This article provides guidance for setting up a Hyper-V replica if the source virtual machine (VM) resides on Windows Server 2016 and the destination VM resides on Windows Server 2022. |
| 17 | + |
| 18 | +> [!IMPORTANT] |
| 19 | +> Before you deploy this configuration in a production environment, test it in a controlled environment. |
| 20 | +
|
| 21 | +> [!NOTE] |
| 22 | +> For general information about setting up Hyper-V Replica, see [Set up Hyper-V Replica](/windows-server/virtualization/hyper-v/manage/set-up-hyper-v-replica). |
| 23 | +
|
| 24 | +## Prerequisites |
| 25 | + |
| 26 | +Before you use the procedures in this article, make sure that your host computers and VMs meet the following requirements: |
| 27 | + |
| 28 | +- You have administrator-level access to both host computers. |
| 29 | +- The Hyper-V role is configured on both the source (Windows Server 2016) and destination (Windows Server 2022) host computers. |
| 30 | +- The source and destination host computers are on the same network or on connected networks. |
| 31 | +- The appropriate firewall rules exist to allow Hyper-V replication traffic. For information about the ports that are involved in Hyper-V replication, see "Hyper-V service" in [Service overview and network port requirements for Windows](../networking/service-overview-and-network-port-requirements.md#hyper-v-service). |
| 32 | +- Both host computers have sufficient storage and compute resources for the VM replicas. |
| 33 | +- The source VM (on Windows Server 2016) and the destination VM (on Windows Server 2022) are of the same generation (both are Generation 1, or both are Generation 2). |
| 34 | + |
| 35 | +## Configure replication |
| 36 | + |
| 37 | +To configure Hyper-V Replica, follow these steps: |
| 38 | + |
| 39 | +1. Configure Hyper-V Replica on the source host computer by following these steps: |
| 40 | + |
| 41 | + 1. On the Windows Server 2016 host computer, open **Hyper-V Manager**. |
| 42 | + 1. Right-click the VM that you want to replicate, and then select **Enable Replication**. |
| 43 | + 1. Follow the prompts to configure the replication settings. Provide the destination host computer's name or IP address. |
| 44 | + |
| 45 | +1. Configure Hyper-V Replica on the destination host computer by following these steps: |
| 46 | + |
| 47 | + 1. On the Windows Server 2022 host computer, enable the Hyper-V Replica feature. |
| 48 | + 1. Open **Hyper-V Settings**, and then configure the **Replica Server** settings. Make sure that the Windows Server 2022 host computer is authorized to receive replication traffic from the Windows Server 2016 host computer. |
| 49 | + |
| 50 | +Before you deploy this configuration in a production environment, test the following functionality: |
| 51 | + |
| 52 | +1. Start replication from the source host computer to the destination host computer, and then monitor the replication status in Hyper-V Manager to make sure that the process finishes successfully. |
| 53 | +1. Trigger a planned failover, and verify that the destination host computer can host the VM if the source host computer fails. |
| 54 | +1. Start the failback process, and verify that when the source host computer becomes operational, the VM returns to it. |
| 55 | + |
| 56 | +## Troubleshooting replication issues |
| 57 | + |
| 58 | +Incorrect settings on either the source or destination server can prevent replication. If your system doesn't replicate, check the following settings: |
| 59 | + |
| 60 | +- The Hyper-V Replica settings (including the authentication settings) on both the host and destination computers. |
| 61 | +- The port rules in all firewalls between the source VM and the destination VM. |
| 62 | +- The VM generation of the source and destination VMs (both Generation 1 or both Generation 2). |
| 63 | + |
| 64 | +Additionally, verify that the source and destination host computers connect successfully. |
| 65 | + |
| 66 | +## References |
| 67 | + |
| 68 | +For a detailed discussion about Hyper-V Replica settings, see [Set up Hyper-V Replica](/windows-server/virtualization/hyper-v/manage/set-up-hyper-v-replica). |
0 commit comments