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:
This sets up the serial console
After reboot verify that ttyS0 is listed first in the file
Also, one can check that the kernel is loaded with correct command-line parameters: ttyS0 should be listed last in
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
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: