- The serial console is a text connection to the guest. It shows output as the guest prints it and sends keyboard input to the guest. Talos also records the output, so it can be read later.
- The VNC console shows the guest’s screen.
<vm-name> with the name of the virtual machine and <host-ip> with the IP address of its host.
Before you begin
Both consoles require:- The Admin role in your
talosconfig. - A virtual machine. To create one, see Run your first virtual machine.
Use the serial console
The serial console requires:talosctlon macOS or Linux. The serial console does not work on Windows.- A guest that writes to a serial port. The Talos Linux
metalISO for arm64 does this by default. The amd64 ISO does this only with theconsole=ttyS0kernel argument, as shown in Run your first virtual machine.
Step 1: Turn on the serial console
The serial console is off by default. The following steps turn it on.-
Run the following command to create
console.yaml, a patch that turns on the serial console. Replace<vm-name>in the file before applying it: -
Apply the patch to the host:
If the virtual machine is running, the guest restarts, because Talos replaces the virtual machine to add the serial port.
Step 2: Attach to the live console
The live console is available only while the virtual machine is running, and only one session can attach to it at a time. The following steps attach to the console and detach from it.-
Attach to the console:
The console shows output from the moment it attaches and sends all keyboard input, including
Ctrl+C, to the guest. If the guest has finished booting, the console can stay blank until the guest prints something new. -
To detach, press
Ctrl+]. The virtual machine keeps running.
Step 3: Read past console output
Talos keeps the most recent console output, up to 2 MiB, even after the virtual machine stops, restarts, or is removed. To read it, run:Use the VNC console
The VNC console requires:- A VNC viewer on your computer.
- A guest that writes to a display, such as the Talos Linux ISO for amd64.
Step 1: Turn on the VNC console
The VNC console is off by default. The following steps turn it on.-
Run the following command to create
vnc.yaml, a patch that turns on the VNC console. Replace<vm-name>in the file before applying it: -
Apply the patch to the host:
If the virtual machine is running, the guest restarts, because Talos replaces the virtual machine to add the display.
Step 2: Connect a VNC viewer
The following steps open a local endpoint for the VNC console and connect a viewer to it.-
Open the endpoint:
The command prints a local address, such as
127.0.0.1:5900, and keeps running. By default, it picks a free port. To choose the port, add--port <port>. - Connect a VNC viewer to the printed address and port. Do not use a VNC display number. Only one viewer can connect at a time.
-
To stop, press
Ctrl+Cin the terminal wheretalosctl hypervisor vncruns.