Header version to match kernel version

There aren’t kernel headers available for any of the available kernels in dnf.

I can’t install or run v4l2loopback without my kernel headers matching my kernel, which stops me doing my job properly.

Any suggestions or a lead on how to resolve this?

You can build the module with DKMS like this:

sudo dnf install git-core dkms kernel-devel openssl
sudo git clone https://github.com/umlaeute/v4l2loopback.git \
/usr/src/v4l2loopback-git
sudo dkms add v4l2loopback/git
sudo systemctl restart dkms.service
sudo tee /etc/modules-load.d/v4l2loopback.conf << EOF > /dev/null
v4l2loopback
EOF
sudo systemctl restart systemd-modules-load.service

If using Secure Boot, enroll the relevant cert:

MOK_PASS="fedora"
sudo mokutil -i /var/lib/dkms/mok.pub << EOI
${MOK_PASS}
${MOK_PASS}
EOI
sudo systemctl reboot

See also: Kernel headers update policy - #3 by vekruse

1 Like

That’s wonderful, thank you so much. It installs without errors and I can now use OBS virtual camera in Zoom.

EDIT: a reboot changed the device and it is currently working. Thank you!

Summary

It is not showing in googlemeet though, which it was with the standard install.

The device shows as “Dummy video device (0x0000)” as opposed to OBS.

Is there any way to overcome this?

1 Like