10.12. Managing the link state of a virtual machine interface
You can manage the link state of a primary or secondary virtual machine (VM) interface by using the OpenShift Container Platform web console or the CLI. By specifying the link state, you can logically connect or disconnect the virtual network interface controller (vNIC) from a network.
OpenShift Virtualization does not support link state management for Single Root I/O Virtualization (SR-IOV) secondary network interfaces and their link states are not reported.
You can specify the desired link state when you first create a VM, by editing the configuration of an existing VM that is stopped or running, or when you hot plug a new network interface to a running VM. If you edit a running VM, you do not need to restart or migrate the VM for the changes to be applied. The current link state of a VM interface is reported in the status.interfaces.linkState field of the VirtualMachineInstance manifest.
Setting the VM interface link state is a Technology Preview feature only. Technology Preview features are not supported with Red Hat production service level agreements (SLAs) and might not be functionally complete. Red Hat does not recommend using them in production. These features provide early access to upcoming product features, enabling customers to test functionality and provide feedback during the development process.
For more information about the support scope of Red Hat Technology Preview features, see Technology Preview Features Support Scope.
10.12.1. Setting the VM interface link state by using the web console 링크 복사링크가 클립보드에 복사되었습니다!
You can set the link state of a primary or secondary virtual machine (VM) network interface by using the web console.
Prerequisites
- You are logged into the OpenShift Container Platform web console.
Procedure
-
Navigate to Virtualization
VirtualMachines. - Select a VM to view the VirtualMachine details page.
- On the Configuration tab, click Network. A list of network interfaces is displayed.
-
Click the Options menu
of the interface that you want to edit.
Choose the appropriate option to set the interface link state:
-
If the current interface link state is
up, select Set link down. -
If the current interface link state is
down, select Set link up.
-
If the current interface link state is