Migrate a VM

Perform this task to migrate a VM between hosts and storages.

VM migration changes the carriers of a VM, including computing resources and storage resources. For example, you can change the host where a VM runs, or change the storage pool that stores disks (image files) of a VM.

VM migration types

Based on the VM state, VM migration includes online migration and offline migration.

Based on the application mode, VM migration includes dynamic migration and manual migration.

Migration methods

Table-1 Networks used in VM migration

VM state

Migration method

Change host

Change storage

Change host and storage

Online

Migration network and management network

Storage network

Migration network, management network, and storage network

Offline

Management network

Storage network

Migration network, management network, and storage network

  • Management network—Transmits control layer data between the management platform and hosts, including configuration information and control commands.

  • Storage network—Transmits packets from hosts to the storage. The storage network and management network can share the same IP range.

  • Migration network—Transmits service data during VM migration, including VM memory and disk image data. The migration network and management network can share the same IP range.

If you migrate the host and storage for a VM or migrate only the host for a VM, the system uses the following rules to select the networks:

Wait timeout timer

The wait timeout timer refers to the maximum duration CVM waits for a migration result from a CVK host after it deploys a migration task to that CVK host. If CVM does not receive a migration result from the CVK host before the wait timeout timer expires, it will terminate the migration task. The wait timeout timer varies by VM migration method as follows:

Restrictions and guidelines

Procedure

  1. On the top navigation bar, click Compute.

  2. From the left navigation pane, select Resource Navigation > All > Resources > Host Pool Name > Host Name > VM Name or Resource Navigation > All > Resources > Host Pool Name > Cluster Name > Host Name > VM Name.

  3. Click Migrate.

  4. Follow the configuration wizard to migrate the VM.

  5. To cancel the VM migration task, click Cancel in the Actions column for the migration task or click Details in the Actions column for the task and then click Cancel in the upper right corner of the page that opens.

Parameters

Select migration type:

Configure destination storage:

  • The migration speed parameter does not take effect if an offline VM is migrated between two RBD network storage pools.

  • The migration speed parameter does not take effect if the migrated VM is running and has internal snapshots.