This is a cache of https://docs.openshift.com/container-platform/4.2/cnv/cnv_users_guide/cnv-cancel-vmi-migration.html. It is a snapshot of the page at 2024-11-23T02:42:25.524+0000.
Cancelling the live migration of a virtual machine instance - Container-native virtualization <strong>user</strong>'s guide | Container-native virtualization | OpenShift Container Platform 4.2
×

Cancel the live migration so that the virtual machine instance remains on the original node.

You can cancel a live migration from either the web console or the CLI.

Cancelling live migration of a virtual machine instance in the web console

A live migration of the virtual machine instance can be cancelled using the Options menu kebab found on each virtual machine in the WorkloadsVirtual Machines screen, or from the Actions menu on the Virtual Machine Details screen.

Procedure
  1. In the container-native virtualization console, click WorkloadsVirtual Machines.

  2. You can cancel the migration from this screen, which makes it easier to perform actions on multiple virtual machines in the one screen, or from the Virtual Machine Details screen where you can view comprehensive details of the selected virtual machine:

    • Click the Options menu kebab at the end of virtual machine and select Cancel Virtual Machine Migration.

    • Click the virtual machine name to open the Virtual Machine Details screen and click ActionsCancel Virtual Machine Migration.

  3. Click Cancel Migration to cancel the virtual machine live migration.

Cancelling live migration of a virtual machine instance in the CLI

Cancel the live migration of a virtual machine instance by deleting the VirtualMachineInstanceMigration object associated with the migration.

Procedure
  • Delete the VirtualMachineInstanceMigration object that triggered the live migration, migration-job in this example:

    $ oc delete vmim migration-job