Serial Port pass through

powder8

Member
Apr 25, 2021
12
0
6
48
Hy,

I need a serial port in a VM.

root@proxmox:~# dmesg | grep tty [ 0.167574] printk: console [tty0] enabled [ 0.522816] 0000:00:16.3: ttyS4 at I/O 0xf0a0 (irq = 19, base_baud = 115200) is a 16550A [ 5.113878] systemd[1]: Created slice system-getty.slice. root@proxmox:~#

So I have a serial port at ttyS4 ?! But if I add a serial port to the vm I only have port 0-3

44679524jt.png


Can please anyone give me a hint how to get a serial port in the vm?!

Thanks
 
I think that Add Serial Port adds a virtual serial port (of which there can be four), which is not what you want.
I expect that adding serial0: /dev/ttyS4 to the VM configuration file allows the VM to use the physical serial port (via the first virtual serial port with number 0).