VirtualBox - Kernel driver not installed (rc=-1908)
Posted: 2014/11/07 14:27:14
I have a system very similar to CentOs 6, oracle linux 6.5
I installed VirtualBox for my system when I run the machine created in him getting an error
Failed to open a session for the virtual machine bazaczeresnia.
The virtual machine 'bazaczeresnia' has terminated unexpectedly during startup with exit code 1 (0x1).
Kernel driver not installed (rc = -1908)
The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or there is a permission problem with / dev / vboxdrv. Please reinstall the kernel module by executing
'/etc/init.d/vboxdrv setup'
as root. If it is available in your distribution, You should install the DKMS package first. This package keeps track of Linux kernel changes and recompiles the vboxdrv kernel module if Necessary.
under the command executes /etc/init.d/vboxdrv setup command in the terminal as root
result /etc/init.d/vboxdrv setup
Stopping VirtualBox kernel modules [OK]
Recompiling VirtualBox kernel modules [FAILED]
(Look at /var/log/vbox-install.log to find out what went wrong)
/var/log/vbox-install.log
Makefile: 183: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR = <directory> and run Make again. Stop.
Makefile: 183: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR = <directory> and run Make again. Stop.
Makefile: 183: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR = <directory> and run Make again. Stop.
Makefile: 183: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR = <directory> and run Make again. Stop.
What to do?
I installed VirtualBox for my system when I run the machine created in him getting an error
Failed to open a session for the virtual machine bazaczeresnia.
The virtual machine 'bazaczeresnia' has terminated unexpectedly during startup with exit code 1 (0x1).
Kernel driver not installed (rc = -1908)
The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or there is a permission problem with / dev / vboxdrv. Please reinstall the kernel module by executing
'/etc/init.d/vboxdrv setup'
as root. If it is available in your distribution, You should install the DKMS package first. This package keeps track of Linux kernel changes and recompiles the vboxdrv kernel module if Necessary.
under the command executes /etc/init.d/vboxdrv setup command in the terminal as root
result /etc/init.d/vboxdrv setup
Stopping VirtualBox kernel modules [OK]
Recompiling VirtualBox kernel modules [FAILED]
(Look at /var/log/vbox-install.log to find out what went wrong)
/var/log/vbox-install.log
Makefile: 183: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR = <directory> and run Make again. Stop.
Makefile: 183: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR = <directory> and run Make again. Stop.
Makefile: 183: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR = <directory> and run Make again. Stop.
Makefile: 183: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR = <directory> and run Make again. Stop.
What to do?