From 77a5013fd341a161169a0c8a301f5ee84bb4f926 Mon Sep 17 00:00:00 2001 From: catborise Date: Sun, 8 Nov 2026 17:48:11 +0300 Subject: [PATCH] docs(readme): a console token needs a signed-in session The serial console refuses a request without a signed-in session before it reads the token, and noVNC accepts a token only in its user's session: the token alone does not open a console. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01Kk4h2TcUiaWmU5MUszYSea --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f6621236..fe1d039f 100644 --- a/README.md +++ b/README.md @@ -484,7 +484,7 @@ A VM without graphics (no `` device, a ``) opens a - The VM page's Settings → Console switches a shut-off VM between VNC and serial (Console type). A new VNC console takes the form's other fields; on a TCP or TLS compute it needs Listen on: All interfaces (SSH and socket computes reach a localhost console). - The guest must use its serial port: a login prompt needs `systemctl enable --now serial-getty@ttyS0`, boot messages need the kernel parameter `console=ttyS0,115200`. The console shows only what the guest writes after it opens; press Enter for a new prompt. - socketiod listens on 127.0.0.1:6081; the page reaches it through nginx's `/socket.io/` location on the panel's own address. -- It accepts the console page's signed token, as noVNC does: whoever gets that token within 120 s gets the console. An open console closes within 10 s once its user loses access to the VM. +- It accepts the console page's signed token, which expires after 120 s, from a signed-in session (noVNC wants the session of the token's user). An open console closes within 10 s once its user loses access to the VM. - One console per VM, at most 20 at a time; a second one is refused with the reason, except a superuser's, which takes the console over. - novncd and socketiod log to the journal (`journalctl -u webvirt-novncd -u webvirt-socketiod`) or, in Docker, to `docker logs`: a console that was refused or could not connect says why there.