Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 4 additions & 14 deletions modules/virt-hot-plugging-bridge-network-interface-cli.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,14 @@ Hot plug a secondary network interface to a virtual machine (VM) while the VM is
.Prerequisites

* A network attachment definition is configured in the same namespace as your VM.
* The VM to which you want to hot plug the network interface is running.
* 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

. If the VM to which you want to hot plug the network interface is not running, start it by using the following command:
+
[source,terminal]
----
$ virtctl start <vm_name> -n <namespace>
----

. Use the following command to add the new network interface to the running VM. Editing the VM specification adds the new network interface to the VM and virtual machine instance (VMI) configuration but does not attach it to the running VM.
+
[source,terminal]
----
$ oc edit vm <vm_name>
----
. Use your preferred text editor to edit the `VirtualMachine` manifest, as shown in the following example:
+
.Example VM configuration
[source,yaml]
Expand Down