Virtual Machine Migration
Discover VM migration in PCD, a vital process for moving virtual machines between hosts to ensure system availability and optimize resource utilization. Learn about use cases, types, and commands for
VM migration in Private Cloud Director refers to the process of moving a running or stopped virtual machine (VM) from one compute host (hypervisor) to another within the same Private Cloud Director environment. This is a fundamental capability for maintaining system availability, performing infrastructure maintenance, and balancing workloads in data centers.
Common Use Cases
Following are the common scenarios in which migration is initiated in Private Cloud Director.
Maintenance mode: When you invoke Maintenance Mode on host, VMs are live migrated to other compatible hosts in the virtualized cluster.
Load Balancing: Private Cloud Director Dynamic Resource Rebalancing (DRR) uses live migration to distribute VMs more evenly across hosts in a virtualized cluster to optimize resource utilization and prevent individual hosts from becoming overloaded.
Host Failure (VM Evacuation): Private Cloud Director Virtual Machine High Availability (VM HA) service uses VM evacuation to recover VMs from a failing or failed host.
Types of VM Migration
Private Cloud Director supports following types of VM migrations:
Cold migration
Live migration
VM evacuation
Let's dive into the specifics of each.
Cold Migration
Cold migration is a method of moving a virtual machine from one host to another, where the VM is shut down`` ``(powered off)or suspended during the process. The VM disks and configuration files are transferred to the destination host as part of the cold migration process.
Downtime: Cold migration essentially requires VM downtime, as the VM must be powered off or suspended before it can be cold migrated.
Cold Migration Prerequisites
VM should be powered off or suspended.
Cold migration uses the management network for copying over virtual machine disk information. Make sure that the management network interface has sufficient network bandwidth and capacity to support disk copy operation.
All hosts within the virtualized cluster must meet CPU Model Pre-requisites.
Source and destination hosts must run compatible operating systems. Cold migration is supported between hosts running the same Ubuntu version, and from Ubuntu hosts to Platform9 OS powered by Rocky Linux by CIQ hosts (the supported path for transitioning to Platform9 OS). For more information, refer to the Operating System Compatibility Requirements.
Using CLI
Authenticate pcdctl CLI
Run the command below to perform the cold migration. The command below will cold migrate the VM to a suitable host within the virtualized cluster.
To migrate VM to a specific host use the below command:
Using UI
Log in to the UI and select Virtual Machine menu on the left side nav bar.
Select the desired VM then click on the "other" option on the action bar and select the
migrateaction.Select the target hypervisor host and hit the "Migrate VM" button.
Live Migration
Live migration is a method of moving a virtual machine from one host to another, where the VM remains running throughout the migration process.
The live migration process copies a virtual machine's memory from the source to the destination host while the VM is running. Any memory pages that get modified or "dirtied" on the VM during this time are copied over again. Finally, the VM enters a brief pause period during which its remaining memory and CPU state are copied over to the destination host, and finally, the VM is resumed on the destination host.
Downtime: The VM will experience a brief downtime (typically milliseconds to seconds) during the pause period before resuming on the destination host.
Live migration can be classified further by the way it treats virtual machine storage:
Live Migration for a VM using Ephemeral Shared Storage: The virtual machine has an ephemeral root disk that is located on Ephemeral Shared Storage.
Live migration enables the testing and validation of whether the source and target hosts are utilizing the same underlying shared storage.
When validated, live migration is performed without copying over VM disk.
Live Migration of a VM using Ephemeral Local Storage: The Virtual machine has an ephemeral root disk that is located on Ephemeral Local Storage.
Live migration will copy over the entire virtual machine root disk from the source host to the destination host.
Live Migration of a VM using Volumes only: The Virtual machine is using block storage volumes, rather than ephemeral disk.
Live migration will migrate the VM without performing a storage copy. The same volumes will continue to be attached to the VM once it's migrated to the target host.
Live Migration Prerequisites
All hosts within the virtualized cluster must run the same major and minor version of Ubuntu.
Live migration uses the management network to copy virtual machine memory and, optionally, disk information by default. Make sure that the management network interface has sufficient network bandwidth and capacity to support VM memory migration traffic. A separate network interface can be configured for live migration traffic to isolate it from the management network.
When using live migration in a production setup, specifically for features like Dynamic Resource Rebalancing (DRR), it is recommended to configure all virtual machines to use shared storage only for the best performance of the migration operation.
When using Ephemeral Local Storage, live migration requires sufficient network bandwidth and capacity to support virtual machine disk copy.
This is not required when using Ephemeral Shared Storage at the virtualized cluster level or using Block Storage Volumes exclusively for all virtual machines.
All hosts within the virtualized cluster must meet CPU Model Pre-requisites for live migration to work. Read more about CPU Models.
Source and destination hosts must run the same operating system version. For more information, refer to the Operating System Compatibility Requirements.
WARNING
Live migration between hosts with different Ubuntu versions (22.04 and 24.04) is not supported and will result in migration failures. Ensure all hosts in your virtualized cluster run the same operating system version.
Live Migrate Using CLI
Authenticate pcdctl CLI
Run the command below to perform the live migration.
NOTE
Here target host UUID is mandatory.
Live Migrate Using UI
Log in to the PCD UI and select Virtual Machine.
On Virtual Machine search for a specific VM and select the VM.
Click other tab and then select the Migrate.
This will list down the eligible target hypervisors for Live migration.
Select the target hypervisor and click Migrate VM.
VM Evacuation
VM Evacuation is specifically designed for disaster recovery. If a host fails or becomes unresponsive, VM evacuation attempts to restart a VM that was running on the failed host onto a healthy host.
VM Evacuation Prerequisites
VM evacuation can only be performed for VMs using Ephemeral Shared Storage or Block Storage Volumes. If the VM is using Ephemeral Local Storage, evacuation can not work as the virtual machine disk can not be copied over from the source host to a target host.
All hosts within the virtualized cluster must meet CPU Model Pre-requisites for VM evacuation to work. Read more about CPU Models.
Source and destination hosts must run the same operating system version. For more information, refer to the Operating System Compatibility Requirements.
NOTE
The evacuation operation will be triggered automatically for VMs on hosts that experience an outage in clusters with VM High Availability enabled. You can perform a VM evacuation operation manually via the command line.
Using CLI
Authenticate pcdctl CLI
Run the command below to perform the live migration.
NOTE
Here target host UUID is mandatory.
Operating System Compatibility Requirements
NOTE
Live migration and VM evacuation require source and destination hosts to run the same operating system version and KVM version. Cold migration additionally supports a one-way Ubuntu-to-Platform9-OS path; see Cross-OS Cold Migration: Ubuntu Hosts to Platform9 OS Hosts below.
Hosts running Ubuntu 22.04 can only migrate VMs to other Ubuntu 22.04 hosts.
Hosts running Ubuntu 24.04 can only migrate VMs to other Ubuntu 24.04 hosts.
Cross-version migrations (Ubuntu 22.04 ↔ Ubuntu 24.04) are not supported.
Known Limitation: While initial migration from Ubuntu 22.04 to Ubuntu 24.04 may appear to succeed, subsequent migrations back to Ubuntu 22.04 may fail. This is due to incompatibilities between KVM versions on different operating systems.
Cross-OS Cold Migration: Ubuntu Hosts to Platform9 OS Hosts
Cold migration is supported from hosts running Ubuntu to hosts running Platform9 OS powered by Rocky Linux by CIQ. This is the supported path for transitioning your virtualized cluster from Ubuntu to Platform9 OS.
Supported: Ubuntu 22.04 → Rocky Linux 10.2, Ubuntu 24.04 → Rocky Linux 10.2.
The migration is one-way: cold migrating VMs back from Platform9 OS hosts to Ubuntu hosts is not supported.
Only cold migration is supported across operating systems. Live migration and VM evacuation are still not supported. Power VMs off (or suspend them) before initiating the migration.
All other Cold Migration Prerequisites still apply (CPU model compatibility, management network bandwidth, etc.).
Recommended Approach for OS Upgrades
When upgrading your cluster from Ubuntu 22.04 to Ubuntu 24.04 consider the following:
Plan for one-way migration only (22.04 → 24.04).
Complete all hosts upgrades before resuming normal migration operations.
Do not attempt to migrate VMs back to older OS versions.
When Migrating from Ubuntu Hosts to Platform9 OS Hosts
When migrating from Ubuntu hosts to hosts running Platform9 OS powered by Rocky Linux by CIQ, consider the following:
Cold-migrate VMs from Ubuntu source hosts to Platform9 OS destination hosts. Live migration and VM evacuation across OSes are not supported. Power VMs off (or suspend them) before initiating the migration.
The migration is one-way. Do not attempt to cold-migrate VMs back to Ubuntu hosts after they have been moved to Platform9 OS hosts.
Complete the migration of all VMs from a given Ubuntu host before decommissioning or repurposing it for Platform9 OS.
Migration Limitations
Cross-Cluster Live Migration
Cross-cluster live migration of virtual machines is not currently supported. This feature will be introduced with a future release of Private Cloud Director.
Live Migration of GPU-Enabled VMs
You can live migrate virtual machines configured with VGPUs. VMs configured with GPU passthrough can not be live migrated today.
Last updated
Was this helpful?
