VM Migration
Cheat sheet · https://pcornel.dk/topic.php?topic=3576
Answer
VM Migration is the controlled relocation of a VM across hosts, storage locations or both. The exact transfer can be offline or online, but every migration depends on compatible source/destination capabilities, reachable storage and networks, transferable VM state, a controlled cutover and post-migration workload verification.
Remember
- Migration success in the management plane does not by itself prove guest, storage, network or application continuity.
- Compute state, memory state, device state, storage state and network identity are separate migration boundaries.
- Live migration minimizes downtime; it does not mean zero interruption or zero application impact.
- A destination host being reachable does not prove CPU, storage, network or policy compatibility.
First checks
qm migrate <vmid> <node> --online— Proxmox live migrationvirsh migrate --live <vm> qemu+ssh://<dst>/system— libvirtMove-VM <vm> -DestinationHost <host>— Hyper-V
Verify in this order
source host → memory/disk copy → cut-over → target host
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 reference map
| Boundary | Meaning | Evidence limit |
|---|---|---|
| Scope | Compute, storage or both | Define what actually moves |
| Prerequisites | CPU/storage/network/platform compatibility | Reachability alone is insufficient |
| Cutover | Ownership/execution transition | May introduce interruption |
| Verification | Guest and workload retest | Management success is not enough |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3576