Connect to a qube's console

Original forum link
https://forum.qubes-os.org/t/19079
Original poster
awokd, invalid-email-address
Editors
deeplow
Created at
2023-06-03 13:21:13
Last wiki edit
2023-08-14 20:30:58
Revisions
2 revisions
Posts count
1
Likes count
1
Tags
troubleshooting

In some cases it's not possible to use a standard graphical terminal emulator to interact with a VM. In this case, "serial console" access is still available using two tools.

qvm-console-dispvm

Usage: qvm-console-dispvm VMNAME

Launches a DispVM connected to the VM's console, using the qubes.ShowInTerminal RPC service. This provides a full-featured console.

At the time of writing this command contains a bug whose fix is waiting on release, therefore it may be necessary to use the following.

xl console

Usage: sudo xl console VMNAME

Uses Xenlight to directly access the VM console from dom0. For security reasons this console is deliberately limited in what it can display.

Line-by-line text will work fine, but if a Curses-style pseudo-graphical-interface comes up the output will be garbled and you will need a tool like asciinema to untangle it. You may need to substitute all dots followed by [, ], ( or ) to the ASCII ESC (0x1b) character, a method that could have false positives.


This document was migrated from the qubes-community project