Serial Port Assignment to KVM

Ammo

New Member
Jun 3, 2011
8
0
1
I am running v1.8 of Proxmox with several KVM and OpenVZ containers. In one KVM I have a windows XP client which uses a USB to Serial Connector. I have used this successfully to log data from my Solar System on my roof with Proxmox and XP.

My issue is when i power off my Host and repower it on the com port which appears in Windows XP can be either Com Port 3 or Com Port 4. The device is always detected in the KVM but causes issues with my software running on the XP client as its not always on the same port each time. I would like to fix the Com Port used by the KVM client. How can i do that via the conf file for the VIM?

Here is my current Conf file for the XP VIM
name: SolarXP
ide2: none,media=cdrom
vlan0: virtio=EE:32:BA:02:58:4B
bootdisk: virtio0
ostype: wxp
memory: 2048
sockets: 1
boot: cad
freeze: 0
cpuunits: 1000
acpi: 1
kvm: 1
onboot: 1
cores: 1
hostusb: 067b:2303
ide0: local:102/vm-102-disk-1.raw

Here is the output from lsusb from the host.
e-commercedev:~# lsusb
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 004: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

The Device number for the Prolific Technology Serial Port seems to change on reboot of the hosts sometimes as well. I am not unplugging the device at all.

here is the output of
e-commercedev:~# dmesg | grep tty
console [tty0] enabled
usb 1-1.2: pl2303 converter now attached to ttyUSB0
pl2303 ttyUSB0: pl2303 converter now disconnected from ttyUSB0
usb 1-1.2: pl2303 converter now attached to ttyUSB0
pl2303 ttyUSB0: pl2303 converter now disconnected from ttyUSB0
usb 1-1.2: pl2303 converter now attached to ttyUSB0
pl2303 ttyUSB0: pl2303 converter now disconnected from ttyUSB0
usb 1-1.2: pl2303 converter now attached to ttyUSB0
pl2303 ttyUSB0: pl2303 converter now disconnected from ttyUSB0
usb 1-1.2: pl2303 converter now attached to ttyUSB0
pl2303 ttyUSB0: pl2303 converter now disconnected from ttyUSB0
usb 1-1.2: pl2303 converter now attached to ttyUSB0
pl2303 ttyUSB0: pl2303 converter now disconnected from ttyUSB0
usb 1-1.2: pl2303 converter now attached to ttyUSB0
pl2303 ttyUSB0: pl2303 converter now disconnected from ttyUSB0
usb 1-1.2: pl2303 converter now attached to ttyUSB0
pl2303 ttyUSB0: pl2303 converter now disconnected from ttyUSB0
usb 1-1.2: pl2303 converter now attached to ttyUSB0
pl2303 ttyUSB0: pl2303 converter now disconnected from ttyUSB0
usb 1-1.2: pl2303 converter now attached to ttyUSB0
pl2303 ttyUSB0: pl2303 converter now disconnected from ttyUSB0

Any help appreciated.
 
Last edited:

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!