Ubuntu 20.04 running in a proxmox7 LXC container
I realize this isn't a ZM issue, but there's got to be others in the community running ZM in an LXC.
I've passed-through the USB webcam and it shows up in lsusb but the ownership is different than when run on bare metal or in a QEMU VM.
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
On bare metal or a QEMU VM ownership is root:root and www-data is part of the video group.
In the lxc, as you can see above, the device is owned by nobody:nogroup.
sudo -u www-data ffmpeg -i /dev/video0 test.mp4 returns a Permission denied.
Anybody know how to fix this last piece of the puzzle?
The LXC conf looks like this:
Code: Select all
lxc.mount.auto: cgroup:rw
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