Guide · Live migration

KVM live migration between servers.

A running virtual machine can move to another node without stopping. What travels depends on where its disks are; this guide explains both cases, how to drain a node, and what to secure.

By · Checked against LexiVirt 2.1 on

What moves, and how

Where the disks areWhat happens
Shared NFS containerOnly the VM's memory travels; it keeps running throughout.
The node's own diskThe disks are copied while it runs, and the originals removed once it runs on the new node (since 1.9.8).
VM is offIt is copied and started on the new node.

Move one VM

  1. Open the VM's tools and choose Move to another node.
  2. Pick the target. The console lists nodes that can take it.
  3. Follow the move on Tasks.

The VM's network has to exist on the target — virtual switches put the same networks on every node for exactly this — and a VM with a virtual TPM runs only on nodes with swtpm installed. Placement rules are followed on a move too.

Drain a node for maintenance

Use the power button on the node's card to put it in maintenance, then Move every VM off this node. Each VM goes to the node with the most room — live where its disks are shared, otherwise shut down, copied and started there.

Let the cluster balance itself

Load balancing under Clusters looks every five minutes for a node above its threshold (85% of memory or CPU by default). Recommend only proposes moves; Automatic makes one at a time, never during another migration, and never moves the same VM twice in an hour. Placement rules are honoured.

Secure the migration network

UnencryptedMoving a running VM with its disks sends its memory and disks between the nodes unencrypted, on TCP 49152–49215. Keep that traffic on a trusted network or VLAN.

Go further

The capability behind this guide: Live Migration, Node Drain and VMware Import. Every console page with its limits: the feature reference. Stuck? Ask the community or get support.

Run it on your own servers.

Free, with no licence per VM, socket or core. One command per server.