Skip to content

Commit 45fb7bf

Browse files
authored
Merge pull request #9603 from v-tappelgate/AB#6970-Setting-up-a-Hyper-V-replica-between-Windows-Server-2016-and-Windows-Server-2022
AB#6970: Set up Hyper-V replica between WS 2016 and WS 2022
2 parents d0eeb95 + ee3a2d0 commit 45fb7bf

2 files changed

Lines changed: 70 additions & 0 deletions

File tree

support/windows-server/toc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2750,6 +2750,8 @@ items:
27502750
items:
27512751
- name: Feature and performance optimization of HVR
27522752
href: ./virtualization/feature-performance-optimization-hyper-v-replica.md
2753+
- name: Set Up HVR between Windows Server 2016 and Windows Server 2022
2754+
href: ./virtualization/set-up-hyper-v-replica-between-windows-server-2016-and-windows-server-2022.md
27532755
- name: Installation and configuration of Hyper-V
27542756
items:
27552757
- name: Antivirus exclusions for Hyper-V hosts
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
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

Comments
 (0)