Guide · High availability

Configure high availability for KVM virtual machines.

A virtual machine marked for high availability is restarted on another node when its own node is lost. This guide sets it up and explains when it acts, when it does not, and why.

By · Checked against LexiVirt 2.1 on

How failover is decided

The console restarts a protected VM elsewhere only after a second node confirms that it, too, cannot reach the lost node — so a console that merely lost its own network does not fail everything over. When the lost node returns, the copy there is stopped and taken off autostart before it can write to the same disks. That obligation is written to the database together with the failover, so it survives the console restarting.

A node cut off from the cluster also stops its own HA VMs before they are started elsewhere, and libvirt disk locking is a second guard, so a disk is never written by two nodes at once.

Put the disks on shared storage

High availability protects only VMs whose disks are on shared storage: an NFS export added as a storage container on every node. Open Storage, choose Add container, pick NFS export, give the Server and Export, and under Add it on choose every node. Every node then writes and reads back a few kilobytes on it once a minute, and HA will not restart a VM onto storage that does not answer from that node.

Protect a VM

  1. Open the VM's tools, set a priority under High availability and Save. A VM with priority 0 is not restarted.
  2. Open Backups: the High availability card lists protected VMs and whether each definition was copied. Use Copy the definitions again after changing a VM.
  3. Open Automation to see that the watchdog and the other background jobs run, and when each last ran.
  4. If a node is lost, its protected VMs start on another node once a second node confirms the loss. The task and the alert say which VMs moved.

Placement rules are followed on an HA restart too, so replicas you keep apart stay apart.

Watch it from the infrastructure console

The HCI console (https://<console>:9440/hci) shows Resiliency & HA and whether the cluster could lose a node. Its node-failure check is about memory for the cluster as a whole; it does not check that a particular VM fits in one node's remainder.

Limits to know

LimitsOnly VMs whose disks are on shared storage are protected. Fencing goes through the returning node's own agent: a node whose agent is dead but whose guests still run cannot be fenced. Fencing and backups were tested against simulated hosts, not yet on real servers. High availability is not a backup: see Backups and disaster recovery.

Go further

The capability behind this guide: High Availability for KVM Virtual Machines. 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.