View Full Version : innotek VirtualBox 1.5 / FC6 / can't / kernel driver not installed

15th October 2007, 10:44 PM

I recently installed innotek VBox on FC6. The installation process was fine except for the kernel driver. I get the following error message :

VirtualBox kernel driver not installed. The vboxdrv kernel module was either not loaded or /dev/vboxdrv was not created for some reason. Re-setup the kernel module by executing '/etc/init.d/vboxdrv setup' as root.

I tried to re-setup the kernel by executing the requested function :

/etc/init.d/vboxdrv setup

but it returns me this : "recompiling VirtualBox kernel module [FAILED]

If I check the log, I get this :

make KBUILD_VERBOSE=1 -C /lib/modules/ SUBDIRS=/tmp/vbox.16 SRCROOT=/tmp/vbox.16 modules
/usr/src/kernels/ line 11: gcc: command not found
/usr/src/kernels/ line 12: gcc: command not found
make[1]: gcc : commande introuvable
make[1]: entrant dans le répertoire « /usr/src/kernels/ »
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; \
mkdir -p /tmp/vbox.16/.tmp_versions
rm -f /tmp/vbox.16/.tmp_versions/*
make -f scripts/Makefile.build obj=/tmp/vbox.16
gcc -Wp,-MD,/tmp/vbox.16/linux/.SUPDrv-linux.o.d -nostdinc -isystem -D__KERNEL__ -Iinclude -include include/linux/autoconf.h -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Os -pipe -msoft-float -mregparm=3 -freg-struct-return -march=i586 -ffreestanding -maccumulate-outgoing-args -Iinclude/asm-i386/mach-generic -Iinclude/asm-i386/mach-default -fomit-frame-pointer -g -I/lib/modules/ -I/tmp/vbox.16/ -I/tmp/vbox.16/include -I/tmp/vbox.16/r0drv/linux -D__KERNEL__ -DMODULE -DRT_OS_LINUX -DIN_RING0 -DIN_RT_R0 -DIN_SUP_R0 -DCONFIG_VBOXDRV_AS_MISC -DRT_ARCH_X86 -DUSE_NEW_OS_INTERFACE_FOR_MM -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(SUPDrv_linux)" -D"KBUILD_MODNAME=KBUILD_STR(vboxdrv)" -c -o /tmp/vbox.16/linux/.tmp_SUPDrv-linux.o /tmp/vbox.16/linux/SUPDrv-linux.c
/bin/sh: gcc: command not found
make[2]: *** [/tmp/vbox.16/linux/SUPDrv-linux.o] Erreur 127
make[1]: *** [_module_/tmp/vbox.16] Erreur 2
make[1]: quittant le répertoire « /usr/src/kernels/ »
make: *** [vboxdrv] Erreur 2

I am sure that my kernel-devel is the same version than my kernel (

Anybody has an idee ?

15th October 2007, 10:53 PM
are you following the guide that is given on innotek's website?

15th October 2007, 11:03 PM
tks for your quick answer :)

you must be talking about this manual :


I can see this explanation in it :

11.4.1 Linux kernel module refuses to load

If the VirtualBox kernel module (vboxdrv) refuses to load, i.e. you get an “Error inserting
vboxdrv: Invalid argument”, check (as root) the output of the dmesg command
to find out why the load failed. The most common reasons are:
• With Linux 2.6.19 and higher, the NMI watchdog may be active. Add
nmi_watchdog=0 to the kernel command line (e.g. in your grub configuration)
and reboot. With the Debian and Ubuntu installation modules, execute
sudo dpkg-reconfigure virtualbox again.
• The kernel disagrees about the version of the gcc used to compile the module.
Make sure that you use the same compiler as used to build the kernel.

But anyway, I am not sure to understand what I need to do :(

4th December 2007, 11:16 PM
yum install gcc ;)