1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-11-08 11:16:47 +00:00
webvirtcloud/conf/systemd
catborise 1547e58e55 fix(console): disable the unauthenticated serial console by default
socketiod does not validate the console token, keeps a single global PTY
and broadcasts its output to every connected client, so anyone who can
reach port 6081 can read and write a serial console that someone opened.
It is also broken for legitimate users, since console/views.py now writes
signed tokens that socketiod cannot parse.

Until it is rewritten, turn the serial console off by default:

- Add SERIAL_CONSOLE_ENABLED = False to the settings template; installs
  whose settings.py lacks it are treated as disabled.
- The console view shows an error instead of the xterm page for pty
  consoles while the setting is off.
- socketiod refuses to start unless SERIAL_CONSOLE_ENABLED is True.
- Supervisor: autostart=false for socketiod; drop -d (debug) from the
  supervisor and systemd definitions; fix the systemd unit description;
  conf/systemd/install.sh no longer suggests enabling socketiod.
- README: stop opening port 6081 and document how to enable the serial
  console on a trusted network.
2026-10-02 17:22:20 +03:00
..
install.sh fix(console): disable the unauthenticated serial console by default 2026-10-02 17:22:20 +03:00
README.md Ubuntu Service files 2024-05-28 11:22:20 +02: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 Ubuntu Service files 2024-05-28 11:22:20 +02:00
webvirt-novncd.service Ubuntu Service files 2024-05-28 11:22:20 +02:00
webvirt-socketiod.service fix(console): disable the unauthenticated serial console by default 2026-10-02 17:22:20 +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"