Forked from yuna0x0/pve_xtermjs_for_ubuntu_vm.txt
Last active
September 10, 2023 04:24
-
-
Save BoyanXu/3dc2315c70900e6b066cc28376181987 to your computer and use it in GitHub Desktop.
Proxmox VE xterm.js (Serial Terminal) for Arch Linux VM
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Add a virtual serial port to the VM using PVE Web GUI and restart the VM | |
2. Config grub | |
When using GRUB with a generated grub.cfg, edit /etc/default/grub and enable serial input and output support: | |
/etc/default/grub | |
... | |
GRUB_TERMINAL_INPUT="console serial" | |
... | |
GRUB_TERMINAL_OUTPUT="gfxterm serial" | |
... | |
Next add the GRUB_SERIAL_COMMAND variable and set the options for the serial connection. For COM1 (/dev/ttyS0) with baud rate of 115200 bit/s: | |
/etc/default/grub | |
... | |
GRUB_SERIAL_COMMAND="serial --unit=0 --speed=115200" | |
3. Enable and start the virtual serial port on VM, change tty number as needed (Reference: | |
$ sudo systemctl enable serial-getty@ttyS0.service | |
$ sudo systemctl start serial-getty@ttyS0.service | |
4. Done! You can now select xterm.js in the PVE Web GUI |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To enable auto-reszie:
For fish shell:
resize
to manually resize serial window size.