11.2 + Virtualbox 3.0.12

Hi,

Trying to run VirtualBox and getting this message

WARNING: The vboxdrv kernel module is not loaded. Either there is no module
available for the current kernel (2.6.31.5-0.1-default) 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.

WARNING: The compilation of the vboxdrv.ko kernel module failed during the
installation for some reason. Starting a VM will not be possible.
Please consult the User Manual for build instructions.
/usr/bin/VirtualBox: line 72: /usr/lib/virtualbox/VirtualBox: Permission denied
/usr/bin/VirtualBox: line 72: exec: /usr/lib/virtualbox/VirtualBox: cannot execute: Permission denied

So therefore as root running /etc/init.d/vboxdrv setup

Makefile:150: 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 -C /usr/src/linux SUBDIRS=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 modules
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)

  ERROR: Kernel configuration is invalid.
         include/linux/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-2.6.31.5-0.1/Module.symvers
           is missing; modules will have no dependencies and modversions.

make -f scripts/Makefile.build obj=/tmp/vbox.0
/tmp/vbox.0/Makefile:150: 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.4/include -Iinclude  -I/usr/src/linux-2.6.31.5-0.1/arch/x86/include -include include/linux/autoconf.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 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -fomit-frame-pointer -I/usr/src/linux/include -I/tmp/vbox.0/ -I/tmp/vbox.0/include -I/tmp/vbox.0/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: error: code model 'kernel' not supported in the 32 bit mode
/tmp/vbox.0/linux/SUPDrv-linux.c:1: 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

Any advice please?

Did you install the kernel source headers? It is needed to compile the virtualbox.

I’m running 3.1.0 without any problems?

It will try to compile the module only if the kernel version is not matching.

I just installed VBoix 3.0.12 on my openSUSE 11.2 64bit.

  1. Make sure you have kernel-source, kernel-syms and make installed, just in case gcc also.
  2. Download the All Distributions vbox package from download page and install it.

I had no probs, except gotta figure out how to enable sound under win7 in vbox session.

… or get .rpm from here:

Index of /virtualbox/3.0.12/

kernel-syms NEEDS to be installed !

I had a similar issue…since I have been running VBOX on 11.1 for a long time, I was puzzled when I ran into problems after installing VBOX 3.0.12 on 11.2.

Following solved my issue:

install kernel-headers
install kernel-syms
install make
install gcc

add users to vbox group

**compile: **/etc/init.d/vboxdrv setup

keep an eye on:vbox-install.log
in /var/log

hopes it helps you!

Spot on - Thanks Andreas (all)

I have a similar problem.
I tried with all versions VirtualBox 3.0.x ;from OSS repo, from BuildService, from VirtualBox.org and nothing works.

I’m running on openSuSE 11.2 x86_64 , HP 6830 (Intel P8400 / 3gb).

I have installed Kernel syms , source and more.

/etc/init.d/vboxdrv setup ; ends without errors, but when VM start I get this error:

"Recompiling VirtualBox kernel module, NOT. It has been packaged.Recompiling VirtualBox netflt kernel module, NOT. It has been packaged. "

or with .org version 3.0.12:

This VM can’t execute in a KVM env

You can download and install the prebuilt package from the Sun VirtualBox Download section, and it will appear to install on its own, but actually as noted above, you have to recompile the Kernel to support it. There is a list of files needed at the web site, most are noted above. There is one more that will be needed for including USB support for the client. Note that this information does not pertain to the OSE version of VirtualBox, but details on installing that on several Linux distros (including OpenSUSE) also appears on the Sun website. Just have to search for it.

I have noted a problem with Sun’s VirtualBox, which is that I am not able to get the website successfully added to the Repository list. I mean it’s there, but efforts to resolve the repo key matter have simply failed. Not immediately needed, but helpful if you want the latest and greatest version when it comes out.

Anyway, if you got the virtualbox location added to the Repository list and checked out okay, I would not mind learning exactly how you did that. I got a bunch of other addings done, but this is a stickler.

I installed it today from sun’s pre-built package and followed the instructions from here:
VirtualBox - openSUSE

No problems but, I’ll admit it took me some time to understand some of the CLI concepts.

Hi,

Yup I’ve got the repository added/working. I downloaded the public key from here http://download.virtualbox.org/virtualbox/debian/sun_vbox.asc

And then added via software repositories http://download.virtualbox.org/virtualbox/rpm/opensuse/11.1/virtualbox.repo

Then clicked gpg keys and pointed it at the key I’d just downloaded.

If I remember correctly I did get an error the first time it updated the package list, and then after that no errors. And was able to use standard suse install software gui to install 3.0.12.

Obviously that repository is for 11.1/11.2.

Regards