Re: VirtualBox on Ubuntu 16.04 fails to load VirtualBox Kernel Modules
Posted: 12. May 2016, 15:44
Just go to terminal and reinstall with "sudo virtualbox-dkms" and then reinstalled VirtualBox and everything works. ~Ubuntu 16.04 Mate
End user forums for VirtualBox
https://forums.virtualbox.org/
Same for me, so I applied the same technique again on vboxnetflt that was complaining not being loaded with the same generated key.Geppux wrote:... the virtual machine starts but... only if the selection of the network is NAT, if I want to use bridge the virtual machine doesn't start if secure boot is enabled... how can I solve this? how can I sign the network adapter installation so that I can keep the secure boot enabled?
Code: Select all
/usr/src/linux-headers-$(uname -r)/scripts/sign-file sha256 ./MOK.priv ./MOK.der $(modinfo -n vboxdrv)
/usr/src/linux-headers-$(uname -r)/scripts/sign-file sha256 ./MOK.priv ./MOK.der $(modinfo -n vboxnetflt)
Code: Select all
sudo keyctl list %:.system_keyringCode: Select all
SKIP: MOK.der is already enrolledCode: Select all
[ 6.055449] Request for unknown module key 'MOK: 70b16d5a79b3d68186c430effdbab41da14b2682' err -112. Resolving SELINUX denial(s) produced by installationCode: Select all
user@localhost:$ sudo dnf install VirtualBox-5.1 --clipclip-- Running transaction Installing : VirtualBox-5.1-5.1.2_108956_fedora24-1.x86_64 1/1 Creating group 'vboxusers'. VM users must be member of that group! 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. Verifying : VirtualBox-5.1-5.1.2_108956_fedora24-1.x86_64 1/1 Installed: VirtualBox-5.1.x86_64 5.1.2_108956_fedora24-1 Complete!
3. Uninstall & reinstall VirtualBox just to make sure it produces the same error as before but with no SELINUX denials this timeSELinux is preventing vboxdrv.sh from open access on the file /etc/udev/rules.d/60-vboxdrv.rules.
***** Plugin catchall (100. confidence) suggests **************************
If you believe that vboxdrv.sh should be allowed open access on the 60-vboxdrv.rules file by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
Do
allow this access for now by executing:
# ausearch -c 'vboxdrv.sh' --raw | audit2allow -M my-vboxdrvsh
# semodule -X 300 -i my-vboxdrvsh.pp
(...) =>Code: Select all
user@localhost:$ sudo ausearch -c 'vboxdrv.sh' --raw | audit2allow -M my-vboxdrvsh ******************** IMPORTANT *********************** To make this policy package active, execute: semodule -i my-vboxdrvsh.pp user@localhost:$ sudo semodule -X 300 -i my-vboxdrvsh.pp
4. key signing: as in UbuntuCode: Select all
user@localhost:$ sudo dnf remove VirtualBox-5.1 --clipclip-- Removed: VirtualBox-5.1.x86_64 5.1.2_108956_fedora24-1 user@localhost:$ sudo dnf install VirtualBox-5.1 --clipclip-- Transaction test succeeded. Running transaction Installing : VirtualBox-5.1-5.1.2_108956_fedora24-1.x86_64 1/1 Creating group 'vboxusers'. VM users must be member of that group! 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. Verifying : VirtualBox-5.1-5.1.2_108956_fedora24-1.x86_64 1/1 Installed: VirtualBox-5.1.x86_64 5.1.2_108956_fedora24-1 Complete!
5. Added key to UEFI boot (as in Ubuntu)Code: Select all
user@localhost:$ openssl req -new -x509 -newkey rsa:2048 -keyout MOK.priv -outform DER -out MOK.der -nodes -days 36500 -subj "/CN=Akrog/"
6. locating kernel module(s) for Fedora (notice misc):+ Followed instructions for UEFI key import from https://sourceware.org/systemtap/wiki/SecureBootCode: Select all
user@localhost:$ sudo mokutil --import MOK.der user@localhost:$ sudo reboot now
7. Checking what other module(s) are there:Code: Select all
user@localhost:$ modinfo vboxdrv filename: /lib/modules/4.6.4-301.fc24.x86_64/misc/vboxdrv.ko --clipclip--
Code: Select all
user@localhost:$ ll /lib/modules/4.6.4-301.fc24.x86_64/misc/ total 13968 -rw-r--r--. 1 root root 12106179 Jul 25 22:58 vboxdrv.ko -rw-r--r--. 1 root root 509147 Jul 25 22:59 vboxnetadp.ko -rw-r--r--. 1 root root 856947 Jul 25 22:59 vboxnetflt.ko -rw-r--r--. 1 root root 820715 Jul 25 22:59 vboxpci.ko
And I finally got Virtualbox to startCode: Select all
user@localhost:$ sudo /usr/src/kernels/4.6.4-301.fc24.x86_64/scripts/sign-file sha256 ./MOK.priv ./MOK.der /lib/modules/4.6.4-301.fc24.x86_64/misc/vboxdrv.ko user@localhost:$ sudo /usr/src/kernels/4.6.4-301.fc24.x86_64/scripts/sign-file sha256 ./MOK.priv ./MOK.der /lib/modules/4.6.4-301.fc24.x86_64/misc/vboxnetadp.ko user@localhost:$ sudo /usr/src/kernels/4.6.4-301.fc24.x86_64/scripts/sign-file sha256 ./MOK.priv ./MOK.der /lib/modules/4.6.4-301.fc24.x86_64/misc/vboxnetflt.ko user@localhost:$ sudo /usr/src/kernels/4.6.4-301.fc24.x86_64/scripts/sign-file sha256 ./MOK.priv ./MOK.der /lib/modules/4.6.4-301.fc24.x86_64/misc/vboxpci.ko
Code: Select all
Failed to open /dev/vmmon/ verify kernel vmmon is loadedCode: Select all
/usr/src/linux-headers-`uname -r`/scripts/sign-file sha256 cert/MOK.priv cert/MOK.der /lib/modules/`uname -r`/misc/vmmon.ko