PVE 7.1-10
On the host:
In the container:
On a bare metal install (that works as expected) the usb webcam device is owned by root:root (/dev/bus/usb/00x/00x)
In a QEMU VM (that works with USB passhtrough) the usb webcam device is owned by root:root as well.
What am I missing?
[edit: extra details]
On the host:
Code:
root@pve:~# lsusb
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 005: ID 046d:0990 Logitech, Inc. QuickCam Pro 9000
root@pve:~# ls -l /dev/bus/usb/003/005
crw-rw-r-- 1 root root 189, 260 Mar 26 21:18 /dev/bus/usb/003/005
root@pve:~# cat /etc/pve/lxc/108.conf
...
lxc.cgroup.devices.allow: c 189:* rwm
lxc.mount.entry: /dev/bus/usb/003/005 dev/bus/usb/003/005 none bind,optional,create=file
lxc.mount.entry: /dev/video0 dev/video0 none bind,optional,create=file
In the container:
Code:
someone@lxc:~$ lsusb
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 005: ID 046d:0990 Logitech, Inc. QuickCam Pro 9000
someone@lxc:~$ ls -l /dev/bus/usb/003/005
crw-rw-r-- 1 nobody nogroup 189, 260 Mar 26 21:18 /dev/bus/usb/003/005
someone@lxc:~$ ffmpeg -i /dev/video0 test.mp4
...
[video4linux2,v4l2 @ 0x558fc48326c0] Cannot open video device /dev/video0: Permission denied
/dev/video0: Permission denied
On a bare metal install (that works as expected) the usb webcam device is owned by root:root (/dev/bus/usb/00x/00x)
In a QEMU VM (that works with USB passhtrough) the usb webcam device is owned by root:root as well.
What am I missing?
[edit: extra details]
Last edited: