No /dev/bus/x/y on LXC container

pmtest

Member
Feb 25, 2022
1
0
6
51
Hello - I am fairly new to LXC containers and am running into a problem with USB passthrough.

I have this container under Proxmox 7.1:

arch: amd64
cores: 1
hostname: zzww
memory: 2048
net0: name=eth0,bridge=vmbr0,firewall=1,hwaddr=42:0B:8F:62:BB:63,ip=dhcp,ip6=dhcp,typ>
ostype: ubuntu
rootfs: local-lvm:vm-333-disk-0,size=8G
swap: 512
unprivileged: 1


Using lsusb I can see all my USB devices including the one I want to pass through to the container - but there is no /dev/bus/x/y directory structure which it seems I need to make any progress.

ls dev
console core fd full initctl log mqueue null ptmx pts random shm stderr stdin stdout tty tty1 tty2 urandom zero



Any help will be appreciated.

Thanks
 
hi,

but there is no /dev/bus/x/y directory structure which it seems I need to make any progress.
you need to check for that on your PVE host (not inside the container).

after you find the device folder and file for the usb device on your host, you can mount it on your container. for example take a look at this post [0] (though you'll need to use lxc.cgroup2.devices instead of lxc.cgroup.devices if you're running PVE 7)

[0]: https://forum.proxmox.com/threads/lxc-usb-webcam-passthrough.107309/#post-461848