Hi, VirtualBox does not longer work after upgrade from F41 to F42 (and Secure Boot enabled). I have installed it from rpmfusion repository. In F41, at each kernel upgrade I had to sign again the modules (vboxdrv, vboxnetadp and vboxnetflt) using a private key enabled in EFI by means of mokutil tool, and the kernel was able to load modules.
In F42 instead the procedure does not work and the kernel (6.14.2) won’t load modules, even if they have been signed. I have also regenerated the key used to sign modules and installed in the EFI.
Any suggest? I attach here the script I have used to generate EFI key:
If I read it correctly, you were able to sign your modules on F42 again with mokutil, right?
If no, then you may suffer from the same issue I have. Try mokutil --sb-state and see what it says. If it says This system doesn't support Secure Boot., then you won’t be able to sign your kernel modules via mokutil until further notice.
If yes, did upgraded RPMFusion’s repo to 42 too? As far as I know, they have repo’s for each specific version. Maybe this helps.
That’s the thing: I didn’t disabled it. When I was on F41, it was activated and worked as expected with kmodgenca and mokutil. And after the upgrade to F42, it got disabled automatically and I can’t turn it back on because it says “This system doesn't support Secure Boot”, which is weird and can’t be right. And Secure Boot is (still) activated in my UEFI settings.
Yes, I have signed all three modules. I have enrolled also akmods keys as described in the file you have cited ( README.secureboot). I have also verified that, after having forced akmod to rebuild vboxdrv and other modules, they have been signed with proper key by means of kernel script extract-mod-sig.pl. But the kernel still refuses to load modules. It seems that there is a problem in the kernel loading process since enrolling and signing phases are fine.
Yes, I have used dnf system-upgrade to upgrade Fedora from 41 to 42 release.
After executing depmod -ae and rebuilding VirtualBox module (akmods --rebuild), now the vboxdrv module is loaded wihtout error. Thank you.
CONCLUSION
if using self-signed modules, the solution is to add proper flags to sign and compress the module, as suggested by Chris (post #13, my procedure is in post #14)
if using akmod generated modules after an upgrade, a depmod followed by rebuilding modules fixes the issue, as reported by Leigh (post #19).