I installed Virtualbox through RPM repo and had the akmod installed with it:
$ sudo akmods
Checking kmods exist for 6.13.10-200.fc41.x86_64 [ OK ]
I then succesfully create the key and enroll it, but when I try to sign the module it is always giving me:
$ sudo /usr/src/kernels/$(uname -r)/scripts/sign-file sha256 /lib/modules/6.13.10-200.fc41.x86_64/build/certs/MOK.key /lib/modules/6.13.10-200.fc41.x86_64/build/certs/MOK.crt vboxdrv.ko
At main.c:302:
- SSL error:FFFFFFFF80000002:system library::No such file or directory: crypto/bio/bss_file.c:67
- SSL error:10000080:BIO routines::no such file: crypto/bio/bss_file.c:75
sign-file: vboxdrv.ko
VirtualBox says:
Kernel driver not installed (rc=-1908)
The VirtualBox Linux kernel driver (vboxdrv) is probably not loaded.You may not have kernel driver installed for kernel that is runnig, if so you may do as root: dnf install akmod-VirtualBox kernel-devel-$(uname -r)If you installed VirtualBox packages and don’t want reboot the system, you may need load the kernel driver, doing as root: akmods; systemctl restart vboxdrv.service
If your system has EFI Secure Boot enabled you may also need to sign the kernel modules (vboxdrv, vboxnetflt, vboxnetadp) before you can load them. Please see your Linux system’s documentation for more information.
where: suplibOsInit what: 3 VERR_VM_DRIVER_NOT_INSTALLED (-1908) - The support driver is not installed. On linux, open returned ENOENT.
Needless to say, I have secure boot on and don’t want to disable it. This didn’t cause an issue in my other system (intel laptop), but happened on this new system (AMD, if it matters).
I have tried generating the keys in different locations, checked openssl symlinks, checked file permissions, but nothing worked