Pcornel
Virtualization · VM Migration

Live Migration

Cheat sheet · https://pcornel.dk/topic.php?topic=3578

Back to the Topic

Answer

Live Migration moves a running VM execution context to another compatible host. Implementations commonly transfer memory while the VM continues running, track pages dirtied during transfer, then pause briefly to synchronize remaining state and switch execution to the destination; exact algorithms and device handling are platform-specific.

Remember

  • Live does not mean zero pause; cutover still has a finite interruption window.
  • High dirty-page rate can prevent efficient convergence or extend migration duration.
  • CPU feature exposure and device state must be acceptable to the destination before execution can resume there.
  • Existing client sessions also depend on network identity, forwarding convergence and application tolerance.

First checks

  • qm migrate <vmid> <node> --online — live (Proxmox)
  • virsh migrate --live --verbose <vm> qemu+ssh://<dst>/system — live (libvirt)
  • Get-VMMigrationNetwork; Move-VM <vm> <host> — Hyper-V live

Verify in this order

pre-copy memory → iterate dirty pages → pause → cut-over

Where it usually breaks

First mismatch in cluster membership/quorum → node capability/health → placement policy → resource ownership → migration/failover task → guest/workload continuity; preserve identity/native error/pre-state before mutation.

VM Migration → Live Migration reference map

BoundaryMeaningEvidence limit
Pre-copyTransfer while VM runsDirty pages may retransmit
CutoverFinal state syncFinite pause remains
DestinationResume executionNeeds compatible resources
ContinuityNetwork/storage/appMust be verified separately

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3578

Confirmation

Confirm action

Continue?