Page 1 of 1
Kernel driver not installed (rc=-1908) Error - Centos 6.8 x64
Posted: 8. Oct 2016, 16:06
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
Re: Kernel driver not installed (rc=-1908) Error - Centos 6.8 x64
Posted: 8. Oct 2016, 17:00
by Perryg
Re: Kernel driver not installed (rc=-1908) Error - Centos 6.8 x64
Posted: 8. Oct 2016, 17:06
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
Re: Kernel driver not installed (rc=-1908) Error - Centos 6.8 x64
Posted: 8. Oct 2016, 17:55
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,
# 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
Re: Kernel driver not installed (rc=-1908) Error - Centos 6.8 x64
Posted: 8. Oct 2016, 18:17
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.
Re: Kernel driver not installed (rc=-1908) Error - Centos 6.8 x64
Posted: 10. Oct 2016, 12:40
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
|
Re: Kernel driver not installed (rc=-1908) Error - Centos 6.8 x64
Posted: 12. Oct 2016, 07:34
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";
Re: Kernel driver not installed (rc=-1908) Error - Centos 6.8 x64
Posted: 12. Oct 2016, 08:07
by Martin
You need to find out how to switch your CentOS 6.8 to boot with the latest kernel.