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,
Failed to install using DKMS, attempting to install without
-
- Volunteer
- Posts: 8851
- 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
you need to read this. minimum information needed for assistance
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
There are three groups of people. Those that can count and those that can't.
Re: Failed to install using DKMS, attempting to install with
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!
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 194 times
Re: Failed to install using DKMS, attempting to install with
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!
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!