I am unable to make VirualBox work with Suse 12.1.

I am unable to make VirualBox work with Suse 12.1. I am getting the same error as mentioned below. Here are the steps i followed

  1. Created a repository and installed Virtual Box
  2. Added myself and root in virtualbox group
  3. Downloaded and installed packman DKMS rpm
  4. Enabled as mentioned
    [X] Base Development
    [X] Linux Kernel Development
    [X] C/C++ Development

But still no luck.

Any help will be appreciated.

Thanks

/etc/init.d/vboxdrv setup
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.

I’ll move this post to the Vitualization forum for you, more folks will see it there and maybe respond

Did you follow the RPM prerequisites in the tutorial here: http://forums.opensuse.org/content/59-how-install-virtualbox-opensuse-11-4-12-1-tumbleweed.html

Probably you did, but run this command, check what you have installed: rpm -qa | egrep “kernel|gcc|make”

Something is wrong with your installed kernel-pacakges. Sources etc,. are not those of the running kernel version, First update your system, so that all kernel related packages have the same, the running kernel’s, version

The openSUSE 12.1 kernel is up to verion 3.1.9 so you have not done a system update since the intial installation. Also, DKMS does not seem to work in openSUSE 12.1 without some modification due to the switch to systemd (though I think the Bumblebee setup for dual video chipsets for laptops does have DKMS working OK). See my blog on the DKMS subject here: DKMS, systemd & Virtual Box - How to get Dynamic Kernel Module Support to work in openSUSE 12.1 - Blogs - openSUSE Forums

Thank You,

This is the output of suggested command

linux-df7v:/home/jainparv # rpm -qa | egrep “kernel|gcc|make”
gcc46-4.6.2_20111026-1.1.4.x86_64
kernel-firmware-20111025git-1.7.1.noarch
make-3.82-147.1.2.x86_64
kernel-desktop-devel-3.1.9-1.4.1.x86_64
gcc-4.6-15.1.3.x86_64
kernel-desktop-3.1.0-1.2.1.x86_64
libgcc46-32bit-4.6.2_20111026-1.1.4.x86_64
libgcc46-4.6.2_20111026-1.1.4.x86_64
kernel-devel-3.1.9-1.4.1.noarch

I rebuild the machine and followed the steps from the blog http://forums.opensuse.org/content/59-how-install-virtualbox-opensuse-11-4-12-1-tumbleweed.html

Below are the errors in installation. It looks like something is not correct here.

akefile: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.1.9-1.4/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/lib64/gcc/x86_64-suse-linux/4.6/include -I/usr/src/linux-3.1.9-1.4/arch/x86/include -Iarch/x86/include/generated -Iinclude -include /usr/src/linux-3.1.9-1.4/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 -funit-at-a-time -maccumulate-outgoing-args -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -fno-stack-protector -Wno-unused-but-set-variable -fomit-frame-pointer -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -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_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/SUPDrv-linux.o /tmp/vbox.0/linux/SUPDrv-linux.c
In file included from <command-line>:0:0:
/usr/src/linux-3.1.9-1.4/include/linux/kconfig.h:4:32: fatal error: generated/autoconf.h: No such file or directory
compilation terminated.
make[2]: *** [/tmp/vbox.0/linux/SUPDrv-linux.o] Error 1
make[1]: *** [module/tmp/vbox.0] Error 2
make: *** [vboxdrv] Error 2

kernel-desktop-devel-3.1.9-1.4.1.x86_64

kernel-desktop-3.1.0-1.2.1.x86_64

Those versions don’t match. You need to update (e.g. Yast → online update or e.g. zypper dup) and then it should work OK

So, you have done something wrong, but its hard to tell just what for sure. For instance, you would not normally have the kernel: kernel-desktop-3.1.0-1.2.1.x86_64 & the developer package: kernel-desktop-devel-3.1.9-1.4.1.x86_64 as they are not the same version but they should be. And as a new user, I would not go for Tumbleweed right off the bat as you would need to get it right and working properly before trying to load in VirtualBox. Why not install the regular openSUSE 12.1 version, update it, install the kernel sources and make sure all is well before moving on? Many of us here are using VirtualBox and it does work under several system combinations, but the kernel versions loaded can not all be different normally to get it to work.

Thank You,

James, that is openSUSE 12.1, not Tumbleweed. Tumbleweed Kernel is 3.2.9.

Yes, the word Tumbleweed in the message title has got me confused, but I am not the only one here I think.

Thank You,

Thanks guys, i got the issue and trying to re-install. I am having another stumbling block after re-install. It looks every thing is installed correctly but machine does not boot and i am seeing following error

Error no active partition

It looks like my disk partition is screwed up. I am trying to get over that before moving further.

Thanks

On 03/09/2012 10:46 PM, jainparv wrote:
>
> jdmcdaniel3;2447145 Wrote:
>> Yes, the word Tumbleweed in the message title has got me confused, but I
>> am not the only one here I think.
>>
>> Thank You,
>
> Thanks guys, i got the issue and trying to re-install. I am having
> another stumbling block after re-install. It looks every thing is
> installed correctly but machine does not boot and i am seeing following
> error
>
> Error no active partition
>
> It looks like my disk partition is screwed up. I am trying to get over
> that before moving further.

You have the standard Microsoft code in the MBR. When the code runs, it tries to
find a primary partition that has the “boot” flag set. When it finds none, it
issues the message above.

You need to boot a rescue or Live CD and run fdisk. The active or bootable
partition is set with the “a” command. The correct active partition is the one
containing / if it is one of partitions 1-4. If it is 5 or higher, then make the
extended partition container active.