$ virtctl vnc <vm_name>
You can connect to the following consoles to access running virtual machines (VMs):
You can connect to the VNC console of a virtual machine by using the OpenShift Container Platform web console or the virtctl command line tool.
You can connect to the VNC console of a virtual machine (VM) by using the OpenShift Container Platform web console.
|
If you connect to a Windows VM with a vGPU assigned as a mediated device, you can switch between the default display and the vGPU display. |
On the Virtualization → VirtualMachines page, click a VM to open the VirtualMachine details page.
Click the Console tab. The VNC console session starts automatically.
Optional: To switch to the vGPU display of a Windows VM, select Ctl + Alt + 2 from the Send key list.
Select Ctl + Alt + 1 from the Send key list to restore the default display.
To end the console session, click outside the console pane and then click Disconnect.
You can use the virtctl command line tool to connect to the VNC console of a running virtual machine.
|
If you run the |
You must install the virt-viewer package.
Run the following command to start the console session:
$ virtctl vnc <vm_name>
If the connection fails, run the following command to collect troubleshooting information:
$ virtctl vnc <vm_name> -v 4
You can connect to the serial console of a virtual machine by using the OpenShift Container Platform web console or the virtctl command line tool.
You can connect to the serial console of a virtual machine (VM) by using the OpenShift Container Platform web console.
On the Virtualization → VirtualMachines page, click a VM to open the VirtualMachine details page.
Click the Console tab. The VNC console session starts automatically.
Click Disconnect to end the VNC console session. Otherwise, the VNC console session continues to run in the background.
Select Serial console from the console list.
To end the console session, click outside the console pane and then click Disconnect.
You can connect to a Windows virtual machine (VM) by using the desktop viewer and the Remote Desktop Protocol (RDP).
You can connect to the desktop viewer of a Windows virtual machine (VM) by using the OpenShift Container Platform web console.
You installed the QEMU guest agent on the Windows VM.
You have an RDP client installed.
On the Virtualization → VirtualMachines page, click a VM to open the VirtualMachine details page.
Click the Console tab. The VNC console session starts automatically.
Click Disconnect to end the VNC console session. Otherwise, the VNC console session continues to run in the background.
Select Desktop viewer from the console list.
Click Create RDP Service to open the RDP Service dialog.
Select Expose RDP Service and click Save to create a node port service.
Click Launch Remote Desktop to download an .rdp file and launch the desktop viewer.