VMmanager: Administrator guide

Migration of virtual machines

Migration is the transfer of a virtual machine (VM) from one (source) node to another (target) node.  VMmanager allows you to migrate VMs both within one cluster and to another cluster.

There are two types of migration:

  • without VM stopping (live migration) — VM remains available during migration;
  • with VM stopping — VM is unavailable for the time of migration.

Migration restrictions

For all types of migration

Migration cannot be performed if:

For migration to a different cluster

Migration cannot be performed if:

  • a Full Mesh VLAN has been created on the VM;
  • clusters have different types of network configurations;
  • source node and target node have operating systems from different Linux families. For example, the source node has Red Hat and the target node has Debian;
  • VM disk is in NAS storage and migrates to storage other than file storage.

If you migrate a VM with the Enable SPICE connections option to a cluster where SPICE connections are not allowed, the option will remain enabled, but SPICE connections will be unavailable.

For live migration

Migration cannot be performed if:

  • the source or the target node has a QEMU version lower than 2.0.0;
  • the version of QEMU on the target node is lower than on the source node;
  • OS kernel version on the target node is higher than on the source node;
  • a cluster node has nested virtualization enabled. Read more in the article How to disable nested virtualization?
  • the version of QEMU that was last used to run the VM is incompatible with the QEMU version on the target node. In such cases, it may help to synchronize the QEMU versions on the nodes and restart the VM before re-migrating.

After live migration VM may freeze for the following reasons:

  • CPU mismatch in Host-passthrough emulation mode;
  • QEMU or libvirt error;
  • OS kernel error.

For migration from VMmanager 5

The restrictions are listed in the article Migration from VMmanager 5 to VMmanager 6.

Migration algorithm

  1. If live migration is not possible, the VM is stopped
  2. The XML description of the virtual machine is copied to the target server.
  3. If the Shrink the VM disk prior to migration option is enabled, the VM disk file is optimized. The optimization allows to get the minimum possible file size.
  4. The disk of the virtual machine is transferred:
    • if the disk is in a local storage, it is copied to the target server;
    • if the disk is in a network storage, it is connected to the target server. 

      During live migration, QEMU periodically checks the state of the virtual machine during the migration. If the original VM data has changed, the copied data is overwritten by the changed data. If the virtual machine is in active use and data is constantly changing, migration will fail.
  5. The virtual machine is deleted on the source server.
  6. The virtual machine is started on the target server.

Starting the migration

  1. Enter the Virtual machines section.
  2. Select the VM → menu → Migrate or select the required VMs → Migrate.

    If migration is not available for all selected VMs, the menu item will contain the number of VMs available for migration. For example, Migrate (5).
    Group migration via the platform interface is available only for VMs located on a single cluster node. If you select VMs from different nodes, the group migration will be performed for the VM from the node that is higher in the list.


  3. To manage the list of VMs for migration:
    1. Click the VM list button.
    2. Select the VMs in the list.
    3. Click on the button with the required action:
      • Delete from migration list;
      • Start;
      • Stop VM.
  4. Select the Migration type:
    • Within cluster — VMs remain in the same cluster, but will be moved to a different node;
    • Between clusters — VMs will be moved to another cluster;
    • Disk only — VM disks will be moved to another storage.
  5. Specify the migration parameters:
    1. Disable the Shrink the VM disk prior to migration option if disk optimization is not required. The option is only available for disabled VMs.
    2. Disable the Use the distribution filters option if you do not need to use filters. Read more about distribution filters in Managing servers in the cluster.
    3. Disable the Cold migration of linked clones option if live migration of linked clones is required.
    4. To migrate Between clusters, in the Target cluster section, click Select the cluster and select the desired cluster from the list.
    5. To migrate Within cluster or Between clusters, in the Target node section, click Select the node and select the desired node from the list. If the node or live migration is unavailable, the Status column displays the reason for unavailability.
    6. In the Network interfaces settings section, select which interfaces on the target node will match the interfaces on the source node.
    7. In the VM disks distribution section, select in which storage the VM disks will be placed. Disks of the same VM can be placed in different storages.
  6. Explore the information in the VM resume section. The section contains information about whether all disks are allocated, whether VMs require rebooting, and whether VMs will be stopped during the migration.
  7. Click the Migrate button.