Compiling vboxdrv,... by runing '/sbin/vboxconfig' results in following error.
I have signed and loaded the modules as shown bellow but still not able to 'vboxconfig' with success.
Short system description
[*]Fedora 34:
Code: Select all
Linux fedora 5.13.4-200.fc34.x86_64 #1 SMP Tue Jul 20 20:27:29 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Code: Select all
[root@fedora ~]# rpm -qa |grep -i virtual
virtualbox-guest-additions-6.1.22-1.fc34.x86_64
VirtualBox-6.1-6.1.24_145767_fedora33-1.x86_64
Error from '/sbin/vboxconfig' execution
Code: Select all
[root@fedora ~]# /sbin/vboxconfig
vboxdrv.sh: Stopping VirtualBox services.
vboxdrv.sh: Starting VirtualBox services.
vboxdrv.sh: You must sign these kernel modules before using VirtualBox:
vboxdrv vboxnetflt vboxnetadp
See the documentation for your Linux distribution..
vboxdrv.sh: Building VirtualBox kernel modules.
vboxdrv.sh: failed: modprobe vboxdrv failed. Please use 'dmesg' to find out why.
There were problems setting up VirtualBox. To re-start the set-up process, run
/sbin/vboxconfig
as root. If your system is using EFI Secure Boot you may need to sign the
kernel modules (vboxdrv, vboxnetflt, vboxnetadp, vboxpci) before you can load
them. Please see your Linux system's documentation for more information.
[*]All modules present in '/lib/modules/5.13.4-200.fc34.x86_64/misc' will be signed.
Code: Select all
for modfile in $(dirname $(modinfo -n vboxdrv))/*.ko; do
echo "Signing $modfile"
/usr/src/kernels/$(uname -r)/scripts/sign-file sha256 \
/root/signed-modules/MOK.priv \
/root/signed-modules/MOK.der "$modfile"
done
Code: Select all
Signing /lib/modules/5.13.4-200.fc34.x86_64/misc/vboxdrv.ko
Signing /lib/modules/5.13.4-200.fc34.x86_64/misc/vboxnetadp.ko
Signing /lib/modules/5.13.4-200.fc34.x86_64/misc/vboxnetflt.ko
Code: Select all
modprobe vboxdrv
modprobe vboxnetadp
modprobe vboxnetflt
Code: Select all
[root@fedora ~]# lsmod |grep vb
vboxnetflt 32768 0
vboxnetadp 28672 0
vboxdrv 557056 2 vboxnetadp,vboxnetflt
[*]Results in same error as above:
Code: Select all
[root@fedora ~]# /sbin/vboxconfig
vboxdrv.sh: Stopping VirtualBox services.
vboxdrv.sh: Starting VirtualBox services.
vboxdrv.sh: You must sign these kernel modules before using VirtualBox:
vboxdrv vboxnetflt vboxnetadp
See the documentation for your Linux distribution..
vboxdrv.sh: Building VirtualBox kernel modules.
vboxdrv.sh: failed: modprobe vboxdrv failed. Please use 'dmesg' to find out why.
There were problems setting up VirtualBox. To re-start the set-up process, run
/sbin/vboxconfig
as root. If your system is using EFI Secure Boot you may need to sign the
kernel modules (vboxdrv, vboxnetflt, vboxnetadp, vboxpci) before you can load
them. Please see your Linux system's documentation for more information.
Code: Select all
[ 3553.338818] Loading of unsigned module is rejected
Other items checked
[*]Certificate is loaded
Code: Select all
mokutil --list-enrolled
Code: Select all
...
[key 2]
SHA1 Fingerprint: 4c:7e:98:70:df:ba:f1:da:85:be:20:d7:8e:6c:f8:e7:f9:4f:33:3f
Certificate:
Data:
Version: 3 (0x2)
Serial Number:
35:cd:93:37:04:4a:60:c9:05:af:fa:8a:78:3f:37:7d:b3:2a:b6:22
Signature Algorithm: sha256WithRSAEncryption
Issuer: CN=VirtualBox
Validity
Not Before: Jun 14 22:54:56 2021 GMT
Not After : May 21 22:54:56 2121 GMT
Subject: CN=VirtualBox
Subject Public Key Info:
Public Key Algorithm: rsaEncryption
RSA Public-Key: (2048 bit)
Modulus:
...
[*] if loaded again, modules are rejected:
Code: Select all
[root@fedora ~]# modprobe vboxdrv
modprobe: ERROR: could not insert 'vboxdrv': Key was rejected by service
At this point any hint welcome!
Thanks,
ffc