LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Virtualization and Cloud (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/)
-   -   problem with installing centos in virtualbox (Kernel driver not installed (rc=-1908) (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/problem-with-installing-centos-in-virtualbox-kernel-driver-not-installed-rc%3D-1908-a-937046/)

chintu00001 03-29-2012 04:17 AM

problem with installing centos in virtualbox (Kernel driver not installed (rc=-1908)
 
while installing centos6.2 in virtual box im getting an error called


"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 continue /etc/init.d/

[root@localhost yum.repos.d]# /etc/init.d/vboxdrv setup
Stopping VirtualBox kernel modules [ OK ]
Uninstalling old VirtualBox DKMS kernel modules [ OK ]
Trying to register the VirtualBox kernel modules using DKMS[FAILED]
(Failed, trying without DKMS)
Recompiling VirtualBox kernel modules [FAILED]
(Look at /var/log/vbox-install.log to find out what went wrong)

can anyone tell the solution for this problem
thnx in advance...

chintu00001 03-29-2012 04:21 AM

this is the log generated during installation

[root@localhost yum.repos.d]# cat /var/log/vbox-install.log

Makefile:172: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again. Stop.

djsoundfx 05-15-2012 11:45 AM

Quote:

Originally Posted by chintu00001 (Post 4639487)
this is the log generated during installation

[root@localhost yum.repos.d]# cat /var/log/vbox-install.log

Makefile:172: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again. Stop.

Are you sure that you have installed your kernel headers?
Code:

yum install gcc kernel-devel
yum search kernel-headers (some output)
yum install kernel-headers.x86_64 (or whatever matches the output from search that contains the "Header files for the Linux kernel for use by glibc")

Unless you're using a xen kernel (then you need to uname -r and if that says ...el5xen then you need to yum install gcc kernel-xen-devel
Also make sure you have disabled netboot in bios.


All times are GMT -5. The time now is 02:03 PM.