How to passthrough modem to vm?

akong

Well-Known Member
Oct 15, 2018
87
1
48
47
Hello,
My proxmox is 7.2.4. I has installed rs232 card and it's use pcie interface.I has enable iommu for pcie-passthrough.
The rs232 com port is connect modem.In my vm system has found rs232 card.But it's always can't found modem.
How to setup it?
 
afaik, you need to install/add manually peripheral. serial isn't hotplug.
Thanks a lot.
I has add serial 0 and 1 and add pcie to conf:
agent: 1
boot: order=ide0;ide2;net0
cores: 2
hostpci0: 0000:03:00
hostpci1: 0000:04:00
ide0: local-lvm:vm-501-disk-0,size=32G
ide2: none,media=cdrom
machine: pc-i440fx-6.0
memory: 3072
name: FaxServer
net0: rtl8139=8E:35:36:38:2C:63,bridge=vmbr0,firewall=1
numa: 0
onboot: 1
ostype: wxp
parent: Test
scsihw: virtio-scsi-pci
serial0: /dev/ttyS6
serial1: /dev/ttyS7
smbios1: uuid=26fa3503-87b8-4197-a908-8a73034b9479
sockets: 1
usb0: host=a1a2:2001
usb1: host=04da:1680
usb2: host=0572:1232
vmgenid: 4059d9f5-bb49-4988-a6da-ad7bcde7dee4
I has use dmesg | grep tty this command to check ttySX
root@pve100:/dev# dmesg | grep tty
[ 0.250671] printk: console [tty0] enabled
[ 0.761515] 00:02: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200) is a 16550A
[ 0.767589] 0000:03:00.0: ttyS4 at I/O 0x50c0 (irq = 18, base_baud = 115200) is a XR16850
[ 0.772406] 0000:03:00.0: ttyS5 at I/O 0x50c8 (irq = 18, base_baud = 115200) is a XR16850
[ 0.777359] 0000:04:00.0: ttyS6 at I/O 0x40c0 (irq = 19, base_baud = 115200) is a XR16850
[ 0.782132] 0000:04:00.0: ttyS7 at I/O 0x40c8 (irq = 19, base_baud = 115200) is a XR16850
[ 11.928479] systemd[1]: Created slice system-getty.slice.
The vm host can found pcie rs232 com port.But it's can't found modem.
 
Sorry,it's my problem.My rs232 linux can found it.Bit it's can't output to modem.Maybe is card break.