virtualmachinemigration

Fact sheet · updated

HOW LIVE MIGRATION WORKS

Move it
while it runs.

A virtual machine can change servers mid-sentence.

Compare methods
Two rows of server racks in a quiet data centre aisle, softly lit, with network cables running between them
AI-generated image, not a photograph of a real person or place.

COPYthen switch

Live migration copies a running machine's memory to another host while it keeps working, then pauses it just long enough to send the last changes. Here is how the main methods work and what they trade off.

At a glance

60 ms

Downtime moving an online game server

The 2005 paper reports a virtual machine running a game server migrating with 60 ms of downtime, and one running a web benchmark with 210 ms of unavailability.

LIVE PRE-COPY · NSDI 2005

32 s

Downtime for 512 MB at 128 Mbit/s

Naive stop-and-copy of a 512 MB virtual machine would need 32, 16 and 8 seconds of downtime at 128, 256 and 512 Mbit/s respectively, the paper calculates.

STOP-AND-COPY · NSDI 2005

TWO NUMBERS WORTH KNOWING

A pause you
might not notice.

One figure from the live migration paper,
one for the naive approach it replaced.

The paper found that even in its worst case, a single pre-copy round cut downtime by a factor of four compared with plain stop-and-copy.

A QUICK METHOD CHECK

Which way
is it moving?

Pick a migration method to see how it works. The bar shows how disruptive it tends to be for the running machine.

Based on Clark et al. (NSDI 2005) and the QEMU migration documentation. Real downtime depends on memory size, workload and network.

Method check

Choose a method
Plain stop-and-copyPause for the whole copy

Stop the machine, copy all its memory, start it on the new host. Simple, but downtime grows with the amount of memory.

Live pre-copyMilliseconds

Copy memory in rounds while the machine runs, then pause briefly for the final pages. QEMU says the pause is typically in the low hundreds of milliseconds.

Post-copyBounded, but riskier

Start the machine on the new host before all memory has arrived, fetching missing pages on demand. Time is bounded, but a failure of either side loses the guest.

Pre-copy, then post-copyA fallback

QEMU can start in pre-copy and switch to post-copy if a migration is taking too long to converge.

Sources: Clark et al., Live Migration of Virtual Machines, NSDI 2005; QEMU documentation, Migration framework and Postcopy pages.

THE SHORT ANSWER

Copy first,
pause last.

Memory is the big thing to move.
The methods differ in when they move it.

PRE-COPY

Copy while it runs

Memory pages are copied in rounds while the machine keeps running, re-sending pages that changed. Then a short stop-and-copy sends the rest.

Compare methods

THE NETWORK

A full copy of RAM in transit

The migration stream contains a complete copy of the guest's RAM, so libvirt advises keeping migration traffic separate and using encryption such as TLS.

Security and storage

WHY BOTHER

Free up the old host

The 2005 paper notes that once migration completes, the original host can be taken down for maintenance, with clients staying connected.

See the numbers
A rack server slid half out of its rack on rails for maintenance in a data centre
AI-generated image, not a photograph of a real person or place.

THE STAGES OF A MOVE

Six steps,
one short pause.

The 2005 paper breaks a live migration into stages. Only one of them stops the machine.

  1. Reserve the destination

    The target host confirms it has the resources and reserves a container. If it cannot, the machine simply keeps running where it is.

  2. Pre-copy in rounds

    All memory is sent first, then only the pages that changed during the previous round.

  3. Stop and copy

    The machine is suspended, and the remaining pages and processor state are sent across.

  4. Commit and activate

    The destination confirms it has a consistent copy, the source lets go, and the machine resumes on its new host.

SECURITY AND STORAGE

Memory moves,
disks may not.

Because the migration stream includes a complete copy of the guest's RAM, libvirt warns that snooping on it could expose sensitive data, and recommends separating migration traffic from guest traffic and using TLS where the hypervisor supports it.

Libvirt by default expects disk images to be shared between the hosts, through a network filesystem or remote block storage. Offline migration is different again: it moves the machine's inactive definition, leaving it defined but inactive on the destination.

A close-up of network cables plugged into a switch, its small status lights glowing
AI-generated image, not a photograph of a real person or place.

Questions

Questions people ask

What is live migration?

Moving a running virtual machine from one physical host to another while it keeps working. QEMU describes it as letting the guest continue running while its state is transferred, stopping it only for the last part.

How long is a virtual machine paused during live migration?

It depends on many factors. QEMU says the unresponsive time is typically in the low hundreds of milliseconds, and the 2005 paper reported downtimes as low as 60 ms.

What is the difference between pre-copy and post-copy?

Pre-copy sends memory before switching hosts. Post-copy starts the machine on the new host first and fetches missing memory pages on demand, which bounds the time but means a failure of either side loses the guest.

Do network connections survive a live migration?

The 2005 paper says that because the whole virtual machine moves, including its protocol state, open connections can be maintained, so clients do not need to reconnect.

Is migration traffic sensitive?

Yes. Libvirt notes the stream contains a complete copy of the guest's RAM and recommends separating migration traffic and using encryption.

Sources

Where the facts come from

  1. Clark et al., Live Migration of Virtual Machines, NSDI 2005 (USENIX)
  2. QEMU documentation: Migration framework
  3. QEMU documentation: Postcopy
  4. libvirt: Guest migration

ABOUT THIS NAME

Interested in leasing virtualmachinemigration.com?

virtualmachinemigration.com is part of the DoodleSale portfolio. It isn't in an auction right now, but you can ask about leasing it.

Ask about this name