[SOLVED] How to pass host machine serial port to VM?

ahmeterol

New Member
Nov 25, 2022
3
1
3
Hello,

In our host system, there is serial port used for communication with other devices. We are not using it serial port as console. We want to able reach this serial port from VM, but could not figure out how to do it. All the forum posts are related to console.

Here is the serial device /dev/ttyS0 that we want to pass to VM.

Code:
root@proxmox1:~# dmesg | grep tty
[    0.000000] printk: console [tty0] enabled
[    0.713419] 00:02: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200) is a 16550A

I used qm set command to add serial port to VM(ID=103)

Code:
qm set 103 -serial1 /dev/ttyS0

stopped the VM and started again. However, at the startup it gives the following error.
Code:
unable to find a serial interface

Here is details of device.
Code:
root@proxmox1:~# ls -l /dev/ttyS0
crw-rw---- 1 root dialout 4, 64 Nov 26 00:45 /dev/ttyS0

Any help is very appreciated.
 
Hello again, i searched all Google sites and forums. Still could not find solution.
Any help is crucial for us
 
Last edited:
I finally figure that out, even if it gives the error "unable to find a serial interface" in console, VM is just working fine. You can connect the VMs with noVNC option.
 
  • Like
Reactions: leesteken

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!