Migrate VMs
You can change a VM's host, data storage, or both within the current virtualization environment to meet resource adjustment and maintenance needs.
Hot migration takes place while the VM is running, whereas cold migration takes place after the VM is shut down. You can choose a suitable migration method based on your business continuity requirements and the migration options supported by the VM and the source and destination data storage.
When changing the host, or both the host and storage, for a VM using ZNS networks, the target host must be connected to ZNS Fabric and meet the transport zone requirements for the VM's port groups. For migration across clusters, also check the target cluster's transport zone associations. The network requirements of all NICs must be met.
Hot Migrate a VM to Another Host
Hot migration migrates a running virtual machine. This action mainly copies the CPU register state and memory information.
Before you begin
- The VM resides on local storage, NFS storage, ZCE distributed storage, SAN storage, or ZHPS distributed storage.
- If the VM has data disks, ISOs, or peripheral devices attached, detach them before migration. A VM on local storage can be hot migrated with local data disks attached. A VM on shared storage can be hot migrated with data disks, shared disks, and ISOs attached.
- If vNUMA is enabled for the VM, make sure that the pNUMA topology of the destination host is consistent with that of the source host.
- If the VM has VF NICs attached, make sure that the following requirements are met before hot migration:
- VMTools is installed on the VM and is running properly.
- If the driver version inside the VM is too old, migration might fail. Check and update the driver version as needed.
- If the selected VM is associated with VM scheduling policies, modify the policies based on your service requirements to avoid policy conflicts.
- If the VM uses ZNS networks, the target host must be connected to ZNS Fabric and meet the transport zone requirements for the port groups used by all NICs.
Procedure
What to do next
Cold Migrate a VM to Another Host
Cold migration migrates a powered-off virtual machine.
Before you begin
- The VM resides on local storage.
- If the VM has ISOs or peripheral devices attached, detach them before migration.Note:A VM on local storage can be cold migrated with local data disks attached.
- If the selected VM is associated with VM scheduling policies, modify the policies based on your service requirements to avoid policy conflicts.
- If the VM uses ZNS networks, the target host must be connected to ZNS Fabric and meet the transport zone requirements for the port groups used by all NICs.
Procedure
What to do next
Change Data Storage
Changing data storage migrates the system disk or data disks of a VM without changing the host on which the VM runs. You can migrate the entire VM or only selected data disks.
If encryption is enabled for the VM or any disk to be migrated, see Interoperability with Other Features.
Migration Scope
| Scope | Description |
|---|---|
| Entire VM | Migrates the system disk of the VM. You can also migrate the attached data disks as needed. |
| Data Disk | Migrates one or more selected data disks without changing the data storage of the system disk. You can specify a different destination data storage for each data disk. |
Supported Migration Methods
| Migration Scope | Source and Destination Storage | VM State |
|---|---|---|
| Entire VM | SAN storage to SAN storage | Running or shut down |
| Entire VM | Between SAN storage and ZCE distributed storage | Running |
| Data Disk | SAN storage to SAN storage | Running or shut down |
| Data Disk | NFS storage to NFS storage | Shut down |
| Data Disk | ZCE distributed storage to ZCE distributed storage | Shut down |
The source and destination data storage must be attached to the same cluster. Data disks on local storage or other unsupported storage types cannot be migrated.
Hot Migrate a VM from SAN Storage to SAN Storage
Before you begin
- Make sure that the source data storage and destination data storage are attached to the same cluster.
- If the VM has ISOs or block devices attached, detach them before migration.
- If a shared data disk is attached to the VM, the shared disk cannot be migrated together with the VM. Detach the shared disk before migration.
- If the VM has VF NICs attached, make sure that the following requirements are met before hot migration:
- VMTools is installed on the VM and is running properly.
- If the driver version inside the VM is too old, migration might fail. Check and update the driver version as needed.
Procedure
What to do next
Cold Migrate a VM from SAN Storage to SAN Storage
Before you begin
- Make sure that the source data storage and destination data storage are attached to the same cluster.
- If the VM has ISOs or block devices attached, detach them before migration.
- If a shared data disk is attached to the VM, the shared disk cannot be migrated together with the VM. Detach the shared disk before migration.
Procedure
What to do next
Hot Migrate a VM Between SAN Storage and ZCE Distributed Storage
Before you begin
- Make sure that the source data storage and destination data storage are attached to the same cluster.
- If the VM has ISOs or block devices attached, detach them before migration.
- If a shared data disk is attached to the VM, the shared disk cannot be migrated together with the VM. Detach the shared disk before migration.
- If the VM has VF NICs attached, make sure that the following requirements are met before migration:
- VMTools is installed on the VM and is running properly.
- If the driver version inside the VM is too old, migration might fail. Check and update the driver version as needed.
Procedure
What to do next
Migrate Data Disks
Before you begin
- Make sure that the source and destination data storage are attached to the same cluster.
- SAN data disks can be migrated while the VM is running or shut down. NFS and ZCE data disks can be migrated only after the VM is shut down.
Procedure
Hot Migrate a VM Across Data Storage of the Same Type
Before you begin
- Make sure that the data storage where the VM resides meets the storage combination requirements.Supported storage combinations:
- Hot migration from local storage to local storage.
- Hot migration from ZCE distributed storage to ZCE distributed storage.
- Hot migration from NFS storage to NFS storage.
- Hot migration from SAN storage to SAN storage.
- If the VM has shared disks, ISOs, or peripheral devices attached, detach them before migration.
- If vNUMA is enabled for the VM, make sure that the pNUMA topology of the destination host is consistent with that of the source host.
- If the VM has VF NICs attached, make sure that the following requirements are met before hot migration:
- VMTools is installed on the VM and is running properly.
- If the driver version inside the VM is too old, migration might fail. Check and update the driver version as needed.
- If the selected VM is associated with VM scheduling policies, modify the policies based on your service requirements to avoid policy conflicts.
- For hot migration across data storages of the same type, only full-VM migration is supported.
- For hot migration from one ZCE distributed storage to another ZCE distributed storage, make sure that the monitoring nodes of the two distributed storage systems can communicate with each other.
Procedure
Cold Migrate a VM Across Data Storage of the Same Type
Before you begin
- Make sure that the data storage where the VM resides meets the storage combination requirements.Supported storage combinations:
- Cold migration from ZCE distributed storage to ZCE distributed storage.
- Cold migration from NFS storage to NFS storage.
- If the VM has data disks, shared disks, ISOs, or peripheral devices attached, detach them before migration.
- If the selected VM is associated with VM scheduling policies, modify the policies based on your service requirements to avoid policy conflicts.
- For cold migration from one ZCE distributed storage to another ZCE distributed storage, if a cold migration network is configured for the destination distributed storage, the VM is migrated through the cold migration network. Otherwise, the management network is used.
- For cold migration from one NFS storage to another NFS storage, the destination NFS storage must be attachable to the cluster where the VM to be migrated resides.
Procedure
Hot Migrate a VM Across Different Data Storage Types
Before you begin
- Make sure that the data storage where the VM resides meets the storage combination requirements.Supported storage combinations:
- Hot migration between ZCE distributed storage and SAN storage.
- Hot migration between ZCE distributed storage and NFS storage.
- Hot migration between local storage and SAN storage.
- Hot migration between local storage and ZCE distributed storage.
- Hot migration between local storage and NFS storage.
- Hot migration between SAN storage and NFS storage.
- If the VM has shared disks, ISOs, or peripheral devices attached, detach them before migration.
- If vNUMA is enabled for the VM, make sure that the pNUMA topology of the destination host is consistent with that of the source host.
- If the VM has VF NICs attached, make sure that the following requirements are met before migration:
- VMTools is installed on the VM and is running properly.
- If the driver version inside the VM is too old, migration might fail. Check and update the driver version as needed.
- If the selected VM is associated with VM scheduling policies, modify the policies based on your service requirements to avoid policy conflicts.
- For hot migration across data storages of different types, only full-VM migration is supported.
Procedure
Hot Migrate a VM Across Storage Pools in the Same ZCE Distributed Storage
Before you begin
- Make sure that the VM resides on ZCE distributed storage.
- If the VM has shared disks, ISOs, or peripheral devices attached, detach them before migration.
- If vNUMA is enabled for the VM, make sure that the pNUMA topology of the destination host is consistent with that of the source host.
- If the VM has VF NICs attached, make sure that the following requirements are met before hot migration:
- VMTools is installed on the VM and is running properly.
- If the driver version inside the VM is too old, migration might fail. Check and update the driver version as needed.
