Hello,
I have installed the latest virtualbox version in OpenSuse 12.2.
When i try to run it i receive the message :
WARNING: The vboxdrv kernel module is not loaded. Either there is no module
available for the current kernel (3.4.6-2.10-desktop) or it failed to
load. Please recompile the kernel module and install it by
sudo /etc/init.d/vboxdrv setup
You will not be able to start VMs until this problem is fixed.
And when i type (in superuser mode) /etc/init.d/vboxdrv setup i receive:
Stopping VirtualBox kernel modules done
Uninstalling old VirtualBox DKMS kernel modules done
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)
The log/vbox-install.log says
Makefile:181: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again. Stop.
What can i do to fix it?
Thank you in advance
Virtulabox doesnt work
-
Y E T I
- Posts: 161
- Joined: 9. Aug 2010, 01:47
- Primary OS: Other
- VBox Version: OSE self-compiled
- Guest OSses: ?
- Location: H i m a l a y a s
- Contact:
Re: Virtulabox doesnt work
install what it is telling you to install. kernel-source and kernel-syms
Re: Virtulabox doesnt work
I installed kernel-source and kernel-syms
I did the same mentioned above and the log file now writes:
make KBUILD_VERBOSE=1 SUBDIRS=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 CONFIG_MODULE_SIG= -C /lib/modules/3.4.6-2.10-desktop/build modules
make -C /usr/src/linux-3.4.6-2.10-obj/x86_64/desktop \
KBUILD_SRC=/usr/src/linux-3.4.6-2.10 \
KBUILD_EXTMOD="/tmp/vbox.0" -f /usr/src/linux-3.4.6-2.10/Makefile \
modules
/usr/src/linux-3.4.6-2.10/arch/x86/Makefile:96: CONFIG_X86_X32 enabled but no binutils support
make[3]: gcc: Command not found
test -e include/generated/autoconf.h -a -e include/config/auto.conf || ( \
echo; \
echo " ERROR: Kernel configuration is invalid."; \
echo " include/generated/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 /usr/src/linux-3.4.6-2.10/scripts/Makefile.build obj=/tmp/vbox.0
gcc -Wp,-MD,/tmp/vbox.0/linux/.SUPDrv-linux.o.d -nostdinc -isystem -I/usr/src/linux-3.4.6-2.10/arch/x86/include -Iarch/x86/include/generated -Iinclude -I/usr/src/linux-3.4.6-2.10/include -include /usr/src/linux-3.4.6-2.10/include/linux/kconfig.h -I/tmp/vbox.0 -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -O2 -m64 -mno-red-zone -mcmodel=kernel -maccumulate-outgoing-args -pipe -Wno-sign-compare -fomit-frame-pointer -fasynchronous-unwind-tables -g -include /tmp/vbox.0/include/VBox/SUPDrvMangling.h -I/lib/modules/3.4.6-2.10-desktop/build/include -I/tmp/vbox.0/ -I/tmp/vbox.0/include -I/tmp/vbox.0/r0drv/linux -I/tmp/vbox.0/vboxdrv/ -I/tmp/vbox.0/vboxdrv/include -I/tmp/vbox.0/vboxdrv/r0drv/linux -D__KERNEL__ -DMODULE -DRT_OS_LINUX -DIN_RING0 -DIN_RT_R0 -DIN_SUP_R0 -DVBOX -DRT_WITH_VBOX -DVBOX_WITH_HARDENING -DCONFIG_VBOXDRV_AS_MISC -DRT_ARCH_AMD64 -DVBOX_
WITH_64_BITS_GUESTS -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(SUPDrv_linux)" -D"KBUILD_MODNAME=KBUILD_STR(vboxdrv)" -c -o /tmp/vbox.0/linux/.tmp_SUPDrv-linux.o /tmp/vbox.0/linux/SUPDrv-linux.c
/bin/sh: gcc: command not found
make[4]: *** [/tmp/vbox.0/linux/SUPDrv-linux.o] Error 127
make[3]: *** [_module_/tmp/vbox.0] Error 2
make[2]: *** [sub-make] Error 2
make[1]: *** [all] Error 2
make: *** [vboxdrv] Error 2
I did the same mentioned above and the log file now writes:
make KBUILD_VERBOSE=1 SUBDIRS=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 CONFIG_MODULE_SIG= -C /lib/modules/3.4.6-2.10-desktop/build modules
make -C /usr/src/linux-3.4.6-2.10-obj/x86_64/desktop \
KBUILD_SRC=/usr/src/linux-3.4.6-2.10 \
KBUILD_EXTMOD="/tmp/vbox.0" -f /usr/src/linux-3.4.6-2.10/Makefile \
modules
/usr/src/linux-3.4.6-2.10/arch/x86/Makefile:96: CONFIG_X86_X32 enabled but no binutils support
make[3]: gcc: Command not found
test -e include/generated/autoconf.h -a -e include/config/auto.conf || ( \
echo; \
echo " ERROR: Kernel configuration is invalid."; \
echo " include/generated/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 /usr/src/linux-3.4.6-2.10/scripts/Makefile.build obj=/tmp/vbox.0
gcc -Wp,-MD,/tmp/vbox.0/linux/.SUPDrv-linux.o.d -nostdinc -isystem -I/usr/src/linux-3.4.6-2.10/arch/x86/include -Iarch/x86/include/generated -Iinclude -I/usr/src/linux-3.4.6-2.10/include -include /usr/src/linux-3.4.6-2.10/include/linux/kconfig.h -I/tmp/vbox.0 -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -O2 -m64 -mno-red-zone -mcmodel=kernel -maccumulate-outgoing-args -pipe -Wno-sign-compare -fomit-frame-pointer -fasynchronous-unwind-tables -g -include /tmp/vbox.0/include/VBox/SUPDrvMangling.h -I/lib/modules/3.4.6-2.10-desktop/build/include -I/tmp/vbox.0/ -I/tmp/vbox.0/include -I/tmp/vbox.0/r0drv/linux -I/tmp/vbox.0/vboxdrv/ -I/tmp/vbox.0/vboxdrv/include -I/tmp/vbox.0/vboxdrv/r0drv/linux -D__KERNEL__ -DMODULE -DRT_OS_LINUX -DIN_RING0 -DIN_RT_R0 -DIN_SUP_R0 -DVBOX -DRT_WITH_VBOX -DVBOX_WITH_HARDENING -DCONFIG_VBOXDRV_AS_MISC -DRT_ARCH_AMD64 -DVBOX_
WITH_64_BITS_GUESTS -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(SUPDrv_linux)" -D"KBUILD_MODNAME=KBUILD_STR(vboxdrv)" -c -o /tmp/vbox.0/linux/.tmp_SUPDrv-linux.o /tmp/vbox.0/linux/SUPDrv-linux.c
/bin/sh: gcc: command not found
make[4]: *** [/tmp/vbox.0/linux/SUPDrv-linux.o] Error 127
make[3]: *** [_module_/tmp/vbox.0] Error 2
make[2]: *** [sub-make] Error 2
make[1]: *** [all] Error 2
make: *** [vboxdrv] Error 2
-
Y E T I
- Posts: 161
- Joined: 9. Aug 2010, 01:47
- Primary OS: Other
- VBox Version: OSE self-compiled
- Guest OSses: ?
- Location: H i m a l a y a s
- Contact:
Re: Virtulabox doesnt work
Now it says gcc is not found. so install gcc