Hyper-V Replica on Windows Server 2025 keeps a failover-ready copy of a VM on a second, independent Hyper-V host. You don’t need a cluster, shared storage, or Azure. This guide covers the full setup between two standalone hosts: the replica server, the firewall listener, replication on a VM, and health checks in PowerShell. Then you’ll run a test failover that leaves production replication alone. Do that before you ever try a planned or unplanned failover.
The short answer: enable the second host as a Replica server and open its listener firewall rule. Then turn on replication for each VM from the primary host, using the replica host’s FQDN. Use Kerberos over HTTP (port 80) if both hosts share a trusted AD domain. Use certificates over HTTPS (port 443) for workgroup hosts. Always run a test failover first. It creates a disposable, isolated copy and doesn’t touch ongoing replication.
What Is Hyper-V Replica?
Hyper-V Replica is a disaster-recovery feature built into the Hyper-V role. It copies a running VM’s disk changes to another Hyper-V host on a schedule. The copy is asynchronous, so the replica always trails the primary by up to one replication interval. According to the Hyper-V Replica overview, it uses Resilient Change Tracking (RCT) to send only the changed blocks. You can set the interval to 30 seconds, 5 minutes, or 15 minutes.
The common questions, answered up front:
- Does it still work on Windows Server 2025? Yes. The Microsoft Learn Replica pages list Windows Server 2025 under “Applies to”, along with 2022, 2019, 2016, and Azure Local. Nothing in the researched sources lists it as removed or deprecated.
- Do I need Active Directory or a cluster? No. Two standalone hosts are enough. Domain-joined hosts can use Kerberos. Workgroup hosts, or hosts in untrusted domains, must use certificate-based authentication.
- What does it cost? There’s no separate Replica fee; it comes with the Hyper-V role. You still need properly licensed Windows Server hosts, and Standard and Datacenter grant different virtualization rights, so check your edition’s licensing terms for the VMs you plan to run after a failover.
Replica is disaster recovery, not a backup replacement. It protects against losing a whole host, not against data corruption, accidental deletion, or the need to go back to an old point in time.
If ransomware encrypts the primary VM, the encrypted blocks reach the replica on the next cycle. Extra recovery points give a short rewind window, but you still need real backups for corruption, ransomware, and long-term historical recovery.
Prerequisites
You need the following on both hosts unless a line says otherwise:
- Windows Server 2025 (Standard or Datacenter) with the Hyper-V role already installed. This guide doesn’t cover the role install or virtual switch setup. Use our Hyper-V on Windows Server 2025 install guide for that.
- Two standalone (non-clustered) Hyper-V hosts that can reach each other over the network
- Working DNS. Each host must resolve the other by fully qualified domain name (FQDN).
- An account in the local Administrators group on both hosts. Host-level steps in this guide (Replica server settings, firewall rules) need full local admin rights; Hyper-V Administrators membership alone covers many VM-management tasks but not every command here.
- Enough free space on the replica host for the VM’s disks plus any extra recovery points
- For certificate-based (HTTPS) auth only: a valid certificate on each host (requirements are in Step 2)
- At least one lab VM on the primary host to replicate. Don’t start with a production database.
| Requirement | Details |
|---|---|
| OS | Windows Server 2025, Hyper-V role installed on both hosts |
| Topology | Two standalone hosts, no cluster, no shared storage |
| Authentication | Kerberos (HTTP, TCP 80) or certificate-based (HTTPS, TCP 443) |
| Identity | Domain-joined (Kerberos or certificate) or workgroup (certificate only) |
| Permissions | Local Administrators or Hyper-V Administrators on both hosts |
| Tools | Hyper-V Manager, elevated Windows PowerShell 5.1 with the Hyper-V module |
Example Lab Layout
The names below are placeholders. Swap in your own.
| Role | Hostname (FQDN) | Notes |
|---|---|---|
| Primary host | hv01.lab.local | Runs the production VM |
| Replica host | hv02.lab.local | Receives the replicated VM |
| Lab VM | LAB-VM01 | Small Windows or Linux guest |
| Replica storage | D:\Hyper-V Replica on hv02 | Dedicated data volume |
Hardware notes: keep the replica storage on a separate volume from the replica host’s OS. A fast NVMe SSD works well. How much bandwidth you need depends on the VM’s change rate, VHDX size and replication frequency. For more than a small lab VM, a dedicated link between the hosts keeps replication traffic off your main network. An initial replication sent over the network copies the entire VHDX; seeding from external media or an existing VM on the replica avoids most of that transfer.
Put both hosts on a UPS, too. An unplanned failover caused by a power blip is still an unplanned failover.
Step-by-Step Guide
Step 1: Confirm Both Hosts Are Ready
Run these checks on both hosts in an elevated PowerShell window. Catching a DNS or role problem now saves a confusing wizard error later.
# Confirm the Hyper-V role is installed
Get-WindowsFeature -Name Hyper-V
# Confirm this host's FQDN (what the other host must resolve)
[System.Net.Dns]::GetHostByName($env:COMPUTERNAME).HostName
# From hv01, confirm hv02 resolves by FQDN (run the reverse from hv02)
Resolve-DnsName -Name hv02.lab.local
Expected result: the Install State column for Hyper-V shows Installed. The FQDN lookup returns something like hv01.lab.local. Resolve-DnsName returns an A record for the other host.
If the name doesn’t resolve, fix DNS first. The Enable Replication wizard expects the replica server’s FQDN. The Microsoft Learn Plan for Hyper-V Replica training module calls for the FQDN rather than an IP address.
Tip: In a workgroup lab without a DNS server, you can add both hosts to
C:\Windows\System32\drivers\etc\hostson each machine. Use the fullhv01.lab.localstyle names, and make sure the DNS suffix matches the certificate subject you’ll issue in Step 2.
Step 2: Choose Kerberos or Certificate-Based Authentication
Make this decision before you touch the settings. It sets the port, the firewall rule, and whether you need certificates.
| Kerberos (HTTP) | Certificate-based (HTTPS) | |
|---|---|---|
| Port | TCP 80 | TCP 443 |
| Firewall rule | Hyper-V Replica HTTP Listener (TCP-In) | Hyper-V Replica HTTPS Listener (TCP-In) |
| Identity requirement | Both hosts in the same or trusted AD domains | Works for workgroup hosts and untrusted domains |
| Replication traffic encrypted | No | Yes |
| Setup effort | Low | Higher, because you manage certificates |
The firewall rule names above are Microsoft’s predefined, English-language display names for the Replica listener rules. The exact string can vary by locale or build, so confirm it on your hosts with Get-NetFirewallRule -DisplayName "*Replica*" before you enable anything in Step 4.
The trade-off: Kerberos takes about two minutes to set up, but the replication payload travels unencrypted. That’s fine on an isolated lab VLAN. Across a shared or WAN link, it’s questionable. Certificates take more work, but they’re the only choice for workgroup hosts.
If you choose certificates, each host needs a certificate with all of the following (per the Replicate a virtual machine documentation):
- Client Authentication and Server Authentication enhanced key usages (EKUs)
- An associated private key
- A valid, trusted chain to a root CA that the other host trusts
- A non-expired status
- A subject name (CN) or Subject Alternative Name (SAN) matching the host’s FQDN
Step 3: Enable the Replica Host as a Replica Server
Do this on hv02 (the replica host). Nothing replicates to a host until you enable this setting.
GUI path:
- Open Hyper-V Manager and select hv02 in the left pane.
- In the Actions pane, click Hyper-V Settings.
- Under Server, select Replication Configuration.
- Check Enable this computer as a Replica server.
- Under Authentication and ports, check Use Kerberos (HTTP) or Use certificate-based Authentication (HTTPS). If you pick HTTPS, click Select Certificate and choose the cert from Step 2.
- Under Authorization and storage, choose one:
- Allow replication from any authenticated server and set a default storage location, or
- Allow replication from the specified servers, then click Add and enter
hv01.lab.localwith a storage location and a trust group.
- Click OK.
PowerShell equivalent (Kerberos):
# Run on hv02 (replica host) in an elevated PowerShell session
New-Item -Path "D:\Hyper-V Replica" -ItemType Directory -Force
Set-VMReplicationServer `
-ReplicationEnabled $true `
-AllowedAuthenticationType Kerberos `
-ReplicationAllowedFromAnyServer $true `
-DefaultStorageLocation "D:\Hyper-V Replica"
# -AllowedAuthenticationType: Kerberos, Certificate, or CertificateAndKerberos
# -ReplicationAllowedFromAnyServer $true = accept any authenticated primary
Check the result:
Get-VMReplicationServer
Expected output (layout may vary slightly):
RepEnabled AuthType KerbAuthPort CertAuthPort AllowAnyServer
---------- -------- ------------ ------------ --------------
True Kerb 80 443 True
Tip: “Allow replication from any authenticated server” works for a two-host lab. In anything shared, restrict it to the specified primary servers so a misconfigured host can’t start filling your replica volume.
If you chose certificates, use the certificate form instead. Find the thumbprint of the Step 2 certificate in the computer’s Personal store, then pass it with -CertificateThumbprint:
# Run on hv02 - certificate / HTTPS (TCP 443) variant
Get-ChildItem Cert:\LocalMachine\My | Select-Object Subject, Thumbprint, NotAfter
Set-VMReplicationServer `
-ReplicationEnabled $true `
-AllowedAuthenticationType Certificate `
-CertificateThumbprint "<hv02 certificate thumbprint>" `
-CertificateAuthenticationPort 443 `
-ReplicationAllowedFromAnyServer $true `
-DefaultStorageLocation "D:\Hyper-V Replica"
The Set-VMReplicationServer reference documents these parameters.
Step 4: Enable the Replica Listener Firewall Rule
Enabling the Replica server doesn’t open the firewall for you. Installing the Hyper-V role creates predefined inbound firewall rules for the Replica listener (HTTP and HTTPS), and they’re disabled by default.
Confirm the exact display name on your build first, since the string can vary by locale or language pack:
Get-NetFirewallRule -DisplayName "*Replica*" | Select-Object DisplayName, Enabled
On a non-English build where the display names differ, find the rule by its port instead, then enable it by the Name value shown, which doesn’t change with the display language:
# Inbound rules listening on TCP 443 (use 80 for Kerberos/HTTP)
Get-NetFirewallRule -Direction Inbound |
Where-Object { ($_ | Get-NetFirewallPortFilter).LocalPort -eq 443 } |
Select-Object Name, DisplayName, Enabled
Enable-NetFirewallRule -Name "<Name from the output above>"
On hv02, enable the rule that matches your authentication choice. Any host that will receive replication needs it, so if you plan to fail back or reverse replication later, enable the same rule on hv01 too (see the warning below):
# Kerberos / HTTP (TCP 80)
Enable-NetFirewallRule -DisplayName "Hyper-V Replica HTTP Listener (TCP-In)"
# Certificate / HTTPS (TCP 443) - run this instead if you chose certificates
Enable-NetFirewallRule -DisplayName "Hyper-V Replica HTTPS Listener (TCP-In)"
Check that the rule is on:
Get-NetFirewallRule -DisplayName "Hyper-V Replica HTTP*" |
Select-Object DisplayName, Enabled, Direction
Expected output:
DisplayName Enabled Direction
----------- ------- ---------
Hyper-V Replica HTTP Listener (TCP-In) True Inbound
Hyper-V Replica HTTPS Listener (TCP-In) False Inbound
In the GUI, the same rules are under Windows Defender Firewall with Advanced Security > Inbound Rules. Right-click the rule and choose Enable Rule.
Warning: If you plan to use reverse replication after a planned failover (Step 10), the original primary (hv01) becomes the replica. Repeat Steps 3 and 4 on hv01 now so failback works when you need it. If you skip this, reverse replication fails because hv01 won’t accept incoming replication.
Also check any network firewall between the hosts, such as a router ACL or a hardware firewall. It must allow TCP 80 or 443 from hv01 to hv02. Allow the reverse direction too if you want failback.
Step 5: Verify the Connection with Test-VMReplicationConnection
Before you run the wizard, test from hv01 that it can reach hv02’s listener with your chosen auth method. It’s a quick check for common DNS, firewall, and authentication problems, though it won’t pinpoint every root cause.
# Run on hv01 (primary host)
Test-VMReplicationConnection `
-ReplicaServerName "hv02.lab.local" `
-ReplicaServerPort 80 `
-AuthenticationType Kerberos
# -ReplicaServerName must be the FQDN that DNS resolves
# -ReplicaServerPort 80 for Kerberos/HTTP, 443 for certificate/HTTPS
Expected result: the cmdlet reports that the connection to the Replica server was successful. If it fails, the error usually names the cause. Common ones are an unreachable server, an auth mismatch, or a server that isn’t enabled as a Replica server yet. See the troubleshooting section below.
For certificate-based auth, test port 443 and pass the thumbprint of hv01’s own certificate (the one the primary presents):
# Run on hv01 - certificate / HTTPS variant
Test-VMReplicationConnection `
-ReplicaServerName "hv02.lab.local" `
-ReplicaServerPort 443 `
-AuthenticationType Certificate `
-CertificateThumbprint "<hv01 certificate thumbprint>"
In the Enable Replication wizard (Step 6), pick Use certificate-based authentication (HTTPS) and select the same hv01 certificate.
Step 6: Enable Replication on the VM from the Primary Host
Replication is set per VM, and you always enable it from the primary host. The VM can stay running.
GUI path (on hv01):
- In Hyper-V Manager, right-click LAB-VM01 > Enable Replication.
- Specify Replica Server: enter
hv02.lab.local. Use the FQDN, not the IP address. - Specify Connection Parameters: confirm the port and authentication type match Step 3. The wizard reads these from the replica server. You can also turn on compression of data sent over the network.
- Choose Replication VHDs: clear any disks you don’t need to replicate, such as a dedicated pagefile or scratch VHDX. If you exclude a disk, the replica VM won’t have it after failover.
- Configure Replication Frequency: choose 30 seconds, 5 minutes, or 15 minutes.
- Configure Additional Recovery Points: keep only the latest recovery point, or keep additional recovery points (the wizard asks how many hours of history to retain, and Hyper-V keeps roughly one point per hour within that window). You can also enable VSS (Volume Shadow Copy Service) snapshots for application-consistent points.
- Choose Initial Replication Method: send over the network now, schedule it for later, use external media, or use an existing VM on the replica server as the initial copy.
- Review the Summary page, then click Finish.
PowerShell equivalent:
# Run on hv01 - configure the replication relationship
Enable-VMReplication `
-VMName "LAB-VM01" `
-ReplicaServerName "hv02.lab.local" `
-ReplicaServerPort 80 `
-AuthenticationType Kerberos `
-ReplicationFrequencySec 300
# -ReplicationFrequencySec: 30, 300 (5 min), or 900 (15 min)
# Kick off the initial copy over the network (the PowerShell equivalent of
# the wizard's "Send initial copy over the network" + "Start replication immediately")
Start-VMInitialReplication -VMName "LAB-VM01"
This guide uses the network method. If you chose a scheduled start, external media, or an existing VM on the replica server in the wizard, the PowerShell path differs: check Get-Help Start-VMInitialReplication -Full (and Import-VMInitialReplication for the replica side of an external-media copy) before you script it.
The Enable-VMReplication reference for Windows Server 2025 lists the full parameter set. That includes the recovery-history and VSS parameters, compression, and certificate-thumbprint options. Check the parameter names there before you script the extra recovery points.
Expected result: in Hyper-V Manager on hv01, the VM’s Replication tab moves into initial replication. A matching LAB-VM01 appears on hv02 in an Off state. That’s normal. The replica VM stays off until a failover.
Tip: Initial replication copies the whole VHDX. A 60 GB disk on gigabit Ethernet takes a while, and it uses the link heavily while it runs. Schedule it outside business hours, or use the “Start replication on” option in the wizard.
Step 7: Monitor Replication Health with PowerShell
Once initial replication finishes, check that the delta cycles are actually landing. You can run these on either host, but each host reports from its own role: hv01 shows the Primary side and hv02 the Replica side, so some state, mode and statistics fields differ between the two. The examples below are from the primary (hv01):
# Replication state and health summary
Get-VMReplication -VMName "LAB-VM01"
# Replication statistics: health, last replication time, sizes, latency
Measure-VMReplication -VMName "LAB-VM01"
Get-VMReplication shows the relationship: state, health, mode (Primary or Replica), primary and replica servers, and frequency. Measure-VMReplication adds runtime stats like the last replication time, pending replication size, and average latency.
Exact column headers depend on the module version. Run Get-Command Measure-VMReplication first to confirm the cmdlet exists in your Hyper-V module.
Example of the output shape (your values will differ):
Name State Health LReplTime PReplSize(M) AvgLatency AvgReplSize(M) Relationship
---- ----- ------ --------- ------------ ---------- -------------- ------------
LAB-VM01 Replicating Normal 10/28/2026 2:05:11 PM 0.00 00:00:01 1.20 Simple
What to look for:
- State =
Replicating. If it shows something else after initial replication, investigate. - Health =
Normal.Warningusually means missed cycles.Criticalmeans replication has stopped. - LReplTime (last replication time) should stay within one frequency interval of the current time.
In the GUI, right-click the VM > Replication > View Replication Health. You’ll see the same data, with options to reset statistics or save a report.
For a quick view across every replicated VM on a host:
Get-VMReplication | Format-Table Name, State, Health, Mode, ReplicaServer -AutoSize
Step 8: Run a Test Failover on the Replica Host
This step answers the main question: how do you prove the replica boots without risking production? Microsoft’s failover documentation says a test failover creates a temporary copy of the replica VM from a recovery point you choose. Ongoing replication from hv01 to hv02 keeps running. You can only run one test failover per VM at a time.
Before you start the test VM, decide where it will land on the network. This is a per-adapter test failover setting on the replica VM, not the adapter’s normal switch connection, so leave the replica’s regular switch alone.
Open Hyper-V Manager on hv02, open Settings on the replica LAB-VM01 (not the test VM, which doesn’t exist yet), and expand the Network Adapter node in the left pane to find its test-failover option. Microsoft documents this test-failover switch setting for replication-enabled VMs, so enable replication first. If you can’t find it in the GUI, use the PowerShell command below. Point it at an isolated virtual switch that has no path to your production network, then click OK.
The same setting from PowerShell, on hv02 (it applies only to replication-enabled VMs):
Set-VMNetworkAdapter -VMName "LAB-VM01" -TestReplicaSwitchName "Isolated-Test"
After the test VM is created, open its own Settings and confirm its network adapter is on the isolated switch before you start it. That check is what prevents a duplicate IP address or hostname on your production network.
GUI path (on hv02):
- In Hyper-V Manager on hv02, right-click the replica LAB-VM01 > Replication > Test Failover.
- Choose a recovery point. Pick the latest one unless you’re rehearsing a rollback.
- Click Test Failover.
Hyper-V creates a new VM named LAB-VM01 – Test. Start it, connect to the console, and check that the OS boots and your app starts.
PowerShell equivalent:
# Run on hv02 - create the test VM from the latest recovery point
Start-VMFailover -VMName "LAB-VM01" -AsTest -Confirm:$false
# -AsTest creates the "- Test" copy; production replication is untouched
# Start and inspect the test VM
Start-VM -Name "LAB-VM01 - Test"
Get-VM -Name "LAB-VM01*" | Format-Table Name, State, Uptime -AutoSize
Expected output:
Name State Uptime
---- ----- ------
LAB-VM01 Off 00:00:00
LAB-VM01 - Test Running 00:00:42
Warning: Keep the test VM off the production network. Microsoft’s failover documentation notes that a test VM isn’t connected to a network by default; the risk comes from mapping its test-failover setting to a production switch, or connecting it by hand later without checking. It’s a clone with the same hostname, and often the same static IP, as the live VM on hv01. On a production network it can cause duplicate-name and IP conflicts, and domain-joined guests can hit machine account problems.
Before you trust the test, confirm the switch assignment took effect. On hv02, run
Get-VMNetworkAdapter -VMName "LAB-VM01 - Test" | Select-Object VMName, SwitchNameand check thatSwitchNamematches the isolated switch you chose, not your production vSwitch. Then confirm from inside the test VM that it can’t reach anything on the production subnet, such as hv01 or other production hosts, before you treat the test as safe.
Step 9: Clean Up the Test Failover
When validation is done, remove the test VM. That stops it using storage and frees the “one test per VM” slot.
GUI: on hv02, right-click the replica LAB-VM01 (not the test VM) > Replication > Stop Test Failover.
PowerShell:
# Run on hv02 - deletes the "LAB-VM01 - Test" VM and its differencing disk
Stop-VMFailover -VMName "LAB-VM01"
Warning: Stopping the test failover deletes the test VM. Anything you changed inside it is gone. That’s the intended behavior, so don’t use the test VM for real work.
Confirm it’s gone and replication is still healthy:
Get-VM -Name "LAB-VM01*"
Measure-VMReplication -VMName "LAB-VM01"
Expected result: only LAB-VM01 (Off) remains on hv02, and replication health is still Normal.
Step 10: Perform a Planned Failover with Reverse Replication
Use planned failover for maintenance, such as patching or swapping hardware on hv01. It requires the primary VM to be shut down first. That lets Hyper-V send the last changes before the switch, so you get zero data loss. You’ll still have downtime: the shutdown, the final sync, and the boot on hv02.
Before you start, confirm hv01 is enabled as a Replica server with its firewall rule open (see the warning in Step 4).
GUI path:
- On hv01, shut down LAB-VM01.
- Right-click it > Replication > Planned Failover.
- Leave Reverse the replication direction after failover checked, along with Start the Replica virtual machine after failover if you want it to boot right away.
- Click Fail Over. Hyper-V checks prerequisites, sends the remaining data, fails over to hv02, and reverses replication so hv02 becomes the primary.
PowerShell equivalent:
# On hv01: shut down the VM and prepare for planned failover
Stop-VM -Name "LAB-VM01"
Start-VMFailover -VMName "LAB-VM01" -Prepare -Confirm:$false
# -Prepare sends the final changes from the primary
Run each block in a console on the host named in its comment. From a management workstation, add -ComputerName hv01 or -ComputerName hv02 to every command so nothing runs against the wrong host. Wait until the hv01 -Prepare step finishes without errors before you start the hv02 block.
The commands follow Microsoft’s documented planned-failover sequence (Start-VMFailover, Example 4): -Prepare on the primary, then on the replica Start-VMFailover, Set-VMReplication -Reverse (which needs hv01 already enabled as a Replica server) and Start-VM. Run them in that order and check each step succeeds before the next; if -Reverse fails, fix hv01’s Replica configuration before you start the VM.
# On hv02: fail over, reverse replication toward hv01, then start the VM
Start-VMFailover -VMName "LAB-VM01" -Confirm:$false
Set-VMReplication -VMName "LAB-VM01" -Reverse
Start-VM -Name "LAB-VM01"
Expected result: LAB-VM01 runs on hv02. Get-VMReplication on hv02 shows it as Primary, replicating to hv01.lab.local.
Failing back to hv01 later uses the same process in the other direction. Shut down the VM on hv02, run a planned failover, and reverse replication again. So yes, you can go back to the original host, as long as both hosts accept replication.
Step 11: Understand Unplanned Failover (Don’t Rehearse It on Production)
Unplanned failover is for when hv01 is actually down: a dead motherboard, a failed storage controller, or a site outage. You start it on the replica host. There’s no final sync because the primary is gone.
You lose any changes made since the last recovery point that reached hv02. The replication frequency is a target, not a guarantee: with a 5-minute frequency and healthy replication, the loss is often a few minutes of writes, but it can be much more if replication was delayed, behind, or unhealthy. Check Measure-VMReplication for the actual last replication time before you decide.
GUI (on hv02): right-click the replica LAB-VM01 > Replication > Failover, choose a recovery point, and click Fail Over. If you kept extra recovery points, you can pick an earlier one. That helps if the latest point is corrupted.
PowerShell (on hv02):
# Fail over to the latest recovery point and bring the VM up
Start-VMFailover -VMName "LAB-VM01" -Confirm:$false
Start-VM -Name "LAB-VM01"
# Once you're satisfied with the chosen recovery point, commit it
Complete-VMFailover -VMName "LAB-VM01" -Confirm:$false
# Commits the failover and discards other recovery points - no going back to a different point
Warning: Don’t bring hv01’s copy of LAB-VM01 back online while the failed-over VM is running on hv02. You’d have two live copies with the same identity. When hv01 is healthy again, set up reverse replication from hv02 to hv01. Then use a planned failover (Step 10) to move the workload home.
Test vs. Planned vs. Unplanned Failover
| Test Failover | Planned Failover | Unplanned Failover | |
|---|---|---|---|
| Started from | Replica host | Primary, then replica | Replica host |
| Primary VM must be off | No | Yes | Primary is assumed down |
| Data loss | None (production untouched) | None | Up to the last recovery point |
| Affects ongoing replication | No | Yes, direction reverses | Yes, replication from primary stops |
| Creates | Disposable “- Test” VM | Running VM on replica | Running VM on replica |
| Cleanup | Stop Test Failover | Reverse replication, fail back later | Complete failover, then reverse replication when primary returns |
| Use it for | Rehearsals and DR validation | Maintenance windows | Real outages |
Configuration Reference
| Setting | Where | Options | Recommendation |
|---|---|---|---|
| Authentication | Replica server settings | Kerberos (HTTP, 80) / Certificate (HTTPS, 443) | Kerberos on isolated domain labs; certificates for workgroups or untrusted links |
| Authorization | Replica server settings | Any authenticated server / specified servers | Specified servers outside a throwaway lab |
| Storage location | Replica server settings | Any local path | Dedicated volume, not the OS drive |
| Replication frequency | Per VM | 30 seconds, 5 minutes, 15 minutes | 5 minutes is a sensible middle ground; 30 seconds needs reliable bandwidth |
| Additional recovery points | Per VM | Latest only / extra hourly points, optional VSS | Keep a few points for critical VMs. Microsoft’s overview describes recovery history up to 24 hours. |
| Compression | Per VM | On / Off | On, unless CPU on the hosts is tight |
| Replicated VHDs | Per VM | Include or exclude each disk | Exclude scratch or pagefile disks to cut traffic |
To change settings on an existing relationship, use Set-VMReplication on the primary. Run Get-Help Set-VMReplication -Full to confirm parameter names for your build.
Tips and Troubleshooting
Replica Server Can’t Be Found in the Enable Replication Wizard
Why it happens: the wizard expects the replica host’s FQDN, and DNS isn’t resolving it. Or the server isn’t enabled as a Replica server yet.
Fix:
- Enter the FQDN (
hv02.lab.local), not an IP or short name. - Run
Resolve-DnsName hv02.lab.localfrom hv01. - Confirm
Get-VMReplicationServeron hv02 showsRepEnabledasTrue. - Re-run
Test-VMReplicationConnectionfrom Step 5.
Kerberos Authentication Fails
Why it happens: Kerberos needs both hosts in the same domain or in trusted domains, with TCP 80 reachable.
Fix:
- Confirm both sides are set to Use Kerberos (HTTP).
- Check the domain trust and that both hosts’ computer accounts are healthy.
- Enable the HTTP listener firewall rule on the replica host (verify its exact name with
Get-NetFirewallRule -DisplayName "*Replica*") and allow TCP 80 through any network firewall in the path. - If the hosts are in a workgroup, Kerberos won’t work. Switch to certificates.
Certificate-Based (HTTPS) Authentication Fails
Why it happens: the certificate is missing, expired, lacks an EKU, has no private key, doesn’t chain to a trusted root, or the subject doesn’t match the FQDN.
Fix:
- On each host, open
certlm.msc> Personal > Certificates and check the certificate: Client and Server Authentication EKUs, a private key, not expired, and a CN or SAN matching the host’s FQDN. - Import the issuing root CA into Trusted Root Certification Authorities on both hosts.
- Enable the HTTPS listener firewall rule (verify its exact name with
Get-NetFirewallRule -DisplayName "*Replica*") and allow TCP 443.
Replication Health Shows Warning or Critical
Why it happens: the replica volume is low on space, bandwidth can’t keep up with the chosen frequency, or replication traffic competes with production traffic.
Fix:
- Check free space on hv02:
Get-Volume -DriveLetter D. - Compare
Measure-VMReplicationpending size and latency against your frequency. If 30-second cycles keep falling behind, move to 5 minutes. - Put replication on a dedicated NIC and link. In a homelab, a second Cat6 cable to a spare port is a cheap fix. Or apply QoS to the replication traffic.
- If replication stopped, right-click the VM > Replication > Resume Replication. Or run
Resume-VMReplication -VMName "LAB-VM01"on the primary.
Test Failover VM Conflicts with Production
Why it happens: the test VM was attached to the production switch, so two machines now share a hostname and IP. This usually means the Test Failover network setting on the replica VM was left at its default, or was never set at all.
Fix: shut down the test VM immediately and disconnect its network adapter, then run Stop Test Failover. For future tests, set the replica VM’s Settings > Network Adapter > Advanced Features > Test Failover option to an isolated virtual switch, and confirm it took effect with Get-VMNetworkAdapter -VMName "LAB-VM01 - Test" | Select-Object SwitchName before you rely on the next test.
Test Failover Option Is Missing or Greyed Out
Why it happens: initial replication hasn’t finished, you right-clicked on the wrong host, or a test failover is already running for that VM.
Fix:
- Confirm initial replication completed:
Get-VMReplication -VMName "LAB-VM01". - Make sure you’re working on the replica host (hv02), not the primary.
- Look for an existing
LAB-VM01 - TestVM and stop that test failover first. Only one is allowed per VM.
Quick Tips
- Script a weekly test failover. Start the test VM, confirm it reaches a running state, then stop the test failover. A replica you’ve never booted is an untested DR plan.
- Watch the clock skew. Kerberos is sensitive to time drift between hosts, so keep both synced to the same time source.
- Size the replica volume for recovery history. Each extra recovery point uses space on hv02, on top of the full VHDX.
Wrapping Up
You now have two standalone Windows Server 2025 hosts running Hyper-V Replica. Health checks run in PowerShell, and you can repeat the test failover without touching production. Planned failover covers maintenance windows. Unplanned failover is there for the bad day.
My take: for small shops and homelabs, Replica is one of the best-value features in the Hyper-V role. You get real DR practice with no SAN and no cluster. The catch is that it copies ransomware and mistakes as faithfully as good data, so pair it with proper backups.
| Step | Action | Applies To |
|---|---|---|
| 1 | Verify role, FQDN, DNS | Both hosts |
| 2 | Choose Kerberos or certificates | Planning |
| 3 | Enable Replica server | Replica host (and primary for failback) |
| 4 | Enable listener firewall rule | Replica host (and primary for failback) |
| 5 | Test-VMReplicationConnection | Primary host |
| 6 | Enable replication on the VM | Primary host |
| 7 | Get-VMReplication / Measure-VMReplication | Either host (output reflects that host’s role) |
| 8–9 | Test failover, then stop it | Replica host |
| 10 | Planned failover and reverse | Primary, then replica |
| 11 | Unplanned failover | Replica host |
Resources
- Hyper-V Replica overview
- Enable Hyper-V Replica on a single host
- Replicate a virtual machine with Hyper-V Replica
- Fail over a replicated virtual machine with Hyper-V Replica
- Set up Hyper-V Replica
- Enable-VMReplication cmdlet reference (Windows Server 2025)
- Plan for Hyper-V Replica (Microsoft Learn training)
- Windows Server release information
Sources retrieved October 28, 2026.