Modprobe: ERROR: could not insert 'v4l2loopback': Key was rejected by service

I am trying to use OBS Studio Virtual camera, so I installed v4l2loopback and rebooted.

When I try to start the virtual camera I was asked for the password but the virtual camera wasn’t activated.

Then I tried running sudo modprobe v4l2loopback and got the error in the topic heading.

Any clues on how to xolve this issue?

You most likely have Secure Boot enabled. As the module is not signed, the kernel refuses to load it.

You have two options:

  1. disable Secure Boot
  2. self-sign the module
1 Like

I used this on Ubuntu and I didn’t have to do either of the two. I do have Secure Boot enabled and I chose Fedora because it is one of the very few distros that work with it enabled.
I remember having to install a package named v4l2loopback-dkms on Ubuntu. Is there an equivalent on Fedora? I search for a package with the same name but to no avail.

I followed this tutorial and managed to make it work. I hope it doesn’t break when the kernel is updated.
I wouldn’t have managed alone for sure: it is beyond my current linux skill set.