Use this topic when the symptom or planned change has been narrowed to KVM / QEMU → Live Migration. Establish effective host/runtime state before changing configuration.
Live Migration · KVM / QEMU
Migration is a phased protocol: compatibility/precheck, destination preparation, iterative or alternative RAM/state transfer, convergence/cutover, destination resume and post-migration workload verification.
1. Live migration with libvirt needs shared storage or --copy-storage-all.
2. Same CPU model compatibility.
3. SSH or TLS transport.
4. --persistent --undefinesource to move the definition.
5. Tune downtime/bandwidth for busy VMs.
precopy → dirty iterations → pause → resume on target
Context & applicabilityCommon mistakes · platform/version boundaries
A successful migration state shows QEMU transferred the required VM state according to the protocol, but it does not show every external session or application remained healthy.
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification path Verify boundary
Compatibility → destination preparation → RAM/device state transfer → convergence/cutover → destination resume → network/storage continuity → workload verification
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- 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.
virsh migrate --live --persistent --undefinesource <vm> qemu+ssh://<dst>/system— live migratevirsh domjobinfo <vm>— progressvirsh migrate-setmaxdowntime <vm> 500— allow longer pause
ReferenceWhy it matters1 section · depth on demand
Internals and state
Local intent: KVM/QEMU live migration transfers a running VM’s execution state to a destination QEMU instance while attempting to minimize guest downtime; storage and device state may require separate handling.
ReferenceImportant terms & boundaries2 sections · depth on demand
What this shows and what it does not
A successful migration state shows QEMU transferred the required VM state according to the protocol, but it does not show every external session or application remained healthy.
In depth
KVM live migration with libvirt:
virsh migrate --live --persistent --undefinesource --verbose vm1 qemu+ssh://kvm02/system
virsh migrate --live --copy-storage-all vm1 qemu+ssh://kvm02/system # without shared storage
virsh migrate-setmaxdowntime vm1 500
virsh domjobinfo vm1
Use --tls or a dedicated network for migration traffic, --auto-converge or --postcopy for VMs with high memory dirty rates, and a CPU model (host-model/named) available on both hosts.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in KVM / QEMU → Live Migration. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.qemu.org/docs/master/ · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
KVM / QEMU → Live Migration reference map
Fast operational boundaries and evidence limits for KVM / QEMU → Live Migration.
| Boundary | What to verify | Evidence limit |
|---|---|---|
| Definition/config | Expected KVM / QEMU → Live Migration definition or configuration is present | Configured state does not prove runtime behavior |
| Runtime | Relevant KVM/QEMU/libvirt object or process is active without matching errors | Runtime state does not prove dependencies or guest outcome |
| Dependency | Host CPU/memory, storage, network or device backend required by this path is healthy | Local success does not prove the next boundary |
| Acceptance | Original guest/application test succeeds after the change or observation | Required for end-to-end closure |