1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-11-08 19:26:48 +00:00
webvirtcloud/conf/systemd
catborise d37aa42392 feat(console): a working serial console
The xterm console never connected: socketiod expected a different token
format, its worker had no compute credentials, one global console was
shared by every client and its output broadcast to all of them, and the
Docker image did not run socketiod at all.

- console/tokens.py: one authorize() for noVNC and socketiod; the signed
  token is the only credential, checked at connect time.
- socketiod: one pty worker per client (consolecallback with the
  instance id), one session per VM, a session cap, input and resize
  checked; the parent never opens libvirt. The engine.io same-origin
  check is on.
- consolecallback: opens the console with the compute's credentials and
  exits with a message when it cannot.
- Docker runs socketiod as a runit service; nginx proxies /socket.io/
  with Host and the scheme for the origin check. Supervisor and systemd
  start it as well; WEBVIRTCLOUD_SERIAL_CONSOLE=1 enables it.
- Tests: token and session unit tests, socketiod as a process, and a
  live test that reads SeaBIOS from a wvc-test VM on the TCP and SSH
  hosts.
2026-10-17 19:43:09 +03:00
..
install.sh feat(console): a working serial console 2026-10-17 19:43:09 +03:00
README.md build: run the job worker in every install type 2026-10-14 23:27:57 +03:00
webvirt Silly Mistake fixed 2024-05-28 11:33:40 +02:00
webvirt-cloud.service Ubuntu Service files 2024-05-28 11:22:20 +02:00
webvirt-gstfsd.service conf(gstfsd): show how to allow a remote bind in supervisor and systemd 2026-10-02 23:10:04 +03:00
webvirt-novncd.service Ubuntu Service files 2024-05-28 11:22:20 +02:00
webvirt-socketiod.service feat(console): a working serial console 2026-10-17 19:43:09 +03:00
webvirt-worker.service build: run the job worker in every install type 2026-10-14 23:27:57 +03:00

Ubuntu Service Files

I choose to install this service on Ubuntu 22.04

The process is not fully documented but I wanted to contribute the service files

The file webvirt is beeing installed into /etc/default/webvirt and allows you to easily change the location of the webvirtcloud installation path

The PATH variable being set for these services includes /usr/bin which contains the ssh executable. That is being used by webvirt-cloud and webvirt-novncd

Should the executable be located in another location please adjust the path

The error you should be seeing is "ssh executable not found"

Use one of the two service managers: the installer sets up supervisor (conf/supervisor/webvirtcloud.conf runs the worker); these units are for manual installs without supervisor. Enabling both starts two workers; the second waits for the lease and does nothing.