<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>
<div>Hello,</div>
<div> </div>
<div>I solved similar issue by adding "chmod 666 /dev/ttyUSB0" at host boot.</div>
<div>And I have this in lxc container:</div>
<div>
<div># rfxcom<br/>
lxc.cgroup.devices.allow = c 188:* rwm<br/>
lxc.mount.entry = /dev/ttyUSB0 dev/ttyUSB0 none bind,optional</div>
<div> </div>
</div>
<div>Do not know if it is proper way but it works for me.</div>
<div> </div>
<div>JP</div>
<div>
<div name="quote" style="margin:10px 5px 5px 10px; padding: 10px 0 10px 10px; border-left:2px solid #C3D9E5; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div style="margin:0 0 10px 0;"><b>Envoyé:</b> jeudi 15 octobre 2015 à 15:27<br/>
<b>De:</b> "Serge Hallyn" <serge.hallyn@ubuntu.com><br/>
<b>À:</b> "LXC users mailing-list" <lxc-users@lists.linuxcontainers.org><br/>
<b>Objet:</b> Re: [lxc-users] passthrough of usb 433mHz transceiver</div>
<div name="quoted-content">Start by checking the host's syslog (right after reproducing the failure<br/>
in the container) and look for DENIED messages. Report them here.<br/>
<br/>
Then do<br/>
<br/>
strace -f -ostrace.out whatever-command-you-run-that-fails<br/>
<br/>
in the container. Look at the output of<br/>
<br/>
egrep -e '(EPERM|EACCES)' strace.out<br/>
<br/>
(or send it here)<br/>
<br/>
-serge<br/>
<br/>
Quoting JPS (mailbox@jsierink.nl):<br/>
> thanks for the advice but I'm not very skilled in linux, so eacess<br/>
> or eperm don't ring a bell.<br/>
> Before I used an OpenZV container and that worked fine.<br/>
> Unfortunately Proxmox decided to switch to lxc........<br/>
><br/>
><br/>
><br/>
> Op di, 13 okt 2015 om 3:55 , schreef Serge Hallyn<br/>
> <serge.hallyn@ubuntu.com>:<br/>
> >Don't know anything about it, but I'd try stracing the software<br/>
> >to see whether there are any EACESS or EPERMs or whether there<br/>
> >are any other paths under /dev or /sys which get ENOENT and<br/>
> >should be bind-mounted in.<br/>
> ><br/>
> >Quoting JPS (mailbox@jsierink.nl):<br/>
> >> I have a rfxcom 433 mHz transceiver (<a href="http://www.rfxcom.com/epages/78165469.sf/nl_NL/?ObjectPath=/Shops/78165469/Products/14103" target="_blank">http://www.rfxcom.com/epages/78165469.sf/nl_NL/?ObjectPath=/Shops/78165469/Products/14103</a>).<br/>
> >> It is connected via usb and controls some domotica switches on the<br/>
> >> 433mHz frequency.<br/>
> >><br/>
> >> In the domotica software is shows up as serial device on<br/>
> >>/dev/ttyUSB0<br/>
> >><br/>
> >> I can't get it to work properly in a lxc container running debian<br/>
> >> jessie.<br/>
> >><br/>
> >> I added this to the lxc.conf, but with no luck:<br/>
> >> lxc.cgroup.devices.allow: c 189:* rwm<br/>
> >> lxc.mount.entry: /dev/bus/usb/002 dev/bus/usb/002 none<br/>
> >> bind,optional,create=dir<br/>
> >> lxc.mount.entry: /dev/ttyUSB0 dev/ttyUSB0 none<br/>
> >>bind,optional,create=file<br/>
> >><br/>
> >> Then i gave following command on the host (debian jessie):<br/>
> >> lxc-device add -n 112 /dev/ttyUSB0 /dev/ttyUSB0<br/>
> >><br/>
> >> Now the device shows up in the lxc container, but now the domotica<br/>
> >> software can only transmit signals, not receive.<br/>
> >><br/>
> >> On the host:<br/>
> >> root@server:~# lsusb<br/>
> >> Bus 002 Device 005: ID 0403:6001 Future Technology Devices<br/>
> >> International, Ltd FT232 USB-Serial (UART) ICroot@proxmox:~# ls -l<br/>
> >><br/>
> >> root@server:~/dev/bus/usb/002/005<br/>
> >> crw-rw-r-- 1 root root 189, 132 Oct 10 14:09 /dev/bus/usb/002/005<br/>
> >><br/>
> >><br/>
> >> Any idea how to solve this?<br/>
> >><br/>
> >> Regards, Jasper<br/>
> ><br/>
> >> _______________________________________________<br/>
> >> lxc-users mailing list<br/>
> >> lxc-users@lists.linuxcontainers.org<br/>
> >> <a href="http://lists.linuxcontainers.org/listinfo/lxc-users" target="_blank">http://lists.linuxcontainers.org/listinfo/lxc-users</a><br/>
> ><br/>
> >_______________________________________________<br/>
> >lxc-users mailing list<br/>
> >lxc-users@lists.linuxcontainers.org<br/>
> ><a href="http://lists.linuxcontainers.org/listinfo/lxc-users" target="_blank">http://lists.linuxcontainers.org/listinfo/lxc-users</a><br/>
<br/>
> _______________________________________________<br/>
> lxc-users mailing list<br/>
> lxc-users@lists.linuxcontainers.org<br/>
> <a href="http://lists.linuxcontainers.org/listinfo/lxc-users" target="_blank">http://lists.linuxcontainers.org/listinfo/lxc-users</a><br/>
<br/>
_______________________________________________<br/>
lxc-users mailing list<br/>
lxc-users@lists.linuxcontainers.org<br/>
<a href="http://lists.linuxcontainers.org/listinfo/lxc-users" target="_blank">http://lists.linuxcontainers.org/listinfo/lxc-users</a></div>
</div>
</div>
</div></div></body></html>