Instructions taken from https://forum.proxmox.com/threads/lxc-usb-passthrough-zwave-stick.30058/ and addtional information added for clarity.
- Plug in you USB ZWave stick and find the Major:Minor Numbers:
root@proxmox01:~# lsusb
Bus 004 Device 005: ID 0658:0200 Sigma Designs, Inc.
Major Number is 4
, Minor is 5
for me (Bus and Device). Yours will vary.
- Take a look at the /dev Filetree:
root@proxmox01:~# ls -l /dev/bus/usb/004/005
crw-rw-r-- 1 root root 189, 388 Oct 25 16:19 /dev/bus/usb/004/005
Take note of the 189,388
. Yours may differ.
- Edit the LXC Config file:
root@proxmox01:~# nano /etc/pve/nodes/proxmox01/lxc/101.conf
lxc.cgroup.devices.allow: c 189:388 rwm
lxc.mount.entry: /dev/bus/usb/004/005 dev/bus/usb/004/005 none bind,optional,create=file
You File will be in another Location. proxmox01
refers to the name of your proxmox server. 101
refers to the ID of the LXC container.
- The ZWave Stick creates a ttyACM device:
root@proxmox01:~# ls -l /dev/ttyACM*
crwxrwxrwx 1 root dialout 166, 0 Oct 30 13:38 /dev/ttyACM0
If there are multiple ttyACM
devices then you need to figure out which one belongs to the USB device you are interested in. Note the 166, 0
here. Add it to your Container conf:
root@proxmox01:~# nano /etc/pve/nodes/proxmox01/lxc/101.conf
lxc.cgroup.devices.allow: c 166:0 rwm
lxc.mount.entry: /dev/ttyACM0 dev/ttyACM0 none bind,optional,create=file
- Restart your container