Zero-Downtime Instance Relocation With OpenStack Nova Live Migration
Nova live migration moves running OpenStack instances between compute hosts without rebooting eliminating maintenance downtime when storage and hypervisor requirements are met.
03 Apr 2026, 17:00 UTC

Problem: Maintenance Without the Reboot
\nProduction environments often require host updates hardware swaps or capacity rebalancing. Traditionally moving a running virtual machine means shutting it down migrating the disk image and powering it back up introducing downtime that impacts users and SLAs.
\nThesis: Nova Live Migration Eliminates that Downtime
\nOpenStack Nova scheduler and libvirt stack can relocate a running instance to another compute node while the guest operating system stays online. The trick is making sure the underlying infrastructure supports it.
\nHow Live Migration Works
\nLive migration in Nova relies on three pillars: shared storage or compatible image replication a network path between compute nodes that can transfer memory pages at speed and a hypervisor KVM QEMU or VMware that supports page-table tracking without pausing the guest. The scheduler selects a destination the compute nodes stream the instances memory and state and the guest continues execution on the new host.
\nConcrete Example: Migrating an Instance via the CLI
\nAssume you have an instance named code web-01 code running on compute host code compute-01 code and you want to move it to code compute-02 code. The following command performs a live migration:
\nnova live-migrate --live web-01 compute-02\nWhere to run it: on the OpenStack controller node using the openstack CLI with a user or service account that has the admin role or compute-admin for granular control. Required permissions include compute-servers-live-migrate in policy files. Placeholders: replace code web-01 code with your instance name or UUID and code compute-02 code with the target host name. Expected checks after the command returns: run code nova show web-01 code and confirm the code hostName code has changed to code compute-02 code while the instance state remains code active code. Relevant risks: if the source and destination use different CPU microarchitectures the guest may panic insufficient network bandwidth can stall the migration and trigger a timeout without shared storage or a copied image the migration will fail partway through.
\nTrade-offs and Limitations
\n- \n
- Storage dependency: The instances root disk must reside on shared storage Ceph NFS or Cinder that both compute nodes can access or the image must be replicated beforehand. \n
- CPU and hypervisor alignment: Source and destination compute nodes should run the same CPU architecture and compatible libvirt QEMU versions. Migrating across different hypervisor types is not supported. \n
- Network bandwidth: Memory transfer speed depends on the inter-node network. Congested or low-latency links can extend migration time potentially affecting SLA windows. \n
- Live migration is not a free operation: It consumes CPU and I/O on both source and destination during the copy-phase which may impact other workloads. \n
Verification and Best Practices
\nBefore running a live migration in production validate the setup in a test environment:
\n- \n
- Deploy two compute nodes with identical hypervisor versions and shared block storage. \n
- Launch an instance and confirm it is running on the source host. \n
- Run code nova live-migrate --live INSTANCE DEST-HOST and monitor the output for Migration completed or similar messages. \n
- After migration verify with code nova show INSTANCE that code hostName code reflects the new host and the instance remains code active code. \n
- Check the compute node logs code /var/log/libvirt/libvirtd.log code for any migration warnings or errors. \n
If a migration stalls you can abort it with code nova live-migrate --abort INSTANCE and revert the instance to its original host. Note that aborting an in-flight migration may leave the guest in a quiescent state a subsequent cold reboot may be required.
0 replies
A thoughtful contribution can make all the difference. Be the first to share one.