Page 1 of 1
Opensuse 2.1. vboxdrv setup ERROR
Posted: 22. Nov 2011, 10:24
by svratonzo
Hi
installed VB on Opensuse 12.1.
After start he ask me for execute "vboxdrv setup".
But i obtain this error:
simone@xfcemone:~> sudo /etc/init.d/vboxdrv setup
root's password:
Stopping VirtualBox kernel modules done
Uninstalling old VirtualBox DKMS kernel modules done
Trying to register the VirtualBox kernel modules using DKMS
Error! Your kernel headers for kernel 3.1.0-1.2-desktop cannot be found at
/lib/modules/3.1.0-1.2-desktop/build or /lib/modules/3.1.0-1.2-desktop/source.
failed
(Failed, trying without DKMS)
Recompiling VirtualBox kernel modules failed
(Look at /var/log/vbox-install.log to find out what went wrong)
DKMS is installed
in path specified tehere is not "build" directory:
simone@xfcemone:~> ls /lib/modules/3.1.0-1.2-desktop/build
ls: cannot access /lib/modules/3.1.0-1.2-desktop/build: No such file or directory
simone@xfcemone:~>
simone@xfcemone:~> ls /lib/modules/3.1.0-1.2-desktop/
kernel modules.alias.bin modules.builtin.bin modules.dep.bin modules.order modules.symbols vdso
modules.alias modules.builtin modules.dep modules.devname modules.softdep modules.symbols.bin weak-updates
How to?
Thank you
Re: Opensuse 2.1. vboxdrv setup ERROR
Posted: 22. Nov 2011, 16:05
by Perryg
Error! Your kernel headers for kernel 3.1.0-1.2-desktop cannot be found at
/lib/modules/3.1.0-1.2-desktop/build or /lib/modules/3.1.0-1.2-desktop/source.
failed
You need to install the kernel-headers.
Re: Opensuse 2.1. vboxdrv setup ERROR
Posted: 22. Nov 2011, 21:04
by fco.navarro
Hi! i had the same problem and i done installing kmv and kernel-source from yast i hope u getit!!

Re: Opensuse 2.1. vboxdrv setup ERROR
Posted: 29. Dec 2011, 18:03
by coreyAlbright
put this into the terminal
cat /var/log/vbox-install.log
rpm -K rpmforge-release-0.5.2-2.el6.rf.*.rpm
rpm --import //apt.sw.be/RPM-GPG-KEY.dag.txt <- put h t t p : before the slashes (requires me to be a member for a day )
yum --enablerepo rpmforge install dkms
yum install htop
/etc/init.d/vboxdrv setup
reboot
Re: Opensuse 2.1. vboxdrv setup ERROR
Posted: 30. Jan 2012, 09:01
by 3double8
Hi guys,
Did the above recommendation work for anyone? I still get the same error even after reinstalling required kernel-headers. I am running OpenSUSE 12.1 as host and Windows 7 as guest OS. Here's is what is in my /var/log/vbox-install.log file:
Code: Select all
cat /var/log/vbox-install.log
Uninstalling modules from DKMS
removing old DKMS module vboxhost version 4.1.8
------------------------------
Deleting module version: 4.1.8
completely from the DKMS tree.
------------------------------
Done.
Attempting to install using DKMS
Creating symlink /var/lib/dkms/vboxhost/4.1.8/source ->
/usr/src/vboxhost-4.1.8
DKMS: add Completed.
You can use the --kernelsourcedir option to tell DKMS where it's located.
Failed to install using DKMS, attempting to install without
Makefile:175: Warning: using /usr/src/linux as the source directory of your Linux kernel. If this is not correct, specify KERN_DIR=<directory> and run Make again.
make KBUILD_VERBOSE=1 SUBDIRS=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 CONFIG_MODULE_SIG= -C /usr/src/linux modules
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)
ERROR: Kernel configuration is invalid.
include/generated/autoconf.h or include/config/auto.conf are missing.
Run 'make oldconfig && make prepare' on kernel src to fix it.
mkdir -p /tmp/vbox.0/.tmp_versions ; rm -f /tmp/vbox.0/.tmp_versions/*
WARNING: Symbol version dump /usr/src/linux-3.2.1-3/Module.symvers
is missing; modules will have no dependencies and modversions.
make -f scripts/Makefile.build obj=/tmp/vbox.0
/tmp/vbox.0/Makefile:175: Warning: using /usr/src/linux as the source directory of your Linux kernel. If this is not correct, specify KERN_DIR=<directory> and run Make again.
gcc -Wp,-MD,/tmp/vbox.0/linux/.SUPDrv-linux.o.d -nostdinc -isystem /usr/lib/gcc/i586-suse-linux/4.6/include -I/usr/src/linux-3.2.1-3/arch/x86/include -Iarch/x86/include/generated -Iinclude -include /usr/src/linux-3.2.1-3/include/linux/kconfig.h -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 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -fomit-frame-pointer -DCC_HAVE_ASM_GOTO -include /tmp/vbox.0/include/VBox/SUPDrvMangling.h -I/usr/src/linux/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_X86 -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/SUPDrv-linux.o /tmp/vbox.0/linux/SUPDrv-linux.c
/tmp/vbox.0/linux/SUPDrv-linux.c:1:0: error: code model ‘kernel’ not supported in the 32 bit mode
/tmp/vbox.0/linux/SUPDrv-linux.c:1:0: sorry, unimplemented: 64-bit mode not compiled in
make[2]: *** [/tmp/vbox.0/linux/SUPDrv-linux.o] Error 1
make[1]: *** [_module_/tmp/vbox.0] Error 2
make: *** [vboxdrv] Error 2
I am at wit's end here. Tried almost everything besides reinstalling the OS which I see no use for since every other application works fine except VB (which was working perfect until I upgraded the version).Please help
Appreciated.
Re: Opensuse 2.1. vboxdrv setup ERROR
Posted: 30. Jan 2012, 09:38
by 3double8
Here is output from rpm -qa | grep kernel
Code: Select all
kernel-pae-devel-3.2.1-3.1.i586
kernel-debug-3.2.1-3.1.i586
kernel-syms-3.2.1-3.1.i586
kernel-default-devel-3.2.1-3.1.i586
kernel-desktop-3.1.0-1.2.1.i586
kernel-devel-3.2.1-3.1.noarch
kernel-source-vanilla-3.2.1-3.1.noarch
kernel-source-3.2.1-3.1.noarch
kernel-default-3.1.0-1.2.1.i586
kernel-firmware-20111025git-4.1.noarch
kernel-xen-devel-3.2.1-3.1.i586
kernel-desktop-devel-3.2.1-3.1.i586
Re: Opensuse 2.1. vboxdrv setup ERROR
Posted: 30. Jan 2012, 16:37
by 3double8
Figured out the problem after posting this. Downgraded my kernel version to 3.1.9. I'm off to find a cold drink now.