Devices limited to 8 even with KCPP flag
xeon826 opened this issue · 1 comments
v4l2loopback
version: 0.12.7
[ 113.906380] v4l2loopback: loading out-of-tree module taints kernel.
[ 113.907038] v4l2loopback: number of devices is limited to: 8
[ 113.907472] v4l2loopback driver version 0.12.7 loaded
-
kernel version: Linux ubuntu 5.15.0-86-generic #96-Ubuntu SMP Wed Sep 20 08:23:49 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
-
Distribution (+version):
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.3 LTS
Release: 22.04
Codename: jammy
Steps to reproduce:
lxc launch images:ubuntu/22.04/desktop ubuntu --vm -c limits.cpu=4 -c limits.memory=4GiB
my host operating system is running the same OS with v4l2loopback installed in the same way and still has this same issue, maybe it's a recent OS update?lxc exec ubuntu -- su - ubuntu
sudo apt install -y gcc make build-essential linux-modules-extra-$(uname -r) linux-headers-$(uname -r) git
cd Documents; git clone https://github.com/umlaeute/v4l2loopback
cd v4l2loopback
make KCPPFLAGS="-DMAX_DEVICES=20";
sudo make install;
sudo depmod -a;
sudo modprobe v4l2loopback devices=11
or any number higher than 8
I've also tried increasing theMAX_DEVICES
define in the v4l2loopback.c script itself.
Observed Results:
I have 8 total video devices in /dev/ and there's an error in dmesg that says number of devices is limited to: 8
,
Expected Results:
11 video devices should appear in /dev/
Relevant Code:
I tried looking for this string in the v4l2loopback source code grep -rnw '.' -e 'limited to'
but I only find number of initial devices is limited to
not number of devices is limited to
that's because you are loading an old module that is still lying around on your disk and which takes precedence over what got install by make install
.
remove the other module instance.
make sure to load the newly-built module.
a simple way (to test) is to specify the module file directly when loading via insmod
:
insmod ./v4l2loopback.ko devices=11