Pcornel
Browse topics
Options
Recent
Favorites
Virtualization · Technical reference

Live Migration · KVM / QEMU

Direct 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.

When to use this

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.

First 30 seconds

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.

Operational verification

precopy → dirty iterations → pause → resume on target

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Common traps

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.

Platform / version applicability
kvm-qemu
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

Platformkvm-qemu
Scope / prerequisiteUse this topic when the symptom or planned change has been narrowed to KVM / QEMU → Live Migration. Establish effective…
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

1 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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 references

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.

observation · 1
Key points
  • 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.
Key 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
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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor dockvm-qemu current

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%
Terminology layer

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.

Aliases that resolve here
kvm live migrationqemu migrationlibvirt migratevm live migrate kvm
Embedded reference data

Quick lookup tables

KVM / QEMU → Live Migration reference map

Fast operational boundaries and evidence limits for KVM / QEMU → Live Migration.

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
Confirmation

Confirm action

Continue?