[SOLVED] How to reconfigure PVE installed with the graphical installer to use a serial console ?

aoand

New Member
May 6, 2024
1
0
1
I have installed the latest Proxmox VE 8.2.2 using graphical installer, but after installation I'd like to use serial console (/dev/ttyS0). Unfortunately, the serial line is dead. On the other hand, if I install PVE using that same serial console, the console is active: kernel messages are printed on it and it is possible to login over the console.

How can I reconfigure a PVE installed with the graphical installer so that it uses the serial console instead of the graphical sub-system ?

On a related note: I was not able to access some advanced installer features when installing over serial console: the screen width was too small for advanced ZFS parameters to be seen. That is why I had to revert to graphical installer.

Solved: at least, when using systemd-boot (which is the default option for zfs with EFI), just add the following parameters:
console=tty0 console=ttyS0,115200n8 to the file /etc/kernel/cmdline and run proxmox-boot-tool refresh.
This sets up the serial console /dev/ttyS0 as the "primary" one (with all messages being sent to it), and "VGA" console as the secondary one. Login prompt will be displayed on both, and some kernel output will be sent to both consoles too.
After reboot verify that ttyS0 is listed first in the file /sys/class/tty/console/active
Also, one can check that the kernel is loaded with correct command-line parameters: ttyS0 should be listed last in /proc/cmdline
More details in section 3.13.5 in Proxmox docs: https://pve.proxmox.com/pve-docs/pve-admin-guide.html#sysboot
and in systemd docs: http://0pointer.de/blog/projects/serial-console.html
 
Last edited:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!