mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
27 lines
711 B
Plaintext
27 lines
711 B
Plaintext
// Module included in the following assemblies:
|
|
//
|
|
// * virt/live_migration/virt-initiating-live-migration.adoc
|
|
|
|
:_mod-docs-content-type: PROCEDURE
|
|
[id="virt-canceling-vm-migration-cli_{context}"]
|
|
= Canceling live migration by using the CLI
|
|
|
|
Cancel the live migration of a virtual machine by deleting the
|
|
`VirtualMachineInstanceMigration` object associated with the migration.
|
|
|
|
.Prerequisites
|
|
|
|
* You have installed the {oc-first}.
|
|
* You have the `kubevirt.io:migrate` RBAC role or you are a cluster administrator.
|
|
|
|
.Procedure
|
|
|
|
* Delete the `VirtualMachineInstanceMigration` object that triggered the live
|
|
migration, `migration-job` in this example:
|
|
+
|
|
|
|
[source,terminal]
|
|
----
|
|
$ oc delete vmim migration-job
|
|
----
|