Skip to main content
NetApp Solutions

Workflows: Red Hat OpenShift Virtualization with NetApp ONTAP

Contributors kevin-hoke banum-netapp ntapdave

This section shows how to migrate a virtual machine in OpenShift Virtualization between nodes in the cluster .

VM Live Migration

Live Migration is a process of migrating a VM instance from one node to another in an OpenShift cluster with no downtime. For live migration to work in an OpenShift cluster, VMs must be bound to PVCs with shared ReadWriteMany access mode. Trident backends configured using ontap-nas drivers support RWX access mode for FileSystem protocols nfs and smb. Refer to the documentation here. Trident backends configured using ontap-san drivers support RWX access mode for block volumeMode for iSCSI and NVMe/TCP protocols. Refer to the documentation here.

Therefore, for live migration to succeed, the VMs must be provisioned with disks (boot disks and additional hot plug disks) with PVCs using ontap-nas or ontap-san (volumeMode: Block) storage classes. When the PVCs are created, Trident creates ONTAP volumes in an SVM which is NFS-enabled or iSCSI enabled.

VM Live Migration architecture

To perform a live migration of a VM that has been created previously and is in a Running state perform the following steps:

  1. Select the VM that you want to live-migrate.

  2. Click on Configuration tab.

  3. Ensure that all the disks of the VM are created using Storage classes that can support RWX access mode.

  4. Click on Actions on the right corner and then select Migrate.

  5. To look at the progression of the Migration, go to Virtualization > Overview on the left hand side menu and then click on the Migrations tab.

The Migration of the VM will transition from Pending to Scheduling to Succeeded

Note A VM instance in an OpenShift cluster automatically migrates to another node when the original node is placed into maintenance mode if the evictionStrategy is set to LiveMigrate.

VM Live Migrate start

VM Live Migrate Succeeded