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

Thread: Why can't I never(TM) get Virtualbox to work on TW...

  1. #1

    Default Why can't I never(TM) get Virtualbox to work on TW...

    ... even if I install from the official repos?

    Once I run it and try to start a VM it gives me an error that /sbin/vboxconfig needs to be run.
    This command however I cannot run because some packages are missing. But even after installing them /sbin/vboxconfig fails because:

    Code:
    === Building 'vboxdrv' module ===
    make[1]: Entering directory '/usr/src/kernel-modules/virtualbox/src/vboxdrv'
    /usr/src/kernel-modules/virtualbox/src/vboxdrv/Makefile.include.header:141: *** Error: unable to find the headers of the Linux kernel to build against. Specify KERN_VER=<version> (currently 4.15.1-1-default) and run Make again.  Stop.
    make[1]: Leaving directory '/usr/src/kernel-modules/virtualbox/src/vboxdrv'
    make: *** [Makefile:49: all] Error 2
    The error is probably due to a mismatch of Kernel versions:

    Code:
    S  | Name                        | Type    | Version             | Arch   | Repository             
    ---+-----------------------------+---------+---------------------+--------+------------------------
    i+ | kernel-default              | package | 4.15.1-1.6          | x86_64 | (System Packages)      
    i+ | kernel-default              | package | 4.15.2-1.4          | x86_64 | openSUSE-Tumbleweed-Oss
    i  | kernel-default-devel        | package | 4.15.2-1.4          | x86_64 | openSUSE-Tumbleweed-Oss
    i  | kernel-devel                | package | 4.15.2-1.4          | noarch | openSUSE-Tumbleweed-Oss
    i+ | kernel-firmware             | package | 20180119-1.1        | noarch | openSUSE-Tumbleweed-Oss
    i  | kernel-macros               | package | 4.15.2-1.4          | noarch | openSUSE-Tumbleweed-Oss
    i+ | virtualbox                  | package | 5.2.6-2.4           | x86_64 | openSUSE-Tumbleweed-Oss
    i  | virtualbox-host-kmp-default | package | 5.2.6_k4.15.2_1-2.4 | x86_64 | openSUSE-Tumbleweed-Oss
    i+ | virtualbox-host-source      | package | 5.2.6-2.4           | noarch | openSUSE-Tumbleweed-Oss
    i  | virtualbox-qt               | package | 5.2.6-2.4           | x86_64 | openSUSE-Tumbleweed-Oss
    How can I fix this and why is this happening with the official TW repo? Is there a way to prevent this from happening in the future?
    And on a technical side note, what does this have to do with the kernel? Why doesn't this happen on Windows for instance?

    Thanks.

  2. #2
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    13,295
    Blog Entries
    2

    Default Re: Why can't I never(TM) get Virtualbox to work on TW...

    To install the development headers of anything, you need to install the "devel" packages.

    In your case, you should install the following packages for the default kernel which you are running (Exact versions will be matched automatically)

    kernel-devel
    kernel-default-devel

    Then you should be able to build your kernel modules.

    When you install VBox from teh OSS instead of the Oracle download, you shouldn't need to build these modules, but you may want to add your User to the vboxuers group so you can run VBox as a normal user without elevated permissions.

    If you aren't able to install and run VBox from the OSS, perhaps you didn't upgrade your TW just before installing VBox?

    TSU
    Beginner Wiki Quickstart - https://en.opensuse.org/User:Tsu2/Quickstart_Wiki
    Solved a problem recently? Create a wiki page for future personal reference!
    Learn something new?
    Attended a computing event?
    Post and Share!

  3. #3

    Default Re: Why can't I never(TM) get Virtualbox to work on TW...

    That shouldn't be necessary if you install the openSUSE packages though.
    These do contain a precompiled kernel module.

    And that should be preferred especially on Tumbleweed anyway IMHO, because of the many kernel updates.

    IOW, if you install the virtualbox packages from the standard repos, you don't have to (and shouldn't) run /sbin/vboxconfig...
    If VirtualBox asks you to run it, please post the exact message from VirtualBox.

    And the output of this command:
    Code:
    rpm -qa | egrep -i "virtualbox | kernel"
    Last edited by wolfi323; 12-Feb-2018 at 13:17.

  4. #4
    Join Date
    Jul 2008
    Location
    Seattle, WA
    Posts
    17,317

    Default Re: Why can't I never(TM) get Virtualbox to work on TW...

    On Mon, 12 Feb 2018 20:06:02 +0000, SF6 wrote:

    > And on a technical side note, what does this have to do with the kernel?
    > Why doesn't this happen on Windows for instance?


    The networking drivers are implemented as kernel modules. Windows'
    kernel is very different architecturally from the Linux kernel.

    What I found over the weekend was that if the running kernel and the
    installed kernel dev packages don't match, you'll have problems
    compiling. Make sure you've got the right version installed.

    Jim
    --
    Jim Henderson
    openSUSE Forums Administrator
    Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C

  5. #5

    Default Re: Why can't I never(TM) get Virtualbox to work on TW...

    Step by step what I have done:

    0. Updated the system sudo zypper dup
    1. Installed Virtualbox via Yast/Softwaremanager (from vendor openSUSE)
    2. Added my user david to vboxusers
    3. rebootet
    4. Started Virtualbox and set up a virtual drive and I get the following error:

    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
    
    '/sbin/vboxconfig'
    
    as root.
    
    where: suplibOsInit what: 3 VERR_VM_DRIVER_NOT_INSTALLED (-1908) - The support driver is not installed. On linux, open returned ENOENT.
    I followed the hint in the error message, ran /sbin/vboxconfig which also failed because of missing packages. I copied the packages that were mentioned in the bash error message and ran /sbin/vboxconfig again which failed again - see first post.

    Code:
    rpm -qa | egrep -i "virtualbox | kernel"
    Doesn't give me any result back?

  6. #6
    Join Date
    Jun 2008
    Location
    Groningen, Netherlands
    Posts
    20,925
    Blog Entries
    14

    Default Re: Why can't I never(TM) get Virtualbox to work on TW...

    First run 'zypper dup' if you haven't already
    Next. check permissions of /usr/lib/virtualbox/Virtualbox, it should be 4755, if it isn't chmod it
    ° Appreciate my reply? Click the star and let me know why.

    ° Perfection is not gonna happen. No way.

    http://en.opensuse.org/User:Knurpht
    http://nl.opensuse.org/Gebruiker:Knurpht

  7. #7

    Default Re: Why can't I never(TM) get Virtualbox to work on TW...

    Code:
    /usr/lib/virtualbox/VirtualBox
    shows
    Code:
    -rwsr-x--- 1 root vboxusers 158336 Feb 11 02:11 /usr/lib/virtualbox/VirtualBox
    I belong to vboxusers group. Still need to correct?
    zypper dup doesn't show any updates.

    Code:
    david@linux-w3cc:~> groups david
    david : users vboxusers
    Thank you.

  8. #8

    Default Re: Why can't I never(TM) get Virtualbox to work on TW...

    Code:
    No update candidate for 'kernel-devel-4.15.2-1.4.noarch'. The highest available version is already installed.
    'kernel-default-devel' is already installed.
    No update candidate for 'kernel-default-devel-4.15.2-1.4.x86_64'. The highest available version is already installed.
    Resolving package dependencies...
    Seems like I cannot find a matching version for kernel-devel and kernel-default?

  9. #9

    Default Re: Why can't I never(TM) get Virtualbox to work on TW...

    Quote Originally Posted by SF6 View Post
    Code:
    No update candidate for 'kernel-devel-4.15.2-1.4.noarch'. The highest available version is already installed.
    'kernel-default-devel' is already installed.
    No update candidate for 'kernel-default-devel-4.15.2-1.4.x86_64'. The highest available version is already installed.
    Resolving package dependencies...
    Seems like I cannot find a matching version for kernel-devel and kernel-default?
    Again, this shouldn't matter if you install the openSUSE packages, the kernel-devel* packages are not needed then.

    You should uninstall any VirtualBox* package first though.
    So try this:
    Code:
    sudo zypper rm VirtualBox*
    sudo zypper in -f virtualbox virtualbox-kmp-default
    Sorry, my previous command was slightly wrong, it should have been:
    Code:
    rpm -qa | egrep -i "virtualbox|kernel"
    (I didn't expect the spaces to have any influence there, my fault... )

  10. #10

    Default Re: Why can't I never(TM) get Virtualbox to work on TW...

    Here's the output before I uninstall virtualbox like you suggested.

    Code:
    virtualbox-5.2.6-2.4.x86_64
    kernel-devel-4.15.2-1.4.noarch
    kernel-default-4.15.2-1.4.x86_64
    virtualbox-host-kmp-default-5.2.6_k4.15.2_1-2.4.x86_64
    virtualbox-host-source-5.2.6-2.4.noarch
    kernel-firmware-20180119-1.1.noarch
    kernel-macros-4.15.2-1.4.noarch
    kernel-default-devel-4.15.2-1.4.x86_64
    virtualbox-qt-5.2.6-2.4.x86_64
    kernel-default-4.15.1-1.6.x86_64

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
  •