Hi,
sadly there is no wiki entry for LXC USB Passthrough, so if someone has the same problem as me he will at least find it in the forum. Nice work with VE 4.3 btw.
1st.
Plug in you USB ZWave stick and find the Major:Minor Numbers:
Major Number is 4, Minor is 5 for me (Bus and Device). Yours will vary.
2nd.
Take a look at the /dev Filetree:
Take note of the 189,388. Yours may differ. I'm not even sure what those numbers mean :/
3rd.
Edit the LXC Config file:
You File will be in another Location.
4th.
Wonder why it does not work
5th.
The ZWave Stick creates a ttyACM device:
Note the 166 here. Add it to your Container:
This was it for me. I hope it helps someone.
sadly there is no wiki entry for LXC USB Passthrough, so if someone has the same problem as me he will at least find it in the forum. Nice work with VE 4.3 btw.
1st.
Plug in you USB ZWave stick and find the Major:Minor Numbers:
Code:
root@proxmox01:~# lsusb
[...]
Bus 004 Device 005: ID 0658:0200 Sigma Designs, Inc.
[...]
2nd.
Take a look at the /dev Filetree:
Code:
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
3rd.
Edit the LXC Config file:
Code:
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
4th.
Wonder why it does not work
5th.
The ZWave Stick creates a ttyACM device:
Code:
root@proxmox01:~# ls -l /dev/ttyACM0
crwxrwxrwx 1 root dialout 166, 0 Oct 30 13:38 /dev/ttyACM0
Code:
lxc.cgroup.devices.allow: c 166:* rwm
lxc.mount.entry: /dev/ttyACM0 dev/ttyACM0 none bind,optional,create=file
This was it for me. I hope it helps someone.