Vagrant up and VM do not work Fedora 22

I have a problem, when I want to use a stroller, I get an error

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. 

After writing VBoxManage --version I get

 WARNING: The vboxdrv kernel module is not loaded. Either there is no module available for the current kernel (4.2.3-200.fc22.x86_64) or it failed to load. Please recompile the kernel module and install it by sudo /etc/init.d/vboxdrv setup You will not be able to start VMs until this problem is fixed. 4.2.32r101581 

and sudo /etc/init.d/vboxdrv setup

I get an error

 Stopping VirtualBox kernel modules [ OK ] Uninstalling old VirtualBox DKMS kernel modulesError! Could not locate dkms.conf file. File: does not exist. [ OK ] Removing old VirtualBox netadp kernel module [ OK ] Removing old VirtualBox netflt kernel module [ OK ] Removing old VirtualBox kernel module [ OK ] Trying to register the VirtualBox kernel modules using DKMSError! Bad return status for module build on kernel: 4.2.3-200.fc22.x86_64 (x86_64) Consult /var/lib/dkms/vboxhost/4.2.32/build/make.log for more information. [ERROR] (Failed, trying without DKMS) Recompiling VirtualBox kernel modules [ERROR] (Look at /var/log/vbox-install.log to find out what went wrong) 

I do not know where the problem is, I tried updating kernel-devel, kernel headers, dkms, etc. I downgrade VirtualBox from 4.3.30 to 4.2.32 and nothing works, please help me with this problem. When I had version 4.3.30, VirtualBox sudo /etc/init.d/vboxdrv setup did not work, I had a problem with vboxdrv - the command does not exist. Yesterday I worked fine, I turned off the computer and PC, today, when I wanted to use vagrant up I have this problem.

Sorry for my English, please help me with this, thanks for every answer!

// EDIT:

I add

/var/lib/dkms/vboxhost/4.2.32/build/make.log / var / log / vbox -install.log

+6
source share
5 answers
  • Please run

    Sudo yum update

  • Please make sure that Vagrant and Virtualbox are in their latest version.

  • If you have already installed and updated kernel-devel and you receive an error message

vboxdrv - command does not exist

run:

 sudo /usr/lib/virtualbox/vboxdrv.sh setup 
+7
source

I want to add that you must have gcc installed ... To do this, make sure that you have installed the development tools group that was installed first. In addition, you need your current kernel source.

  • sudo dnf install "kernel-devel-uname-r == $(uname -r)"
  • sudo dnf groupinstall "Development Tools"
  • sudo dnf update
  • sudo /usr/lib/virtualbox/vboxdrv.sh setup

This should do it for most running VirtualBox 5. * Fedora 2 [23].

+2
source

The VirtualBox Linux kernel driver ( vboxdrv ) is probably not loaded. You may not have the kernel driver installed for the running kernel, if you can do it as root

 dnf install akmod-VirtualBox kernel-devel-$(uname -r) 

If you installed VirtualBox packages and do not want to reboot the system, you may need to load the kernel driver by making it root :

 akmods; systemctl restart systemd-modules-load.service 

Also, be sure to install a supported version of VirtualBox !!

+2
source

sudo /usr/lib/virtualbox/vboxdrv.sh setup this line solved the error on ubuntu 14.04

0
source

After long and painful trials, here is the solution I found. This is a problem with Virtualbox rpm prior to version 5.0.20 . The problem is fixed in Test build 5.0.21 . Get a test build from https://www.virtualbox.org/wiki/Testbuilds

Here is a link to the question https://www.virtualbox.org/ticket/14866

0
source

All Articles