Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: virtualbox problems (Error! Your kernel headers for kernel 2.6.34-12-desktop cannot be found at)

  1. #1

    Default virtualbox problems (Error! Your kernel headers for kernel 2.6.34-12-desktop cannot be found at)

    Hi all, I'm just installed OpenSuse 11.3 (64) on a 30gb SSD, hoping to get virtualbox 4.0 running to virtualize an instance of Windows 7.

    I went through some pain with my Nvidia video card and actually getting vb to install, but through lots of searching and tinkering got here.

    I created a vm in the vb control panel, but when I go to start it I get:

    Code:
    Failed to open a session for the virtual machine Win7Main.
    The virtual machine 'Win7Main' has terminated unexpectedly during startup with exit code 1.
    
    Details:
    
    
    Result Code: 
    NS_ERROR_FAILURE (0x80004005)
    Component: 
    Machine
    Interface: 
    IMachine {662c175e-a69d-40b8-a77a-1d719d0ab062}
    Then another popup:

    Code:
    Kernel driver not installed (rc=-1908)
    
    The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or there is a permission problem with /dev/vboxdrv. Please reinstall the kernel module by executing
    
    '/etc/init.d/vboxdrv setup'
    
    as root. Users of Ubuntu, Fedora or Mandriva should install the DKMS package first. This package keeps track of Linux kernel changes and recompiles the vboxdrv kernel module if necessary.
    So I tried running that vboxdrv setup command as root but ran into problems:

    Code:
    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)
    Here's vbox-install.log:

    Code:
    linux-dehy:~ # cat /var/log/vbox-install.log
    Makefile:170: 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 -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-2.6.34.7-0.5/Module.symvers
               is missing; modules will have no dependencies and modversions.
    
    make -f scripts/Makefile.build obj=/tmp/vbox.0
    /tmp/vbox.0/Makefile:170: 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.5/include -I/usr/src/linux-2.6.34.7-0.5/arch/x86/include -Iinclude  -include include/generated/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 -funit-at-a-time -maccumulate-outgoing-args -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -fno-stack-protector -fomit-frame-pointer -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fno-dwarf2-cfi-asm -fconserve-stack -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
    cc1: fatal error: include/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
    Through my searching for an answer, I have installed dkms, devel_kernel, and possibly a couple other things that obviously didn't work. I have resorted to asking for help.

    Oh, and I tried asking at the virtualbox forums, but there's an anti-spam question:

    Code:
    Latest VirtualBox Release Version:
    The last RELEASED version of VirtualBox. See our website home page. (Anti-SPAM measure)
    Am I crazy, or is the answer not 4.0? Or 4. Or 4.00. Nothing works...

    Anyways, this forum has always held answers for me before so I thought I'd give it a shot.

    Thank you for any help.

  2. #2

    Default Re: virtualbox problems (Error! Your kernel headers for kernel 2.6.34-12-desktop cannot be found at)

    Some additional info:

    Code:
    linux-dehy:/home/smith # rpm -qa | grep kernel
    kernel-desktop-2.6.34-12.3.x86_64
    patterns-openSUSE-devel_kernel-11.3-22.1.x86_64
    kernel-default-devel-2.6.34.7-0.5.1.x86_64
    kernel-source-2.6.34.7-0.5.1.noarch
    kernel-devel-2.6.34.7-0.5.1.noarch
    kernel-xen-devel-2.6.34.7-0.5.1.x86_64
    kernel-desktop-devel-2.6.34.7-0.5.1.x86_64
    kernel-syms-2.6.34.7-0.5.1.x86_64
    linux-dehy:/home/smith # uname -a
    Linux linux-dehy 2.6.34-12-desktop #1 SMP PREEMPT 2010-06-29 02:39:08 +0200 x86_64 x86_64 x86_64 GNU/Linux

  3. #3
    Join Date
    Nov 2009
    Location
    West Virginia Sector 13
    Posts
    15,651

    Default Re: virtualbox problems (Error! Your kernel headers for kernel 2.6.34-12-desktop cannot be found at)

    You may be confusing things with all those development sources you need only source and sym pus the c compiler gcc

  4. #4

    Default Re: virtualbox problems (Error! Your kernel headers for kernel 2.6.34-12-desktop cannot be found at)

    You have the kernel sources and headers for kernel 2.6.34.7-0.5 (which is right) but you're booting kernel 2.6.34-12 (which is wrong). You should update to the latest kernel (2.6.34.7-0.5) first. If kernel version and sources don't match, it cannot work.
    When you have fixed that issue, here's a quick howto about VirtualBox 4.0

  5. #5
    Join Date
    Jun 2008
    Location
    Groningen, Netherlands
    Posts
    19,662
    Blog Entries
    14

    Default Re: virtualbox problems (Error! Your kernel headers for kernel 2.6.34-12-desktop cannot be found at)

    Quote Originally Posted by please_try_again View Post
    You have the kernel sources and headers for kernel 2.6.34.7-0.5 (which is right) but you're booting kernel 2.6.34-12 (which is wrong). You should update to the latest kernel (2.6.34.7-0.5) first. If kernel version and sources don't match, it cannot work.
    When you have fixed that issue, here's a quick howto about VirtualBox 4.0
    Mind: you need to run /etc/init.d/vboxdrv setup after updating the kernel and rebooting. It will still report 'failed' on DKMS, but will create the kernel modules fine after that.
    ° Appreciate my reply? Click the star and let me know why.

    ° Perfection is not gonna happen. No way.

    https://en.opensuse.org/openSUSE:Board#Members
    http://en.opensuse.org/User:Knurpht
    http://nl.opensuse.org/Gebruiker:Knurpht

  6. #6

    Default Re: virtualbox problems (Error! Your kernel headers for kernel 2.6.34-12-desktop cannot be found at)

    There has been a kernel security patch today since my last post. The latest kernel version in now 2.6.34.7-0.7. This is the version you should have after updating the kernel. The kernel sources should be updated as well. So you should end up with something like that (after rebooting):

    Code:
    rpm -qa | grep kernel
    kernel-source-2.6.34.7-0.7.1.noarch
    kernel-default-devel-2.6.34.7-0.7.1.x86_64
    kernel-firmware-20100617-2.2.noarch
    kernel-xen-devel-2.6.34.7-0.7.1.x86_64
    kernel-desktop-2.6.34.7-0.7.1.x86_64
    patterns-openSUSE-devel_kernel-11.3-22.1.x86_64
    kernel-desktop-devel-2.6.34.7-0.7.1.x86_64
    kernel-devel-2.6.34.7-0.7.1.noarch
    nfs-kernel-server-1.2.1-8.3.1.x86_64
    kernel-syms-2.6.34.7-0.7.1.x86_64
    
    uname -r
    2.6.34.7-0.7-desktop
    Once you have VirtualBox installed and working, you might also install the modautocompile service to have vboxdrv (an optionally other modules) automatically recompiled after a kernel update.

  7. #7

    Default Re: virtualbox problems (Error! Your kernel headers for kernel 2.6.34-12-desktop cannot be found at)

    Thank you for all the help - forums like this one is what is making linux adoption more possible.

    I'm at work, will give this a shot and will report back with my results.

  8. #8

    Default Re: virtualbox problems (Error! Your kernel headers for kernel 2.6.34-12-desktop cannot be found at)

    Thank you for your help, vb is working a treat now.

    It was the kernel version - updated it and off I go.

    Thanks!

  9. #9
    Join Date
    Jun 2008
    Location
    Luleå, Sweden
    Posts
    39

    Default Re: virtualbox problems (Error! Your kernel headers for kernel 2.6.34-12-desktop cannot be found at)

    your discussion helped me upgrade to VirtualBox 4.0.6

    I was facing a very similar mix-up : my computer was booting on kernel-desktop-2.6.34-7 while kernel-source and kernel-devel were 2.6.34.8 -
    In my case the problem was solved by running the yast2-bootloader module fixed the problem as I was facing the following weird situation:

    rpm -qa | grep kernel-desktop gave
    kernel-desktop-2.6.34.8-0.2.1.x86_64

    while

    uname -r gave
    2.6.34-7

    thanks a lot to all of you !

    mimis koltsakis

  10. #10
    Join Date
    Oct 2010
    Location
    SLOVENIJA
    Posts
    1

    Default Re: virtualbox problems (Error! Your kernel headers for kernel 2.6.34-12-desktop cannot be found at)

    Helo to everyone.
    Hey mimis-suse10. Can you explain more detailed how did you fixed your problem?
    Cos I have a similar problem.
    Thank you for your ansver.
    Lp Tejca

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •