Kernel driver not installed (rc=-1908) Error - Centos 6.8 x64

Discussions related to using VirtualBox on Linux hosts.
Post Reply
Shewky
Posts: 4
Joined: 8. Oct 2016, 15:59

Kernel driver not installed (rc=-1908) Error - Centos 6.8 x64

Post by Shewky »

I have installed VirtualBox 5.1 on my Centos 6.8 server with ssh

I have installed kernel, kernel headers too but when I run '/sbin/vboxconfig' command, I got error below.

Code: Select all

vboxdrv.sh: Building VirtualBox kernel modules.
error: file /lib/modules/2.6.32-042stab116.1/kernel: No such file or directory
This system is not currently set up to build kernel modules (system extensions).
Running the following commands should set the system up correctly:

  yum install devel-
(The last command may fail if your system is not fully updated.)
  yum install devel
vboxdrv.sh: failed: Look at /var/log/vbox-install.log to find out what went wrong.
error: file /lib/modules/2.6.32-042stab116.1/kernel: No such file or directory
This system is not currently set up to build kernel modules (system extensions).
Running the following commands should set the system up correctly:

  yum install devel-
(The last command may fail if your system is not fully updated.)
  yum install devel

There were problems setting up VirtualBox.  To re-start the set-up process, run
  /sbin/vboxconfig
as root.
vboxdrv.sh: Starting VirtualBox services.
vboxdrv.sh: Building VirtualBox kernel modules.
error: file /lib/modules/2.6.32-042stab116.1/kernel: No such file or directory
This system is not currently set up to build kernel modules (system extensions).
Running the following commands should set the system up correctly:

  yum install devel-
(The last command may fail if your system is not fully updated.)
  yum install devel
vboxdrv.sh: failed: Look at /var/log/vbox-install.log to find out what went wrong.
vbox-install.log file is,

Code: Select all

Makefile:185: *** Error: unable to find the sources of your current Linux kerne$
Makefile:185: *** Error: unable to find the sources of your current Linux kerne$
Makefile:185: *** Error: unable to find the sources of your current Linux kerne$
Makefile:185: *** Error: unable to find the sources of your current Linux kerne$
Makefile:185: *** Error: unable to find the sources of your current Linux kerne$
Makefile:185: *** Error: unable to find the sources of your current Linux kerne$
Makefile:185: *** Error: unable to find the sources of your current Linux kerne$
Makefile:185: *** Error: unable to find the sources of your current Linux kerne$
Makefile:185: *** Error: unable to find the sources of your current Linux kerne$
Makefile:185: *** Error: unable to find the sources of your current Linux kerne$
How can I get solucion ?

I'm sorry for my English

Best regards
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Kernel driver not installed (rc=-1908) Error - Centos 6.8 x64

Post by Perryg »

socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Kernel driver not installed (rc=-1908) Error - Centos 6.8 x64

Post by socratis »

Shewky wrote:I have installed kernel, kernel headers too
Hmm... It doesn't look like it. Otherwise there would be no complaints. What's the output of "uname -r"? Check out these quick search results below. I searched for "kernel-devel site:forums.virtualbox.org"; there might be more:
viewtopic.php?f=7&t=66363
viewtopic.php?f=3&t=56026
viewtopic.php?f=7&t=58458
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Shewky
Posts: 4
Joined: 8. Oct 2016, 15:59

Re: Kernel driver not installed (rc=-1908) Error - Centos 6.8 x64

Post by Shewky »

socratis wrote:
Shewky wrote:I have installed kernel, kernel headers too
Hmm... It doesn't look like it. Otherwise there would be no complaints. What's the output of "uname -r"? Check out these quick search results below
# uname -r is,

Code: Select all

2.6.32-042stab116.1
# yum install kernel-devel-$2.6.32-042stab116.1

Code: Select all

Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
No package kernel-devel-.6.32-042stab116.1 available.
Perryg wrote:gle-com-search?q=install+Centos+6.8+kernel+devel
# yum install kernel-devel,
Package kernel-devel-2.6.32-642.6.1.el6.x86_64 already installed and latest version

Is it problem about version ?

Thanks for insteresting
Martin
Volunteer
Posts: 2562
Joined: 30. May 2007, 18:05
Primary OS: Fedora other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: XP, Win7, Win10, Linux, OS/2

Re: Kernel driver not installed (rc=-1908) Error - Centos 6.8 x64

Post by Martin »

Did you reboot your system after the latest update?
The kernel-devel package and the running kernel need to be at the same version.
Shewky
Posts: 4
Joined: 8. Oct 2016, 15:59

Re: Kernel driver not installed (rc=-1908) Error - Centos 6.8 x64

Post by Shewky »

Of course I'm rebooting after every installation
 Edit: uname -r different of kernel-devel version

I made, # yum install kernel , than installed kernel and reboot but I see still old kernel version. :? 
 Edit: New log file is,

Code: Select all

make KBUILD_VERBOSE=1 SUBDIRS=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 CONFIG_MODULE_SIG= -C /usr/src/kernels/2.6.32-042stab116.1/ -j4 modules
make[1]: warning: -jN forced in submake: disabling jobserver mode.
test -e include/linux/autoconf.h -a -e include/config/auto.conf || (            \
        echo;                                                           \
        echo "  ERROR: Kernel configuration is invalid.";               \
        echo "         include/linux/autoconf.h or include/config/auto.conf are missing.";      \
        echo "         Run 'make oldconfig && make prepare' on kernel src to fix it.";  \
        echo;                                                           \
        /bin/false)
mkdir -p /tmp/vbox.0/.tmp_versions ; rm -f /tmp/vbox.0/.tmp_versions/*
make -f scripts/Makefile.build obj=/tmp/vbox.0
 
Shewky
Posts: 4
Joined: 8. Oct 2016, 15:59

Re: Kernel driver not installed (rc=-1908) Error - Centos 6.8 x64

Post by Shewky »

** File: /var/log/vbox-install.log**

Code: Select all

Makefile:185: *** Error: unable to find the sources of your current Linux kernel. Specify KERNDIR=<directory> and run Make again. Stop.
make KBUILDVERBOSE=1 SUBDIRS=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 CONFIGMODULESIG= -C /usr/src/kernels/2.6.32-042stab116.1/ -j4 modules
make[1]: warning: -jN forced in submake: disabling jobserver mode.
test -e include/linux/autoconf.h -a -e include/config/auto.conf || ( \
echo; \
echo " ERROR: Kernel configuration is invalid."; \
echo " include/linux/autoconf.h or include/config/auto.conf are missing."; \
echo " Run 'make oldconfig && make prepare' on kernel src to fix it."; \
echo; \
/bin/false)
mkdir -p /tmp/vbox.0/.tmpversions ; rm -f /tmp/vbox.0/.tmpversions/*
make -f scripts/Makefile.build obj=/tmp/vbox.0
gcc -Wp,-MD,/tmp/vbox.0/linux/.SUPDrv-linux.o.d -nostdinc -isystem /usr/lib/gcc/x8664-redhat-linux/4.4.7/include -Iinclude -I/usr/src/kernels/2.6.32-042stab116.1/include/uapi -I/usr/s$
gcc -Wp,-MD,/tmp/vbox.0/.SUPDrv.o.d -nostdinc -isystem /usr/lib/gcc/x8664-redhat-linux/4.4.7/include -Iinclude -I/usr/src/kernels/2.6.32-042stab116.1/include/uapi -I/usr/src/kernels/2$
gcc -Wp,-MD,/tmp/vbox.0/.SUPDrvGip.o.d -nostdinc -isystem /usr/lib/gcc/x8664-redhat-linux/4.4.7/include -Iinclude -I/usr/src/kernels/2.6.32-042stab116.1/include/uapi -I/usr/src/kernel$
gcc -Wp,-MD,/tmp/vbox.0/.SUPDrvSem.o.d -nostdinc -isystem /usr/lib/gcc/x8664-redhat-linux/4.4.7/include -Iinclude -I/usr/src/kernels/2.6.32-042stab116.1/include/uapi -I/usr/src/kernel$
set -e ; perl /usr/src/kernels/2.6.32-042stab116.1/scripts/recordmcount.pl "x8664" "64" "objdump" "objcopy" "gcc" "ld" "nm" "" "" "1" "/tmp/vbox.0/SUPDrvSem.o";
gcc -Wp,-MD,/tmp/vbox.0/.SUPDrvTracer.o.d -nostdinc -isystem /usr/lib/gcc/x8664-redhat-linux/4.4.7/include -Iinclude -I/usr/src/kernels/2.6.32-042stab116.1/include/uapi -I/usr/src/ker$
set -e ; perl /usr/src/kernels/2.6.32-042stab116.1/scripts/recordmcount.pl "x8664" "64" "objdump" "objcopy" "gcc" "ld" "nm" "" "" "1" "/tmp/vbox.0/linux/SUPDrv-linux.o";
gcc -Wp,-MD,/tmp/vbox.0/.SUPLibAll.o.d -nostdinc -isystem /usr/lib/gcc/x8664-redhat-linux/4.4.7/include -Iinclude -I/usr/src/kernels/2.6.32-042stab116.1/include/uapi -I/usr/src/kernel$
set -e ; perl /usr/src/kernels/2.6.32-042stab116.1/scripts/recordmcount.pl "x8664" "64" "objdump" "objcopy" "gcc" "ld" "nm" "" "" "1" "/tmp/vbox.0/SUPLibAll.o";
gcc -Wp,-MD,/tmp/vbox.0/r0drv/.alloc-r0drv.o.d -nostdinc -isystem /usr/lib/gcc/x8664-redhat-linux/4.4.7/include -Iinclude -I/usr/src/kernels/2.6.32-042stab116.1/include/uapi -I/usr/sr$
set -e ; perl /usr/src/kernels/2.6.32-042stab116.1/scripts/recordmcount.pl "x8664" "64" "objdump" "objcopy" "gcc" "ld" "nm" "" "" "1" "/tmp/vbox.0/SUPDrvGip.o";
gcc -Wp,-MD,/tmp/vbox.0/r0drv/.initterm-r0drv.o.d -nostdinc -isystem /usr/lib/gcc/x8664-redhat-linux/4.4.7/include -Iinclude -I/usr/src/kernels/2.6.32-042stab116.1/include/uapi -I/usr$
set -e ; perl /usr/src/kernels/2.6.32-042stab116.1/scripts/recordmcount.pl "x8664" "64" "objdump" "objcopy" "gcc" "ld" "nm" "" "" "1" "/tmp/vbox.0/SUPDrv.o";
set -e ; perl /usr/src/kernels/2.6.32-042stab116.1/scripts/recordmcount.pl "x8664" "64" "objdump" "objcopy" "gcc" "ld" "nm" "" "" "1" "/tmp/vbox.0/SUPDrvTracer.o";
gcc -Wp,-MD,/tmp/vbox.0/r0drv/.memobj-r0drv.o.d -nostdinc -isystem /usr/lib/gcc/x8664-redhat-linux/4.4.7/include -Iinclude -I/usr/src/kernels/2.6.32-042stab116.1/include/uapi -I/usr/s$
gcc -Wp,-MD,/tmp/vbox.0/r0drv/.mpnotification-r0drv.o.d -nostdinc -isystem /usr/lib/gcc/x8664-redhat-linux/4.4.7/include -Iinclude -I/usr/src/kernels/2.6.32-042stab116.1/include/uapi $
set -e ; perl /usr/src/kernels/2.6.32-042stab116.1/scripts/recordmcount.pl "x8664" "64" "objdump" "objcopy" "gcc" "ld" "nm" "" "" "1" "/tmp/vbox.0/r0drv/initterm-r0drv.o";
gcc -Wp,-MD,/tmp/vbox.0/r0drv/.powernotification-r0drv.o.d -nostdinc -isystem /usr/lib/gcc/x8664-redhat-linux/4.4.7/include -Iinclude -I/usr/src/kernels/2.6.32-042stab116.1/include/ua$
set -e ; perl /usr/src/kernels/2.6.32-042stab116.1/scripts/recordmcount.pl "x8664" "64" "objdump" "objcopy" "gcc" "ld" "nm" "" "" "1" "/tmp/vbox.0/r0drv/alloc-r0drv.o";
gcc -Wp,-MD,/tmp/vbox.0/r0drv/linux/.assert-r0drv-linux.o.d -nostdinc -isystem /usr/lib/gcc/x8664-redhat-linux/4.4.7/include -Iinclude -I/usr/src/kernels/2.6.32-042stab116.1/include/u$
set -e ; perl /usr/src/kernels/2.6.32-042stab116.1/scripts/recordmcount.pl "x8664" "64" "objdump" "objcopy" "gcc" "ld" "nm" "" "" "1" "/tmp/vbox.0/r0drv/powernotification-r0drv.o";
gcc -Wp,-MD,/tmp/vbox.0/r0drv/linux/.alloc-r0drv-linux.o.d -nostdinc -isystem /usr/lib/gcc/x8664-redhat-linux/4.4.7/include -Iinclude -I/usr/src/kernels/2.6.32-042stab116.1/include/ua$
set -e ; perl /usr/src/kernels/2.6.32-042stab116.1/scripts/recordmcount.pl "x86_64" "64" "objdump" "objcopy" "gcc" "ld" "nm" "" "" "1" "/tmp/vbox.0/r0drv/memobj-r0drv.o";
Last edited by socratis on 12. Oct 2016, 12:12, edited 1 time in total.
Reason: Enclosed the information in [code] tag for better readability
Martin
Volunteer
Posts: 2562
Joined: 30. May 2007, 18:05
Primary OS: Fedora other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: XP, Win7, Win10, Linux, OS/2

Re: Kernel driver not installed (rc=-1908) Error - Centos 6.8 x64

Post by Martin »

You need to find out how to switch your CentOS 6.8 to boot with the latest kernel.
Post Reply