Hi guys,
I searched over the internet and on this forum, without finding the good way.
Sorry for this long thread, that's my first one for proxmox ;-)
Here is what I have:
- a nuc intel with proxmox and a RFXcom + Conbee ii plugged on usb 3.0 (no usb 2...)
- I have a container lxc ubuntu for my domoticz
- I cannot make the usb work inside my lxc :-(
Here is what I have on my nuc:
And here is what I have for my container lxc:
Not enough cause I cannot see my devices in domoticz
I also tried:
But I still cannot see my devices in domoticz ...
I tried a lot of stop/start of my lxc and restart of my nuc, no way...
Please help me, I think I'm mad ?
I miss something, but don't find what, sure some of you already encountered this kind of problem ^^
Thanks a lot.
TCS
I searched over the internet and on this forum, without finding the good way.
Sorry for this long thread, that's my first one for proxmox ;-)
Here is what I have:
- a nuc intel with proxmox and a RFXcom + Conbee ii plugged on usb 3.0 (no usb 2...)
- I have a container lxc ubuntu for my domoticz
- I cannot make the usb work inside my lxc :-(
Here is what I have on my nuc:
Bash:
# lsusb
Bus 001 Device 003: ID 1cf1:0030 Dresden Elektronik ZigBee gateway [ConBee II]
Bus 001 Device 002: ID 0403:6001 Future Technology Devices International, Ltd FT232 Serial (UART) IC
# nano /etc/udev/rules.d/49-usb-serial.rules
KERNEL=="ttyACM[0-9]*", SUBSYSTEM=="tty", ATTRS{idVendor}=="1cf1", ATTRS{idProduct}=="0030", SYMLINK="ttyConbee", OWNER="root", GROUP="dialout", MODE="0666", RUN+="/usr/bin/chmod o+rw /dev/ttyConbee"
KERNEL=="ttyUSB[0-9]*", SUBSYSTEMS=="usb", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", SYMLINK="ttyRFXcom", OWNER="root", GROUP="dialout", MODE="0666", RUN+="/usr/bin/chmod o+rw /dev/ttyRFXcom"
# is it subsystem or sbsystems?
# nano /etc/pve/lxc/xxx.conf
lxc.cgroup.devices.allow: c 166:* rwm
lxc.cgroup.devices.allow: c 188:* rwm
lxc.mount.entry: /dev/ttyConbee dev/ttyConbee none bind,optional,create=file
lxc.mount.entry: /dev/ttyRFXcom dev/ttyRFXcom none bind,optional,create=file
# ls -l /dev/tty* /dev/bus/usb/001/0*
crw-rw-rw- 1 root dialout 188, 0 Dec 20 15:28 ttyUSB0
crw-rw-rw- 1 root dialout 166, 0 Dec 20 15:28 ttyACM0
lrwxrwxrwx 1 root root 7 Dec 20 15:28 ttyConbee -> ttyACM0
lrwxrwxrwx 1 root root 7 Dec 20 15:28 ttyRFXcom -> ttyUSB0
# ls -la /dev/serial/by-id/
lrwxrwxrwx 1 root root 13 Dec 20 15:28 usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2471148-if00 -> ../../ttyACM0
lrwxrwxrwx 1 root root 13 Dec 20 15:28 usb-RFXCOM_RFXtrx433_A1Z58RWG-if00-port0 -> ../../ttyUSB0
And here is what I have for my container lxc:
Bash:
$ lsusb
Bus 001 Device 003: ID 1cf1:0030 Dresden Elektronik ZigBee gateway [ConBee II]
Bus 001 Device 002: ID 0403:6001 Future Technology Devices International, Ltd FT232 Serial (UART) IC
$ sudo ls -l /dev/
crw-rw-rw- 1 nobody nogroup 166, 0 déc. 20 15:28 ttyConbee
crw-rw-rw- 1 nobody nogroup 188, 0 déc. 20 15:28 ttyRFXcom
#==> why is it nobody / nogroup ?
$ sudo ls -la /dev/serial/by-id/
ls: cannot access '/dev/serial/by-id/': No such file or directory
$ groups xxx
xxx : xxx dialout
$ GCFFlasher_internal -l
GCFFlasher V3_17 (c) dresden elektronik ingenieurtechnik gmbh
Path | Vendor | Product | Serial | Type
-----------------+--------+---------+------------+-------
# I should see my both devices !?
I also tried:
Bash:
$ mkdir -p /run/udev/data/
cd /run/udev/data/
$ echo "E:ID_VENDOR_ID=1cf1
E:ID_MODEL_ID=0030" > c166\:0
$ echo "E:ID_VENDOR_ID=0403
E:ID_MODEL_ID=6001" > c188\:0
$ GCFFlasher_internal -l
GCFFlasher V3_17 (c) dresden elektronik ingenieurtechnik gmbh
Path | Vendor | Product | Serial | Type
-----------------+--------+---------+------------+-------
/dev/ttyUSB0 | 0x0403 | 0x6001 | | Generic FTDI
/dev/ttyACM0 | 0x1CF1 | 0x0030 | | ConBee II
ls -lah /dev/ttyACM0 /dev/ttyUSB0
crw-rw---- 1 nobody nogroup 166, 0 déc. 20 13:24 /dev/ttyACM0
crw-rw---- 1 nobody nogroup 188, 0 déc. 20 12:25 /dev/ttyUSB0
But I still cannot see my devices in domoticz ...
I tried a lot of stop/start of my lxc and restart of my nuc, no way...
Please help me, I think I'm mad ?
I miss something, but don't find what, sure some of you already encountered this kind of problem ^^
Thanks a lot.
TCS
Last edited: