Serial Ports

OK, I make some tests on a new clean PVE environment;

I install the patch reboot the server, and after that I check if the device files are in /dev/ttyS* - on my server was not there - I wait other opinion about this!

Now, if there are not exist I define them; first I install "setserial" (apt-get install setserial) and after that I set the commands:

setserial /dev/ttyS0 port 0x03f8 irq 4 autoconfig
setserial /dev/ttyS1 port 0x02f8 irq 3 autoconfig

After this, in /dev are listed many tty device files!
I reboot the server and after that I set the my VM to use them (ttyS0 and S1). Restart virtual machine (XP Pro) and test a modem connected on COM1 but until now with no results!

Someone have an ideea what cannot work?
 
i connected a windows XP KVM to the /dev/tty0 with the ../qemu-server/101.conf with:

serial: /dev/tty0

i do not get any connection within windows XP

did i miss anything?

edit: it was /dev/ttyS0 ;)
 
Last edited:
Hi,

I have a telephon system which (unfortunately) I have to connect to my serial port.
I tried the instructions above to connect the serial port with my virtual machine, but I can not get it to work.

I use qemu-server 1.0-14, so I thought this should be new enough to work.
I used to command:
Code:
qm set VMID -serial "/dev/ttyS0,/dev/ttyS1,/dev/ttyS2,/dev/ttyS3"
to get the serial port into my virtual machine.
Was not sure which one I have to use, so I just wrote them all in it.

After Stop and Start of the VM I have one new serial port in the device configuration of windows xp.

But when I try to communicate with the telphon system I get no connection with it.

Any hints would be useful.
Thanks.

bajo
 
try to find the available serial port with:

Code:
proxmox:~# dmesg | grep tty
console [tty0] enabled
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
00:07: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A

Then add

Code:
serial: /dev/ttyS0

to

Code:
/etc/qemu-server/$VMDID.conf

and shutdown/stop, start the VM.
 
hi,

i start getting more and more problems with the device passthrough.

with the serial port i have a very slow connection speed and the installed software does not work as it should.

When i directly plug in a notebook it works as it should? Did someone else experienced this with qemu?

But also a USB-Serial Hub does not work at all.

Is there a known problem with serial ports in general?

charon
 
i replaced the hardware with a physical server and the serial port works like it should be.
there is definately a problem with the serial port passthrough.
i found several bugs reported on the KVM mailiung list but no solution yet.
like mentioned in another thread USB passthrough does not work with all devices.
i would not recommend proxmox with serious hardware passthrough requirements.
 
Has anyone tried serial port passthrough recently?

Is it functional after all?

(Unfortunately I have to virtualize a Win Server which need attachment to a telephone device via serial port)

Thank you for your advice, Holgi
 
Unfortunately no...the serial port can not be redirect...but you can take a USB-COM2 convertor...and it's working! Personal, I test this with a US Robotics COM2 modem!
 
So I use a USB-to-serial converter and attach the usb device as a serial dev to the vm?
Do you know how to invoke the dev as serial? Can you provide the command or line in the vm.conf?

Best regards, Holgi
 
First, stop the virtual machine, attach the USB Convertor, identify him as USB Device and redirect that USB port to your virtual machine. After that, start the VM and...that's all! In windows, install drivers and make necessary settings for your serial device.