Results 1 to 5 of 5

Thread: VirtualBox - Can't complete "vboxdrv setup" command for the life of me, help!!

  1. #1

    Default VirtualBox - Can't complete "vboxdrv setup" command for the life of me, help!!

    Hello,

    I have installed VirtualBox in OpenSUSE 12.1 KDE. It's the latest version (as of the date of this thread) from Virtualbox.org. I can't run any of my machines until I run /etc/init.d/vboxdrv setup, as the program gives an error telling me to do so. I'm familiar with the command and I usually have to install GCC, DKMS, and some type of kernel headers package to get the command to complete successfully.

    In my past experiences in installing kernel headers in OpenSUSE, the kernel-syms package is what has done the trick. The problem I'm having with it now is that my current kernel version is 3.1.9-1.4, however the kernel-source and kernel-syms packages are for version 3.2.7-7.1. I tried running Online Update and manually using the software manager to "upgrade" the kernel, but apparently that's the latest version?

    Anyway, I keep receiving the following error from the /etc/init.d/vboxdrv setup command:

    Code:
    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.9-1.4-default cannot be found at
    /lib/modules/3.1.9-1.4-default/build or /lib/modules/3.1.9-1.4-default/source.
                                                                                              failed
      (Failed, trying without DKMS)
    Recompiling VirtualBox kernel modules                                                     failed
      (Look at /var/log/vbox-install.log to find out what went wrong)
    Any help is much appreciated, as I do get a ton of use out of VirtualBox. Thanks in advance!

  2. #2
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: VirtualBox - Can't complete "vboxdrv setup" command for the lifeof me, help!!

    On 2012-02-23 02:16, travlemon wrote:

    > In my past experiences in installing kernel headers in OpenSUSE, the
    > *kernel-syms* package is what has done the trick. The problem I'm
    > having with it now is that my current kernel version is *3.1.9-1.4*,
    > however the kernel-source and kernel-syms packages are for version
    > *3.2.7-7.1*. I tried running Online Update and manually using the
    > software manager to "upgrade" the kernel, but apparently that's the
    > latest version?


    Both kernel and kernel-sources are currently 3.1.9-1.4.1, so you are
    getting those sources from a wrong repo. Investigate and remove that repo.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 11.4 x86_64 "Celadon" at Telcontar)

  3. #3

    Default Re: VirtualBox - Can't complete "vboxdrv setup" command for the lifeof me, help!!

    Quote Originally Posted by robin_listas View Post
    On 2012-02-23 02:16, travlemon wrote:

    > In my past experiences in installing kernel headers in OpenSUSE, the
    > *kernel-syms* package is what has done the trick. The problem I'm
    > having with it now is that my current kernel version is *3.1.9-1.4*,
    > however the kernel-source and kernel-syms packages are for version
    > *3.2.7-7.1*. I tried running Online Update and manually using the
    > software manager to "upgrade" the kernel, but apparently that's the
    > latest version?


    Both kernel and kernel-sources are currently 3.1.9-1.4.1, so you are
    getting those sources from a wrong repo. Investigate and remove that repo.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 11.4 x86_64 "Celadon" at Telcontar)

    Thanks or pointing me in the right direction. I know where I went wrong. Using the Software Search part of the OpenSUSE site, where you can find 1-click installs for software, I mistakenly installed Tumbleweed and Factory versions of some programs. I selected 12.1 in the drop-down, and didn't realize that it's not necessarily going to filter software for other OpenSUSE versions.

    Long story short, I think those Factory/Tumbleweed 1-click installs added the repositories. I removed those repositories, found the correct syms/source versions, and and the /etc/init.d/vboxdrv setup command completed successfully. I would not have figured that out without your suggestion, thanks!

  4. #4
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: VirtualBox - Can't complete "vboxdrv setup" command for the lifeof me, help!!

    On 2012-02-23 03:36, travlemon wrote:

    > Thanks or pointing me in the right direction. I know where I went
    > wrong. Using the Software Search part of the OpenSUSE site, where you
    > can find 1-click installs for software, I mistakenly installed
    > Tumbleweed and Factory versions of some programs. I selected 12.1 in
    > the drop-down, and didn't realize that it's not necessarily going to
    > filter software for other OpenSUSE versions.


    Understood, yes. Factory repos can easily bring in thos kinds of things.
    Next time you will be more watchful :-)

    One thing: you can fire up the package manager, display all packages, then
    search for packages in red: those will be orphans from no current repo.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 11.4 x86_64 "Celadon" at Telcontar)

  5. #5
    Join Date
    Aug 2010
    Location
    Aveiro, Portugal
    Posts
    313

    Default Re: VirtualBox - Can't complete "vboxdrv setup" command for the life of me, help!!

    Well, you failed in the first rule of the linux user: "Always watch what is printed on the console"... And the information is there on the log file pointed on the screen... But ok.... Try this:

    Code:
     # zypper in make gcc patch kernel-desktop-devel

    After installing the required software to rebuild the modules.

Posting Permissions

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