Xen and serial ports access from domU

PDF versionSend to friendPrinter-friendly version

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.

  1. 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 ports
    blacklist 8250
    blacklist 8250_pnp
    blacklist serial_core
    
  2. Configure the vm: in the configuration file for the domU specify the following lines:
    irq = [4]
    ioports = ['3f8-3ff']
    
  3. 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
    
  4. In order to have the correct devices in /dev directory install udev:
    apt-get install udev
    

gathoni

cheap soft cialis pills
generic cialis
and poppers cialis 20mg
cheap cialis

leloalO

payday loans online reviews
payday loans
payday online loans
payday loans online

occab

buy generic cialis 5mg online
buy cialis
canadian generic cialis
cialis coupon

wjpwpkukiwcoznoyrmlwqwpmggynnik

viagra cheap uk order viagra with paypal buy viagra cheapest price buy viagra online without prescription viagra online prescription http://kqcopy.com

kayader

buy 20 mg cialis online
buy generic cialis
cialis pills discount cialis
buy cialis

Triably

buy cialis online without a rx
cialis
order cialis no prescription
buy generic cialis

Obsen

viagra 007
cheap viagra online
plant viagra 6800mg
buy cheap viagra

bouch

cialis vs viagra vs levitra
buy viagra online
generico do viagra
viagra online

http://levitrarrr.com - levitra 9558zk

egvrgsle

payday loans no credit check pay day pay day quick payday loan

utiff

cialis pills cheap
online cialis
cialis pills over the counter
generic cialis

viagra commercial

generic sildenafil usa http://genericviagrabsn.com otc viagra http://genericviagrabsn.com >generic viagra pills purpose viagra canadian viagra
canadian pharmacy online http://www.sildenafilbsn.com >Generic Drugs Without Prescription honour
generic cialis http://cialisbsn.com buy generic cialis http://cialisbsn.com >buy generic cialis shall cialis daily use cialis drug

gaferse

personal credit loans
loans online
payday loan application
loans online