Failed to install using DKMS, attempting to install without

Discussions related to using VirtualBox on Linux hosts.

Failed to install using DKMS, attempting to install without

Postby schmintan » 18. May 2014, 10:56

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,
schmintan
 
Posts: 3
Joined: 18. May 2014, 10:52

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

Postby loukingjr » 18. May 2014, 11:02

OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
loukingjr
Volunteer
 
Posts: 8827
Joined: 30. Apr 2009, 09:45
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: just about all that run

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

Postby schmintan » 18. May 2014, 15:48

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!
Attachments
vbox-install.log
vbox install log
(568 Bytes) Downloaded 187 times
schmintan
 
Posts: 3
Joined: 18. May 2014, 10:52

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

Postby schmintan » 18. May 2014, 17:36

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!
schmintan
 
Posts: 3
Joined: 18. May 2014, 10:52


Return to VirtualBox on Linux Hosts

Who is online

Users browsing this forum: No registered users and 25 guests