Skip to content

Instantly share code, notes, and snippets.

@uchagani
Last active April 25, 2024 11:05
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save uchagani/64e8d776c65510399679d37d43d4692b to your computer and use it in GitHub Desktop.
Save uchagani/64e8d776c65510399679d37d43d4692b to your computer and use it in GitHub Desktop.
Proxmox USB Passthrough

Instructions taken from https://forum.proxmox.com/threads/lxc-usb-passthrough-zwave-stick.30058/ and addtional information added for clarity.

  1. 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.

  1. 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.

  1. 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.

  1. 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
  1. Restart your container
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment