Implementing Hyper-V Live Migration in Windows Server 2022
Learn how to implement Hyper-V Live Migration in Windows Server 2022 to move running VMs between hosts with zero downtime, including CPU compatibility and storage requirements.
15 Aug 2025, 16:36 UTC

The Challenge of Zero-Downtime VM Relocation
Maintaining application availability during server maintenance or load balancing requires moving running virtual machines (VMs) between physical hosts without disconnecting users or restarting services. In Windows Server 2022, Live Migration solves this by transferring the VM's memory state and execution context from a source host to a destination host while the VM remains active.
The primary takeaway is that Live Migration is not a simple "copy-paste" operation; it requires strict alignment of CPU architectures, network configurations, and storage accessibility to prevent the VM from crashing during the hand-off.
Infrastructure Prerequisites
Before attempting a migration, verify these four technical requirements to avoid mid-process failures:
- Domain Membership: Both hosts must belong to the same Active Directory domain or have a configured mutual trust relationship to handle Kerberos authentication for the migration traffic.
- Processor Compatibility: The source and destination hosts must use the same CPU family (e.g., Intel to Intel). If the hosts have different CPU generations, you must enable Processor Compatibility Mode in the VM settings before starting the migration.
- Shared Storage: The VM's virtual hard disks (VHDX) must reside on storage accessible to both hosts. This is typically achieved via Cluster Shared Volumes (CSV), SMB 3.0 shares, or a Fibre Channel SAN.
- Network Bandwidth: A dedicated migration network is recommended. While 1 Gbps is the minimum, higher bandwidth reduces the time the VM spends in the "pre-copy" phase.
Executing the Live Migration
This procedure assumes you are using Hyper-V Manager on the source host with administrative privileges.
- Open Hyper-V Manager and locate the running VM you wish to move.
- Right-click the VM and select Move.
- In the wizard, select Move the virtual machine. (Note: If the VM is on local storage, you must first select "Move the virtual machine's storage" to move the disks to shared storage).
- Enter the DNS name of the destination Hyper-V host and click Next.
- Select the migration type. Choose Live Migration to ensure zero downtime.
- Review the summary and click Finish.
PowerShell Alternative
For automation or remote management, run the following command on the source host using an elevated PowerShell prompt:
Move-VM -Name "VM_Name_Placeholder" -DestinationHost "Destination_Host_DNS"
Risk: Running this command without first verifying shared storage will cause the migration to fail immediately if the VM is configured with local paths.
Verification and Diagnostics
Once the wizard completes, you must verify that the VM is not only "Running" but functionally healthy on the new host.
1. Host Confirmation
Run this command on the destination host to confirm the VM is registered and active:
Get-VM -Name "VM_Name_Placeholder" | Select-Object Name, State, ComputerName
2. Connectivity Check
Perform a continuous ping from a client machine to the VM's internal IP address during the migration. You should observe no more than one or two dropped packets during the final memory switch-over.
3. Integration Health
Check the Hyper-V-VMMS event logs in Event Viewer. Look for successful migration events to ensure the heartbeat and integration services transitioned without errors.
Recovery and Rollback
If the migration hangs or fails (often due to network timeouts or CPU mismatches), the operation can be cancelled via the Hyper-V Manager progress bar. Because Live Migration uses a "pre-copy" mechanism, the VM continues to run on the source host until the final hand-off.
Rollback Steps:
- Cancel the migration in the console.
- Verify the VM state is still "Running" on the source host.
- Check the destination host for any orphaned VM configuration files and remove them if necessary.
- If Live Migration repeatedly fails, fallback to Quick Migration (which involves a brief pause) or a full Export/Import cycle.
0 replies
A thoughtful contribution can make all the difference. Be the first to share one.