I am struggling to get a USB infrared serial device to work with an unprivileged LXC container running TurnKey GNU/Linux 16.1 (Debian 10/Buster).
The device is an infrared serial converter - the only relevant info is propably that it uses an FT232 chip.
I created the file
and did
in
After restarting the container, i can see the device inside my container:
Great! But unfortunately I cannot read from this device, not even with sudo:
I already tried to
This looks like I am really close to my goal but I am missing some small detail to make it fully work.
What else could I try?
The device is an infrared serial converter - the only relevant info is propably that it uses an FT232 chip.
Code:
lsusb
Bus 001 Device 002: ID 0403:6001 Future Technology Devices International, Ltd FT232 Serial (UART) IC
ls -l /dev/bus/usb/001/002
crw-rw-r-- 1 root root 189, 1 Mar 24 20:11 /dev/bus/usb/001/002
I created the file
/etc/udev/rules.d/98-irhead.rules
with this content:
Code:
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", SYMLINK+="irhead", MODE="0660", GROUP="dialout
service udev reload && udevadm trigger
.in
/etc/pve/lxc/101.conf
I added
Code:
lxc.cgroup.devices.allow: c 189:* rwm
lxc.mount.entry: /dev/irhead dev/irhead none bind,optional,create=file
After restarting the container, i can see the device inside my container:
Code:
# ls -la /dev/ir*
crw-rw---- 1 nobody nogroup 189, 1 Mar 24 19:57 /dev/irhead
Great! But unfortunately I cannot read from this device, not even with sudo:
Code:
# sudo cat /dev/irhead
cat: /dev/irhead: Permission denied
chown
this device, but this also results in "Permission denied".This looks like I am really close to my goal but I am missing some small detail to make it fully work.
What else could I try?