Vagrant (The vboxdrv kernel module is not loaded.)

asked 2016-12-12 04:20:21 -0500

zxdx gravatar image

$ vagrant up --provider virtualbox

The provider 'virtualbox' that was requested to back the machine 'default' is reporting that it isn't usable on this system. The reason is shown below:

VirtualBox is complaining that the kernel module is not loaded. Please run VBoxManage --version or open the VirtualBox GUI to see the error message which should contain instructions on how to fix this error.

$ VBoxManage --version

WARNING: The vboxdrv kernel module is not loaded. Either there is no module available for the current kernel (4.8.11-300.fc25.x86_64) or it failed to load. Please try load the kernel module by executing as root

       dnf install akmod-VirtualBox kernel-devel-4.8.11-300.fc25.x86_64
       akmods --kernels 4.8.11-300.fc25.x86_64 && systemctl restart systemd-modules-load.service

You will not be able to start VMs until this problem is fixed. 5.1.10r112026

$ dnf install akmod-VirtualBox kernel-devel-4.8.11-300.fc25.x86_64

Package akmod-VirtualBox-5.1.10-1.fc25.x86_64 is already installed, skipping. Package kernel-devel-4.8.11-300.fc25.x86_64 is already installed, skipping. Dependencies resolved. Nothing to do. Complete!

$akmods --kernels 4.8.11-300.fc25.x86_64 && systemctl restart systemd-modules-load.service

Checking kmods exist for 4.8.11-300.fc25.x86_64 [ OK ] Job for systemd-modules-load.service failed because the control process exited with error code. See "systemctl status systemd-modules-load.service" and "journalctl -xe" for details.

$ systemctl status systemd-modules-load.service

systemd-modules-load.service - Load Kernel Modules Loaded: loaded (/usr/lib/systemd/system/systemd-modules-load.service; static; vendor preset: disabled)
Active: failed (Result: exit-code) since Mon 2016-12-12 13:13:26 MSK; 3min 29s ago Docs: man:systemd-modules-load.service(8) man:modules-load.d(5) Process: 5081 ExecStart=/usr/lib/systemd/systemd-modules-load (code=exited, status=1/FAILURE) Main PID: 5081 (code=exited, status=1/FAILURE)

Dec 12 13:13:26 localhost.localdomain systemd[1]: Starting Load Kernel Modules... Dec 12 13:13:26 localhost.localdomain systemd-modules-load[5081]: Failed to insert 'vboxdrv': Required key not available Dec 12 13:13:26 localhost.localdomain systemd[1]: systemd-modules-load.service: Main process exited, code=exited, status=1/FAILURE Dec 12 13:13:26 localhost.localdomain systemd[1]: Failed to start Load Kernel Modules. Dec 12 13:13:26 localhost.localdomain systemd[1]: systemd-modules-load.service: Unit entered failed state. Dec 12 13:13:26 localhost.localdomain systemd[1]: systemd-modules-load.service: Failed with result 'exit-code'.

edit retag flag offensive close merge delete

Comments

I have exactly this same problem on fc27.

rserling gravatar imagerserling ( 2018-01-27 13:58:21 -0500 )edit