NEWS
Anleitung: Proxmox LXC - USB Geräte durchreichen
-
Hallo zusammen,
ich suche eine eine funktionierende udev Rule für die Rechtevergabe meines Sonoff USB Zigbee Dongles, der in einem LXC Container reingereicht wird (Proxmox 6.4).
Die Rule aus der ioBroker Doku geht leider bei mir leider nicht.
SUBSYSTEMS=="usb", ATTRS{idVendor}=="1a86", ATTRS{idProduct}=="55d4", GROUP="users", MODE="0666"Ich habe dann schon diverse Regeln die ich über Google gefunden habe ausprobiert aber auch ohne Erfolg.
Nach einem Reboot sind die Rechte leider weg.Aktuelle udev Rule die auch nicht funktioniert:
ACTION=="add", KERNEL=="ttyACM[0-9]*", ATTRS{idVendor}==„1a86", ATTRS{idProduct}=="55d4", MODE="0666"lsusb Bus 004 Device 002: ID 1058:25a2 Western Digital Technologies, Inc. Elements 25A2 Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 001 Device 002: ID 1a86:55d4 QinHeng Electronics Bus 001 Device 003: ID 8087:0026 Intel Corp. Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hubLXC Config Datei:
arch: amd64 cores: 2 hostname: ioBroker memory: 2048 net0: name=eth0,bridge=vmbr0,firewall=1,hwaddr=EE:B1:FB:67:8D:F1,ip=dhcp,ip6=dhcp,type=veth ostype: ubuntu rootfs: local-lvm:vm-201-disk-0,size=8G swap: 512 unprivileged: 1 lxc.cgroup.devices.allow: c 189:* rwm lxc.mount.entry: usb-ITEAD_SONOFF_Zigbee_3.0_USB_Dongle_Plus_V2_20220715100400-if00 dev/serial/by-id/usb-ITEAD_SONOFF_Zigbee_3.0_USB_Dongle_Plus_V2_20220715100400-if00 none bin$ lxc.cgroup.devices.allow: c 166:* rwm lxc.mount.entry: /dev/ttyACM0 dev/ttyACM0 none bind,optional,create=fileHabt ihr eine Idee? Ich weiß nicht mehr weiter.
-
Hallo zusammen,
ich suche eine eine funktionierende udev Rule für die Rechtevergabe meines Sonoff USB Zigbee Dongles, der in einem LXC Container reingereicht wird (Proxmox 6.4).
Die Rule aus der ioBroker Doku geht leider bei mir leider nicht.
SUBSYSTEMS=="usb", ATTRS{idVendor}=="1a86", ATTRS{idProduct}=="55d4", GROUP="users", MODE="0666"Ich habe dann schon diverse Regeln die ich über Google gefunden habe ausprobiert aber auch ohne Erfolg.
Nach einem Reboot sind die Rechte leider weg.Aktuelle udev Rule die auch nicht funktioniert:
ACTION=="add", KERNEL=="ttyACM[0-9]*", ATTRS{idVendor}==„1a86", ATTRS{idProduct}=="55d4", MODE="0666"lsusb Bus 004 Device 002: ID 1058:25a2 Western Digital Technologies, Inc. Elements 25A2 Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 001 Device 002: ID 1a86:55d4 QinHeng Electronics Bus 001 Device 003: ID 8087:0026 Intel Corp. Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hubLXC Config Datei:
arch: amd64 cores: 2 hostname: ioBroker memory: 2048 net0: name=eth0,bridge=vmbr0,firewall=1,hwaddr=EE:B1:FB:67:8D:F1,ip=dhcp,ip6=dhcp,type=veth ostype: ubuntu rootfs: local-lvm:vm-201-disk-0,size=8G swap: 512 unprivileged: 1 lxc.cgroup.devices.allow: c 189:* rwm lxc.mount.entry: usb-ITEAD_SONOFF_Zigbee_3.0_USB_Dongle_Plus_V2_20220715100400-if00 dev/serial/by-id/usb-ITEAD_SONOFF_Zigbee_3.0_USB_Dongle_Plus_V2_20220715100400-if00 none bin$ lxc.cgroup.devices.allow: c 166:* rwm lxc.mount.entry: /dev/ttyACM0 dev/ttyACM0 none bind,optional,create=fileHabt ihr eine Idee? Ich weiß nicht mehr weiter.
Mir fällt jetzt auf den ersten Blick kein Fehler bei dir auf, außer dass bei meinem Sonoff Stick die Anbindung anders ist habe aber auch keine v2 Version.
Vielleicht als alternativer Workaround eine reboot crontab Regel erstellen? (ungetestet)
@reboot chmod o+rw /dev/ttyACM*