mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
97 lines
5.5 KiB
Plaintext
97 lines
5.5 KiB
Plaintext
:_mod-docs-content-type: ASSEMBLY
|
|
[id="virt-accessing-vm-consoles"]
|
|
= Connecting to virtual machine consoles
|
|
include::_attributes/common-attributes.adoc[]
|
|
:context: virt-accessing-vm-consoles
|
|
:virt-accessing-vm-consoles:
|
|
|
|
toc::[]
|
|
|
|
You can connect to the following consoles to access running virtual machines (VMs):
|
|
|
|
* xref:../../virt/managing_vms/virt-accessing-vm-consoles.adoc#vnc-console_virt-accessing-vm-consoles[VNC console]
|
|
* xref:../../virt/managing_vms/virt-accessing-vm-consoles.adoc#serial-console_virt-accessing-vm-consoles[Serial console]
|
|
* xref:../../virt/managing_vms/virt-accessing-vm-consoles.adoc#desktop-viewer_virt-accessing-vm-consoles[Desktop viewer for Windows VMs]
|
|
|
|
[id="virt-accessing-vm-consoles-considerations_virt-accessing-vm-consoles"]
|
|
== Considerations for accessing VM consoles
|
|
|
|
In the {VirtProductName} environment, you can access guest VMs without the need for a guest network by using the {product-title} web console or by using `virtctl` commands from the command-line interface (CLI).
|
|
|
|
[NOTE]
|
|
====
|
|
Connecting to a guest VM through the VNC or serial console does not provide a full set of access features and cannot replace the Virtual Desktop Infrastructure (VDI) access. However, these consoles are useful for troubleshooting, as they allow access even if the guest VM has no network.
|
|
====
|
|
|
|
* *Connecting to VMs using the VNC console*
|
|
+
|
|
You can connect to the VNC console of a VM by using the {product-title} web console, as documented in the first two steps in xref:../../virt/managing_vms/virt-accessing-vm-consoles.adoc#vnc-console_virt-accessing-vm-consoles[Connecting to the VNC console by using the web console].
|
|
+
|
|
Alternatively, you can use the `virtctl` command-line tool to connect to the VNC console of a running VM. The installation of the `virtctl` command line tool is documented in xref:../../virt/getting_started/virt-using-the-cli-tools.adoc#installing-virtctl_virt-using-the-cli-tools[Installing virtctl], and the usage is documented in xref:../../virt/managing_vms/virt-accessing-vm-consoles.adoc#vnc-console_virt-accessing-vm-consoles[Connecting to the VNC console by using virtctl].
|
|
+
|
|
Take into account the following considerations:
|
|
|
|
** Using the VNC console is recommended for troubleshooting VMs.
|
|
** Using the VNC console is not recommended for high-traffic applications, such as Virtual Desktop Infrastructure (VDI), because of the burden on the API server.
|
|
** The API server must be able to handle the traffic load.
|
|
** The clients must be able to access the API server.
|
|
** The clients must have access credentials for the cluster.
|
|
** The VNC connection is expected to disconnect during live migration of a VM to another node.
|
|
** Using the VNC console allows only a single connection per VM at a time.
|
|
|
|
* *Connecting to VMs using the serial console*
|
|
+
|
|
You can connect to the serial console of a virtual machine (VM) by using the {product-title} web console, as documented in xref:../../virt/managing_vms/virt-accessing-vm-consoles.adoc#serial-console_virt-accessing-vm-consoles[Connecting to the serial console by using the web console].
|
|
+
|
|
Alternatively, you can use the `virtctl` command-line tool to connect to the serial console of a running virtual machine. The installation of the `virtctl` command line tool is documented in xref:../../virt/getting_started/virt-using-the-cli-tools.adoc#installing-virtctl_virt-using-the-cli-tools[Installing virtctl], and the usage is documented in xref:../../virt/managing_vms/virt-accessing-vm-consoles.adoc#serial-console_virt-accessing-vm-consoles[Connecting to the serial console by using virtctl].
|
|
+
|
|
Take into account the following considerations:
|
|
|
|
** The clients must be able to access the API server.
|
|
** The clients must have access credentials for the cluster.
|
|
** The API server must be able to handle the traffic load.
|
|
** The serial connection is expected to disconnect during live migration of a VM to another node.
|
|
** Using the serial console allows only a single connection per VM at a time.
|
|
|
|
|
|
[id="vnc-console_virt-accessing-vm-consoles"]
|
|
== Connecting to the VNC console
|
|
|
|
You can connect to the Virtual Network Computing (VNC) console of a VM by using the {product-title} web console or the `virtctl` command-line tool.
|
|
|
|
:context: vnc-console
|
|
include::modules/virt-connecting-to-vm-console-web.adoc[leveloffset=+2]
|
|
include::modules/virt-connecting-vm-virtctl.adoc[leveloffset=+2]
|
|
include::modules/virt-temporary-token-VNC.adoc[leveloffset=+2]
|
|
|
|
[role="_additional-resources"]
|
|
.Additional resources
|
|
* xref:../../virt/about_virt/virt-architecture.adoc#virt-about-ssp-operator_virt-architecture[About the Scheduling, Scale, and Performance (SSP) Operator]
|
|
|
|
include::modules/virt-cluster-role-VNC.adoc[leveloffset=+3]
|
|
:context: virt-accessing-vm-consoles
|
|
|
|
[id="serial-console_virt-accessing-vm-consoles"]
|
|
== Connecting to the serial console
|
|
|
|
You can connect to the serial console of a virtual machine by using the {product-title} web console or the `virtctl` command-line tool.
|
|
|
|
[NOTE]
|
|
====
|
|
Running concurrent VNC connections to a single virtual machine is not currently supported.
|
|
====
|
|
|
|
:context: serial-console
|
|
include::modules/virt-connecting-to-vm-console-web.adoc[leveloffset=+2]
|
|
include::modules/virt-connecting-vm-virtctl.adoc[leveloffset=+2]
|
|
:context: virt-accessing-vm-consoles
|
|
|
|
[id="desktop-viewer_virt-accessing-vm-consoles"]
|
|
== Connecting to the desktop viewer
|
|
|
|
You can connect to a Windows virtual machine (VM) by using the desktop viewer and the Remote Desktop Protocol (RDP).
|
|
|
|
:context: desktop-viewer
|
|
include::modules/virt-connecting-to-vm-console-web.adoc[leveloffset=+2]
|
|
:context: virt-accessing-vm-consoles
|