Live Migration
Cheat sheet · https://pcornel.dk/topic.php?topic=3578
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
| Boundary | Meaning | Evidence limit |
|---|---|---|
| Pre-copy | Transfer while VM runs | Dirty pages may retransmit |
| Cutover | Final state sync | Finite pause remains |
| Destination | Resume execution | Needs compatible resources |
| Continuity | Network/storage/app | Must 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