Howto use the serial ports (/dev/ttySX) from a xen domU
I've recently migrated a zabbix server from a standalone machine to a xen vm.
Attached to serial port of the old server there was a GSM modem used by smstools to send via SMS some of zabbix alarms.
So I wanted to use the same modem with the new domU zabbix server: this is my little howto to get a xen domU access serial ports.
-
First of all we have to avoid the dom0 to access the serial ports of the machine:
with debian create a new file (eg.serial-blacklist) in /etc/modprobe.d/ specifying the blacklisting for 3 kernel modules related to serial portsblacklist 8250 blacklist 8250_pnp blacklist serial_core
-
Configure the vm: in the configuration file for the domU specify the following lines:
irq = [4] ioports = ['3f8-3ff']
-
On the domU filesystem verify the availability of the kernel modules in /lib/modules/`uname -r`/kernel/drivers/serial:
8250.ko 8250_pci.ko 8250_pnp.ko jsm serial_core.ko serial_cs.ko
-
In order to have the correct devices in /dev directory install udev:
apt-get install udev

same trouble
hi, I have the same trouble with Xen 5.5
I have 1 Windows 2003 Server where have to attach a serial modem: how can I pass the serail port from the phisical node to the virtual one? Your solution is valid only under an o.s. linux? please answer me, thank you in advance, bye
Andrea
same problem here
Also a Windows 2003 Server system as domU in xen environment. Everything works fine, but there is NO connection to the device connected to ttyS0/COM1. :-(
Any help is appreciated
Marc