From e17a54091578384efe31821cd6492c3c36e812cb Mon Sep 17 00:00:00 2001 From: Shikha Jhala Date: Wed, 16 Jul 2025 17:36:32 -0400 Subject: [PATCH] CNV-62386: Updated VM NIC hot plug/unplug docs --- ...rt-hot-plugging-bridge-network-interface-cli.adoc | 12 +++++++----- ...-hot-unplugging-bridge-network-interface-cli.adoc | 9 ++++++--- 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/modules/virt-hot-plugging-bridge-network-interface-cli.adoc b/modules/virt-hot-plugging-bridge-network-interface-cli.adoc index 8e00a4c290fb..e5fe9062c5c8 100644 --- a/modules/virt-hot-plugging-bridge-network-interface-cli.adoc +++ b/modules/virt-hot-plugging-bridge-network-interface-cli.adoc @@ -12,8 +12,7 @@ Hot plug a secondary network interface to a virtual machine (VM) while the VM is * A network attachment definition is configured in the same namespace as your VM. * You have installed the `virtctl` tool. -* You have installed the OpenShift CLI (`oc`). -* You have permission to create and list `VirtualMachineInstanceMigration` objects. +* You have installed the {oc-first}. .Procedure @@ -61,13 +60,16 @@ template: <2> Specifies the name of the network. This must be the same as the `name` of the new network interface that you defined in the `template.spec.domain.devices.interfaces` list. <3> Specifies the name of the `NetworkAttachmentDefinition` object. - -. To attach the network interface to the running VM, live migrate the VM by running the following command: +. Run the following command for the new configuration to take effect. Applying the changes triggers automatic VM live migration and attaches the network interface to the running VM. + [source,terminal] ---- -$ virtctl migrate +$ oc apply -f .yaml ---- ++ +where: + +:: Specifies the name of your `VirtualMachine` manifest YAML file. .Verification diff --git a/modules/virt-hot-unplugging-bridge-network-interface-cli.adoc b/modules/virt-hot-unplugging-bridge-network-interface-cli.adoc index b48b9d9bca3d..6badb3c955b0 100644 --- a/modules/virt-hot-unplugging-bridge-network-interface-cli.adoc +++ b/modules/virt-hot-unplugging-bridge-network-interface-cli.adoc @@ -18,7 +18,6 @@ Hot unplugging is not supported for Single Root I/O Virtualization (SR-IOV) inte * Your VM must be running. * The VM must be created on a cluster running {VirtProductName} 4.14 or later. * The VM must have a bridge network interface attached. -* You have permission to create and list `VirtualMachineInstanceMigration` objects. * You have installed the {oc-first}. .Procedure @@ -58,9 +57,13 @@ template: ---- <1> Set the interface state to `absent` to detach it from the running VM. Removing the interface details from the VM specification does not hot unplug the secondary network interface. -. Remove the interface from the pod by migrating the VM: +. Run the following command for the new configuration to take effect. Applying the changes triggers automatic VM live migration and removes the interface from the pod. + [source,terminal] ---- -$ virtctl migrate +$ oc apply -f .yaml ---- ++ +where: + +:: Specifies the name of your `VirtualMachine` manifest YAML file.