Skip to content

Instantly share code, notes, and snippets.

@gerard33
Created January 19, 2022 19:43
Show Gist options
  • Save gerard33/8bef158b338fdb0cb1c67f680077f3a7 to your computer and use it in GitHub Desktop.
Save gerard33/8bef158b338fdb0cb1c67f680077f3a7 to your computer and use it in GitHub Desktop.
LXC USB Passthrough (Proxmox)
1. Plug USB device
root@proxmox01:~# lsusb
[...]
Bus 004 Device 005: ID 0658:0200 Sigma Designs, Inc.
[...]
2. Take a look of device
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 ID (example: 189, 388)
3. Edit lxc configuration
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment