Skip to content

Instantly share code, notes, and snippets.

@edisonlee55
Last active March 29, 2024 07:38
Show Gist options
  • Star 24 You must be signed in to star a gist
  • Fork 7 You must be signed in to fork a gist
  • Save edisonlee55/7fdd61ea9ed9aba68e2dd02f6ff4814a to your computer and use it in GitHub Desktop.
Save edisonlee55/7fdd61ea9ed9aba68e2dd02f6ff4814a to your computer and use it in GitHub Desktop.
Proxmox VE xterm.js (Serial Terminal) for Ubuntu VM
1. Add a virtual serial port to the VM using PVE Web GUI and restart the VM
2. Enable and start the virtual serial port on VM, change tty number as needed (Reference: https://askubuntu.com/a/621209/838946)
$ sudo systemctl enable serial-getty@ttyS0.service
$ sudo systemctl start serial-getty@ttyS0.service
3. Done! You can now select xterm.js in the PVE Web GUI
@meanii
Copy link

meanii commented Jul 27, 2023

root@pve1:~# systemctl enable serial-getty@ttyS0.servic
Created symlink /etc/systemd/system/getty.target.wants/serial-getty@ttyS0.servic.service → /lib/systemd/system/serial-getty@.service.

root@pve1:~# systemctl start serial-getty@ttyS0.servic
A dependency job for serial-getty@ttyS0.servic.service failed. See 'journalctl -xe' for details.

@ifm90
Copy link

ifm90 commented Oct 10, 2023

root@pve1:~# systemctl start serial-getty@ttyS0.servic A dependency job for serial-getty@ttyS0.servic.service failed. See 'journalctl -xe' for details.

same issue here, ubuntu 22.04.3 jammy live server fresh install
edit: opps turns out i typed 50.service instead of S0.service
@meanii probably missed the 'e' after servic

@souhaiebtar
Copy link

@edisonlee55 in single command

sudo systemctl enable --now serial-getty@ttyS0.service

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment