Skip to content

Instantly share code, notes, and snippets.

@iamstoick
Created December 1, 2014 22:43
Show Gist options
  • Save iamstoick/977d16624e079ba12741 to your computer and use it in GitHub Desktop.
Save iamstoick/977d16624e079ba12741 to your computer and use it in GitHub Desktop.
VirtualBox is complaining that the kernel module is not loaded
drupal drupalvdd: vagrant up
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.
Solution:
drupal drupalvdd: sudo /etc/init.d/vboxdrv setup
@iamstoick
Copy link
Author

Welcome guys. For Ubuntu 16.04 I think the solution posted by Alexishermo is the answer. Also please consider checking out Docker as it is much faster and leaner.

@gmatere
Copy link

gmatere commented Jun 18, 2019

hi, I was gettting the same error and tried the solutions listed above.

  1. when I tried sudo /sbin/vboxconfig I get follwoing error:
    vboxdrv.sh: Stopping VirtualBox services.
    vboxdrv.sh: Starting VirtualBox services.
    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.

  1. then I tried sudo /sbin/rcvboxdrv setup, getting following error:
    vboxdrv.sh: Stopping VirtualBox services.
    vboxdrv.sh: Starting VirtualBox services.
    vboxdrv.sh: Building VirtualBox kernel modules.
    vboxdrv.sh: failed: modprobe vboxdrv failed. Please use 'dmesg' to find out why.

please help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment