Skip to content

Instantly share code, notes, and snippets.

@Oddly
Last active October 22, 2024 18:40
Show Gist options
  • Save Oddly/efdd7bb9dba8cb85d48d28a761f8eef2 to your computer and use it in GitHub Desktop.
Save Oddly/efdd7bb9dba8cb85d48d28a761f8eef2 to your computer and use it in GitHub Desktop.
Setup a tty on Debian VM on Proxmox for xterm.js
  1. Edit the /etc/default/grub file. Append the console=ttyS0 statement to the grub config file at the end of the GRUB_CMDLINE_LINUX line: console=tty0 console=ttyS0,115200

  2. Create the grub.cfg file: BIOS: grub2-mkconfig -o /boot/grub2/grub.cfg EFI: grub2-mkconfig -o /boot/efi/EFI/centos/grub.cfg

  3. Enable a getty login service for ttyS0 with the systemctl command: systemctl enable [email protected]

  4. Add a Serial port (serial0) to the VM in the "Hardware" tab.

  5. Shut down and start the server back up

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