How to passthrough com port on xcp-ng

Is it possible to passthrough com 1 on xcp-ng? I need it for a vm that needs to connect to a device that only uses this port.

Do you mean a serial port?

Yes, it is the serial port of the host

In XO ho to the host then the advanced tab and there you can choose devices to pass through.

Sorry for the ignorance. Which of the following is the device that correspond to the serial port in my case?

This is a Dell Inc. PowerEdge R515 server

I don’t have Dell handy to test but if you do some Google searching for the PCIe device name and how to use lspci to find devices that should get you going in the right direction.

I had the same problem with a proxmox node that I’m using and the solution to this issue was solved by adding the serial port using the command qm set 102 --serial0 /dev/ttyS0. I thought that the same thing could be done here using xe or xl command; I just don’t know how to achieve it in xcp-ng. The windows 11 vm shows a com1 port that has the same irq and i/o range numbers than the host; is this suppose to work?

Another way to solve this would be to get a USB serial port and pass that USB device to the VM.