PLEASE: indicate in GUI for Serial HW config that there's another option (or just fix it!)

MrPete

Active Member
Aug 6, 2021
125
62
33
67
I just wasted hours trying to get a serial port to work in a VM, when the real issue was ProxMox misconfig (by default).

The ProxMox gui configures serial ports as sockets. I don't know where it DOES work, but it does NOT work if a VM needs to access a device on a serial port (UPS, modem, terminal, etc etc...)

On the command line, I now know the following is the correct answer: qm set <vmid> -serial /dev/ttyXX

I had no idea this was an issue, nor possible!

Why not, at minimum, indicate something about this in the GUI dialog box? Or a link to documentation on this (which doesn't appear to exist yet.) Or even allow this configuration in the GUI?
 
hi,

Proxmox VE, or PVE (but not ProxMox :) )

I don't know where it DOES work, but it does NOT work if a VM needs to access a device on a serial port (UPS, modem, terminal, etc etc...)

On the command line, I now know the following is the correct answer: qm set <vmid> -serial /dev/ttyXX

at the moment passing real serial devices for VMs is possible only through the API with root@pam (qm command line tool uses the API)

Why not, at minimum, indicate something about this in the GUI dialog box? Or a link to documentation on this (which doesn't appear to exist yet.) Or even allow this configuration in the GUI?
the serial sockets are mainly used for display in VMs. since it's a rather niche option we don't have it on the GUI. although it could make sense to allow that as well.

feel free to make a feature request on our bugtracker

[0]: https://bugzilla.proxmox.com
 
Last edited:
it is also documented (man qm.conf / man qm / admin guide)

Code:
       serial[n]: (/dev/.+|socket)
           Create a serial device inside the VM (n is 0 to 3), and pass through a host serial device (i.e. /dev/ttyS0), or create a unix socket on the
           host side (use qm terminal to open a terminal connection).

               Note
               If you pass through a host serial device, it is no longer possible to migrate such machines - use with special care.

               Caution
               Experimental! User reported problems with this option.
 
  • Like
Reactions: oguz
"not documented" -- as in, from the GUI level.

I think what surprised me about this was that the GUI supports serial ports, so I assumed what the GUI had was the extent of my options.
 

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!