I'm doing a Home Assistant USB pass-through/port mapping on a USB for a ZigBee USB stick on my HA container.
These are my LXC settings for HA
And at least from my knowledge (could be a better solution?) I have to chown 100000:100000 to /dev/ttyUSB0 and
/dev/bus/usb/001/003
When I restart Proxmox, the permissions under the root account (not in the container, Proxmox itself) get reset to group: "
dialout" .
How can I get this to stop every reboot? There some kind of setting/config I can alter so it persists reboots?
Thanks~!
These are my LXC settings for HA
Code:
unprivileged: 1
lxc.cgroup2.devices.allow: c 189:* rwm
lxc.mount.entry: /dev/bus/usb/001/003 dev/bus/usb/001/003 none bind,optional,create=file
lxc.cgroup2.devices.allow: c 188:* rwm
lxc.mount.entry: /dev/ttyUSB0 dev/ttyUSB0 none bind,optional,create=file
lxc.mount.entry: /dev/ttyUSB1 dev/ttyUSB1 none bind,optional,create=file
And at least from my knowledge (could be a better solution?) I have to chown 100000:100000 to /dev/ttyUSB0 and
/dev/bus/usb/001/003
When I restart Proxmox, the permissions under the root account (not in the container, Proxmox itself) get reset to group: "
dialout" .
How can I get this to stop every reboot? There some kind of setting/config I can alter so it persists reboots?
Thanks~!