Migrate Virtual Machines

This topic contains information about migrating and moving virtual machines within and across pools and standalone servers.

Definitions:

  • Migrate a VM: Move a running or a suspended VM to a different server or a pool.
  • Move a VM: Move a shut-down VM to a different server or pool.

Live migration

Live migration is available in all versions of Citrix Hypervisor. This feature allows you to move a running or a suspended VM between Citrix Hypervisor servers, when the VM’s disks are on storage shared by both servers. This capability allows for pool maintenance features such as Workload Balancing (WLB), high availability, and Rolling Pool Upgrade (RPU) to automatically move VMs. Storage can only be shared between hosts in the same pool. As a result, you can move VMs only within the same pool.

Live migration enables the following to occur without any VM downtime:

  • Workload leveling
  • Infrastructure resilience
  • Upgrade of the server software

Storage live migration

Storage live migration also allows VMs to be moved from one host to another, where the VMs are not on storage shared between the two hosts. As a result, you can migrate VMs stored on local storage without downtime and you can move VMs from one pool to another with virtually no service interruption. The choice of destination server depends on how the VM and the pool are configured. The choice of destination server depends on how the VM and the pool are configured. In a pool with Workload Balancing (WLB) enabled, for example, recommendations are provided to help select the best possible physical server for the VM’s workload. For more information, see Choosing an Optimal Server for VM Initial Placement, Migrate, and Resume.

Storage live migration enables system administrators to:

  • Rebalance VMs between Citrix Hypervisor pools (for example from a development environment to a production environment)
  • Upgrade and update standalone Citrix Hypervisor servers without any VM downtime
  • Upgrade the Citrix Hypervisor server hardware

Note:

You cannot use storage live migration to migrate VMs that have changed block tracking enabled. Disable changed block tracking before attempting storage live migration. For more information, see Changed Block Tracking.

Moving a VM from one host to another preserves the VM state. The state includes information that defines the VM and the historical performance metrics, such as CPU and network usage.

Storage live migration also allows you to move virtual disks from one Storage Repository (SR) to a different SR within the same pool. For more information, see Move Virtual Disks.

Compatibility requirements

When migrating a VM with live migration or storage live migration, the new VM and server must meet the following compatibility requirements:

  • Citrix VM Tools must be installed on each VM that you want to migrate.
  • The destination server must have the same or a more recent version of Citrix Hypervisor installed as the source.
  • (Storage live migration only.) If the CPUs on the source and destination server are different, the destination server must provide at least the entire feature set as the source server. Therefore, it is unlikely to be possible to move a VM between, for example, AMD and Intel processors.
  • For storage live migration, VMs with more than one snapshot cannot be migrated.
  • VM with checkpoint cannot be migrated.
  • For storage live migration, VMs with more than six attached VDIs cannot be migrated.
  • The target server must have sufficient spare memory capacity or be able to free sufficient capacity using Dynamic Memory Control. If there is not enough memory, the migration fails to complete.
  • For storage live migration, the target storage must have enough free disk space (for the VM and its snapshot) available for the incoming VMs. If there is not enough space, the migration fails to complete.

Live migration and storage live migration limitations

Live migration and storage live migration are subject to the following limitations:

  • Storage live migration cannot be used in Citrix Virtual Desktops deployments.
  • VMs using PCI pass-thru cannot be migrated.
  • VM performance is reduced during migration.
  • For storage live migration, disable high availability before attempting VM migration.
  • Time to completion of VM migration depends on the memory footprint of the VM, and its activity. In addition, the size of the VDI and the storage activity of the VDI can affect VMs being migrated with storage live migration.
  • Intel GVT-g is not compatible with live migration and storage live migration. For information, see Graphics overview

For step-by-step instructions on using live migration or storage live migration to migrate your VMs, see the section To Migrate or Move a VM.

Move VMs

XenCenter allows you to move shut-down VMs to a new storage repository in the same pool by using the Move VM wizard. For step-by-step instructions, see the following section.

To migrate or move a VM

  1. In the Resources pane, select the VM and do one of the following depending on the status of your VM.
    • To migrate a running or suspended VM using live migration or storage live migration: On the VM menu, select Migrate to Server and then Migrate VM wizard. This action opens the Migrate VM wizard.

      Note:

      For pools with 16 or fewer members, the right-click menu displays the list of available servers to migrate the VM to. However, for larger pools, the servers are not listed in the menu. Instead you must open the Migrate to Server wizard.

    • To move a stopped VM: On the VM menu, select Move VM. This action opens the Move VM wizard.

  2. Select a standalone server or a pool from the Destination list.
  3. Select a server from the Home Server list to assign a home server for the VM and select Next.
  4. On the Storage page, specify a storage repository to place the virtual disks of the migrated VM on. Select Next.
    • The Place all migrated virtual disks on the same SR option is selected by default and displays the default shared SR on the destination pool.
    • Select Place migrated virtual disks onto specified SRs to specify an SR from the Storage Repository list. This option allows you to select different SR for each virtual disk on the migrated VM.
  5. On the Networking page, map the virtual network interfaces in the selected VM to networks in the destination pool or server. Specify your options using the Target Network list and select Next.
  6. Select a storage network on the destination pool that is to be used for the migration of the VM’s virtual disks. Select Next.

    Note:

    Due to performance reasons, it is recommended that you do not use the management network for live migration.

  7. Review the configuration settings and select Finish to start migrating or moving the VM.