[lxc-users] passthrough of usb 433mHz transceiver

JPS mailbox at jsierink.nl
Tue Oct 13 06:54:08 UTC 2015

I have a rfxcom 433 mHz transceiver 
It is connected via usb and controls some domotica switches on the 
433mHz frequency.

In the domotica software is shows up as serial device on /dev/ttyUSB0

I can't get it to work properly in a lxc container running debian 

I added this to the lxc.conf, but with no luck:
lxc.cgroup.devices.allow: c 189:* rwm
lxc.mount.entry: /dev/bus/usb/002 dev/bus/usb/002 none 
lxc.mount.entry: /dev/ttyUSB0 dev/ttyUSB0 none bind,optional,create=file

Then i gave following command on the host (debian jessie):
lxc-device add -n 112 /dev/ttyUSB0 /dev/ttyUSB0

Now the device shows up in the lxc container, but now the domotica 
software can only transmit signals, not receive.

On the host:
root at server:~# lsusb
Bus 002 Device 005: ID 0403:6001 Future Technology Devices 
International, Ltd FT232 USB-Serial (UART) ICroot at proxmox:~# ls -l

root at server:~/dev/bus/usb/002/005
crw-rw-r-- 1 root root 189, 132 Oct 10 14:09 /dev/bus/usb/002/005

Any idea how to solve this?

Regards, Jasper
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20151013/55e718eb/attachment.html>

More information about the lxc-users mailing list