Oracle VM Virtualbox errors continued

I am having problems with Oracle VM Virtualbox. I get this error output:

wellywu@linux-pn0z:~> sudo su -
root’s password:
linux-pn0z:~ # /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.6.5-10-desktop cannot be found at
/lib/modules/3.6.5-10-desktop/build or /lib/modules/3.6.5-10-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)
linux-pn0z:~ #

How do I solve this problem? I was told to take it to Tumbleweed.

http://forums.opensuse.org/english/get-technical-help-here/applications/480204-oracle-vm-virtualbox-errors.html

make sure you have
linux-glibc-devel

and post result of

rpm -qa | grep kernel

wellywu@linux-pn0z:~> sudo su -
root’s password:
linux-pn0z:~ # zypper install linux-glibc-devel
Loading repository data…
Reading installed packages…
‘linux-glibc-devel’ is already installed.
No update candidate for ‘linux-glibc-devel-3.4.0-2.1.23.noarch’. The highest available version is already installed.
Resolving package dependencies…

Nothing to do.
linux-pn0z:~ # rpm -qa | grep kernel
kernel-desktop-devel-3.4.11-2.16.1.x86_64
kernel-default-3.6.5-10.1.x86_64
nfs-kernel-server-1.2.6-2.12.1.x86_64
kernel-source-3.4.11-2.16.1.noarch
kernel-devel-3.4.11-2.16.1.noarch
patterns-openSUSE-devel_kernel-12.2-5.5.1.x86_64
kernel-firmware-20120719git-2.9.1.noarch
kernel-syms-3.4.11-2.16.1.x86_64
kernel-xen-devel-3.4.11-2.16.1.x86_64
kernel-default-base-3.4.11-2.16.1.x86_64
kernel-default-devel-3.4.11-2.16.1.x86_64
kernel-desktop-3.6.5-10.1.x86_64
linux-pn0z:~ #

Now what do I do to solve this problem?

Have u got gcc and make installed

Uninstalling modules from DKMS
removing old DKMS module vboxhost version 4.2.4


Deleting module version: 4.2.4
completely from the DKMS tree.

Done.
Attempting to install using DKMS

Creating symlink /var/lib/dkms/vboxhost/4.2.4/source ->
/usr/src/vboxhost-4.2.4

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:184: 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.4.11-2.16/Module.symvers
is missing; modules will have no dependencies and modversions.

make -f scripts/Makefile.build obj=/tmp/vbox.0
/tmp/vbox.0/Makefile:184: 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.7/include -I/usr/src/linux-3.4.11-2.16/arch/x86/include -Iarch/x86/include/generated -Iinclude -include /usr/src/linux-3.4.11-2.16/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 -mno-avx -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.4.11-2.16/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

Your kernel is 3.6.5
All the depends are 3.4.11

I upgraded kernel-devel to Linux kernel 3.6.5-10-desktop and I recompiled the virtualbox DKMS modules. It works! Solved!

And in the meantime, did you update the other kernel-* packages as well?

I upgraded most of the other kernel-* packages as well. I could not upgrade the kernel-default-base and kernel-desktop-base to 3.6.5-10 because it would break compatibility with my current Linux kernel 3.6.5-10-desktop. I am installing Red Hat Fedora 17 64 bit into a second guest virtual machine using Oracle VM Virtualbox right now. It still works after I woke up from sleep earlier this morning.

I took a better look at some output you gave us. Why are you having both kernel-desktop-base and kernel-default-base installed? Seems to me that you have been messing with the kernel packages. A rule considering kernel-packages: they need to be one version for all. You can’t “upgrade most of” when the kernel is considered, not unless you force your way through, IMHO.
So, please again post output of


uname -a
rpm -qa | grep kernel-

and don’t make changes in the meantime

linux-pn0z:~ # uname -a
Linux linux-pn0z.site 3.6.5-10-desktop #1 SMP PREEMPT Wed Oct 31 20:15:15 UTC 2012 (cefb3b0) x86_64 x86_64 x86_64 GNU/Linux
linux-pn0z:~ # rpm -qa | grep kernel-
kernel-default-devel-3.6.5-10.1.x86_64
kernel-default-3.6.5-10.1.x86_64
nfs-kernel-server-1.2.6-2.12.1.x86_64
kernel-desktop-devel-3.6.5-10.1.x86_64
patterns-openSUSE-devel_kernel-12.2-5.5.1.x86_64
kernel-firmware-20120719git-2.9.1.noarch
kernel-source-3.6.5-10.1.noarch
kernel-default-base-3.4.11-2.16.1.x86_64
kernel-devel-3.6.5-10.1.noarch
kernel-desktop-3.6.5-10.1.x86_64
kernel-desktop-base-3.4.11-2.16.1.x86_64
linux-pn0z:~ #

Please post output between CODE tags. Compare your output to mine from my laptop


knurpht@laptop:/home/glosscomputer> cd
knurpht@laptop:~> uname -a
Linux laptop.knurpht 3.6.5-10-desktop #1 SMP PREEMPT Wed Oct 31 20:15:15 UTC 2012 (cefb3b0) x86_64 x86_64 x86_64 GNU/Linux
knurpht@laptop:~> rpm -qa | grep kernel-
patterns-openSUSE-devel_kernel-12.2-5.5.1.x86_64
kernel-default-devel-3.6.5-10.1.x86_64
kernel-firmware-20120719git-2.2.noarch
kernel-desktop-3.6.5-10.1.x86_64
kernel-desktop-devel-3.6.5-10.1.x86_64
kernel-devel-3.6.5-10.1.noarch
kernel-source-3.6.5-10.1.noarch
nfs-kernel-server-1.2.6-2.12.1.x86_64


and remove the packages you have and I don’t. If you run into problems doing so, please first post the details.

I just deleted kernel-default-base 3.4.x. I could not get rid of the other stuff because it would either break Oracle VM Virtualbox or my Realtek Communications, Inc. SD Card slot compatibility. I think that is all I needed to do. Thank you very much for your help.

If either of them is depending on kernel-default, they will not run on kernel-desktop. You really need to fix this.

I got rid of kernel-desktop-base 3.4 by removing an unnecessary old Oracle VM Virtualbox package. I need to reboot my System76 PC now.

wellywu@linux-pn0z:~> sudo su -
root’s password:
linux-pn0z:~ # uname -a
Linux linux-pn0z.site 3.6.5-10-desktop #1 SMP PREEMPT Wed Oct 31 20:15:15 UTC 2012 (cefb3b0) x86_64 x86_64 x86_64 GNU/Linux
linux-pn0z:~ # rpm -qa | grep kernel-
kernel-default-devel-3.6.5-10.1.x86_64
kernel-default-3.6.5-10.1.x86_64
nfs-kernel-server-1.2.6-2.12.1.x86_64
kernel-desktop-devel-3.6.5-10.1.x86_64
patterns-openSUSE-devel_kernel-12.2-5.5.1.x86_64
kernel-firmware-20120719git-2.9.1.noarch
kernel-source-3.6.5-10.1.noarch
kernel-devel-3.6.5-10.1.noarch
kernel-desktop-3.6.5-10.1.x86_64
linux-pn0z:~ #

Now, it looks like it is solved. Thank you very much for your help and guidance.

It’s a learning curve
But pleased we pointed you in the right direction.