Page 1 of 1

Failed to install using DKMS, attempting to install without

PostPosted: 18. May 2014, 10:56
by schmintan
When i try to run a VM in virtualBox i get the error

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.


When i try to run /etc/init.d/vboxdrv setup ( as root) i get an error saying
(Failed, trying without DKMS)
Recompiling VirtualBox kernel modules [FAILED]
(Look at /var/log/vbox-install.log to find out what went wrong)


Looking in the log file i see:
DKMS: add completed.
Failed to install using DKMS, attempting to install without
Makefile:183: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again. Stop.


i have tried specifying the KERN_DIR with the command

/etc/init.d/vboxdrv setup KERN_DIR=/usr/src/kernels/2.6.32-431.17.1.el6.x86_64

I still get the same issue.

I am completely new to Linux so not sure where to turn next. any help appreciated.

Thanks,

Re: Failed to install using DKMS, attempting to install with

PostPosted: 18. May 2014, 11:02
by loukingjr

Re: Failed to install using DKMS, attempting to install with

PostPosted: 18. May 2014, 15:48
by schmintan
Virtual Box version: 4.3.12 r93733
Host OS: CentOS 6.5 64 bit
Guest OS(VM) - Downloaded fromthe virtualbox images website
Guest VM Details - Installed from CentOS-6.5-i386-minimal.iso; Guest Additions NOT installed, Fix DHCP eth0 up

If any extra detail is needed to help bring light on the issue just let me know.

Thanks!

Re: Failed to install using DKMS, attempting to install with

PostPosted: 18. May 2014, 17:36
by schmintan
Got this sorted.

Ran /etc/int.d/vboxdrv setup KERN_DIR=/usr/src/kernels/`ls /usr/src/kernels`

instead of explicitly specifying the directory, and this seems to have worked!