Proxmox VE 8 and add serial port to VM, - console problem


Oct 13, 2018
When I create a Linux VM on Proxmox VE 8, for example debian 12 and then add the serial port to the VM with the command
qm set 101 -serial1 /dev/ttyS0

everything went fine and the serial port is added and working.
The problem occurs when I want to connect to the VM using the Console button.
This will end up with error 1006 unable to find serial interface
if I use the console item in the VM menu everything is OK.
The serial port is not supposed to be used for connecting the terminal at all, so console communication should not be directed to it.

Where is the problem and how to solve it?

You attached the ttyS0 of the host to the VM.

If you want to make use of a serial connection for the console, add a serial device of the type socket and then make sure that the display is set to "Serial Terminal X" where X matches the ID of the serialX device in the config.
I want to have a serial port available in the VM for connecting a measuring device, not for console communication.
I added the serial port with the command
qm set 101 -serial1 /dev/ttyS0
I see it in hardware : Serial port (serial 1) //dev/ttyS0

However, when I press the Console button, it tries to establish communication through the serial port
The console in the menu works correctly


Deleted the VM, created a new one and the same result, as soon as I add a serial port to the VM, the button-launched console redirects to the serial port even though the serial port is not pointing to a socket
aah okay. You run into a bug because we don't check closely enough how the serial port is configured. You could override the default console in Datacenter -> Options -> Console viewer, to HTML5 (noVNC) until we have a new version out there that checks better how the serial port for the VM is configured.


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!