how to disable console

hassoon

Active Member
Jan 27, 2020
72
1
28
64
Dear All
I would like to raise the question on a certain option to suppress or disable console login screen and enable it via the web interface of via ssh at a later stage.
this is useful in case any local admins wouldnt tamper any configuration.
I have seen this in many other distros but didnt find it yet in PVE.
any suggestion on how to get this dont.
or maybe redirect the output to serial console rather than VGA.
 
Try echo 0 | tee /sys/class/vtconsole/vtcon*/bind to close all consoles. Use echo '1' >/sys/class/vtconsole/vtcon0/bind to restore one console. I use it before GPU passthrough and after shut down of that VM to get a console on Proxmox again.

For serial console with GRUB (note that Proxmox might use systemd-boot instead) I add console=ttyS0 to GRUB_CMDLINE_LINUX and add GRUB_TERMINAL=serial.
 

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!