Skip to main content
NetApp Solutions

Workflows: Red Hat OpenShift Virtualization with NetApp ONTAP

Contributors banum-netapp

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. Astra Trident backend configured with an SVM on a NetApp ONTAP cluster that is enabled for NFS protocol supports shared ReadWriteMany access for PVCs. Therefore, the VMs with PVCs that are requested from StorageClasses provisioned by Trident from NFS-enabled SVM can be migrated with no downtime.

VM Live Migration architecture

To create a VM bound to PVCs with shared ReadWriteMany access:

  1. Navigate to Workloads > Virtualization > Virtual Machines and click Create > With Wizard.

  2. Select the desired the operating system and click Next. Let us assume the selected OS already had a boot source configured with it.

  3. In the Review and Create pane, select the project you want to create the VM in and furnish the VM details. Make sure that the boot source is selected to be Clone and boot from CD-ROM with the appropriate PVC assigned for the selected OS.

  4. Click Customize Virtual Machine and then click Storage.

  5. Click the ellipsis next to rootdisk, and make sure that the storageclass provisioned using Trident is selected. Expand Advanced and select Shared Access (RWX) for Access Mode. Then click Save.

    Make the disk RWX accessible
  6. Click Review and confirm and then click Create Virtual Machine.

To manually migrate a VM to another node in the OpenShift cluster, complete the following steps.

  1. Navigate to Workloads > Virtualization > Virtual Machines.

  2. For the VM you wish to migrate, click the ellipsis, and then click Migrate the Virtual Machine.

  3. Click Migrate when the message pops up to confirm.

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.