Pcornel
Virtualization · KVM / QEMU

Live Migration

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

Back to the Topic

Answer

Migration is a phased protocol: compatibility/precheck, destination preparation, iterative or alternative RAM/state transfer, convergence/cutover, destination resume and post-migration workload verification.

Remember

  • Live migration ≠ zero downtime.
  • Migration progress ≠ convergence.
  • QEMU migration complete ≠ application continuity.
  • CPU model, machine type, device state, storage access and passthrough capabilities constrain compatibility.

First checks

  • virsh migrate --live --persistent --undefinesource <vm> qemu+ssh://<dst>/system — live migrate
  • virsh domjobinfo <vm> — progress
  • virsh migrate-setmaxdowntime <vm> 500 — allow longer pause

Verify in this order

precopy → dirty iterations → pause → resume on target

Where it usually breaks

First mismatch in management intent → host/cluster capability → hypervisor runtime/task → virtual resource/device → guest state → workload-visible read-back; preserve identity/native error/pre-state before mutation.

KVM / QEMU → Live Migration reference map

BoundaryWhat to verifyEvidence limit
Definition/configExpected KVM / QEMU → Live Migration definition or configuration is presentConfigured state does not prove runtime behavior
RuntimeRelevant KVM/QEMU/libvirt object or process is active without matching errorsRuntime state does not prove dependencies or guest outcome
DependencyHost CPU/memory, storage, network or device backend required by this path is healthyLocal success does not prove the next boundary
AcceptanceOriginal guest/application test succeeds after the change or observationRequired for end-to-end closure

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

Confirmation

Confirm action

Continue?