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

Thread: OpenSuste 15.1 Kernel 5.6 VirtualBox doesn't build kernl modules

  1. #1

    Default OpenSuste 15.1 Kernel 5.6 VirtualBox doesn't build kernl modules

    Hi, All,

    tying to install VirtualBox on openSuse 15.1 (64bit). I've installed 5.6.0-2.gbf56c5b-default kernel, because i need iwlwiwi drivers.
    Kernel was installed from http://download.opensuse.org/reposit...able/standard/

    VirtualBox is 6.0.12_SUSE r132055 from "Standard" repositories.

    I've as installed extra packages by running
    Code:
    sudo zypper install virtualbox-host-source kernel-devel kernel-default-devel
    as suggested by VirtualBox when running
    Code:
    sudo /sbin/vboxconfig
    Error log (/var/loh/virtualbox.log) is on pastebin -> https://pastebin.com/jXP2zmxU

    Any help is appreciated.

  2. #2
    Join Date
    Jan 2017
    Location
    Nürnberg, Germany
    Posts
    279

    Default Re: OpenSuste 15.1 Kernel 5.6 VirtualBox doesn't build kernl modules

    The solved ticket https://www.virtualbox.org/ticket/18945 indicates that Vbox 6.1(rc1) seems to have this fixed.

    Also:

    VirtualBox 6.1 is available for Leap 15.1:

    Cheers!

  3. #3

    Default Re: OpenSuste 15.1 Kernel 5.6 VirtualBox doesn't build kernl modules

    Quote Originally Posted by unix111 View Post
    The solved ticket https://www.virtualbox.org/ticket/18945 indicates that Vbox 6.1(rc1) seems to have this fixed. Also:

    VirtualBox 6.1 is available for Leap 15.1:
    I've tried that, unfortunately I'm getting
    Code:
    /usr/bin/VirtualBox: line 66:  7340 Segmentation fault      (core dumped) LD_LIBRARY_PATH="/usr/lib/virtualbox${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}" /usr/lib/virtualbox/VirtualBox6 $@
    when trying to start VBox 6.1 from Virtualisation repo. Thank you for the links, but two of them are about istalling guest additions (I can't get to that, because I do not have kernel modules compiled on my host). And the first link relates to some person compiling their kernel without some parameter, that VBox needs. I don't compile my kernel, I've installed it from stable repo.

  4. #4
    Join Date
    Mar 2011
    Location
    Sauerland
    Posts
    4,869

    Default AW: OpenSuste 15.1 Kernel 5.6 VirtualBox doesn't build kernl modules

    Caution:
    kernel:stable Repo is build against factory, also the kernel:stable:kmp Repo.
    http://download.opensuse.org/reposit...andard/x86_64/

    maybe you can install and start it from there.

    I do it by installing virtualbox-kmp-default from my kernel:stable Repo
    https://download.opensuse.org/reposi...able_standard/

    And virtualbox and virtualbox-qt from my Leap15.1 Repo:
    https://download.opensuse.org/reposi...p_15.1_Update/
    The last two are locked by me.
    Code:
    zypper se -si virtualbox
    Repository-Daten werden geladen...
    Installierte Pakete werden gelesen...
    
    S  | Name                   | Typ   | Version                       | Arch   | Repository    
    ---+------------------------+-------+-------------------------------+--------+---------------
    il | virtualbox             | Paket | 6.1.4-lp151.527.1             | x86_64 | (Systempakete)
    i+ | virtualbox-kmp-default | Paket | 6.1.4_k5.6.0_1.g4de1111-535.3 | x86_64 | (Systempakete)
    il | virtualbox-qt          | Paket | 6.1.4-lp151.527.1             | x86_64 | (Systempakete)

  5. #5
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    12,718
    Blog Entries
    2

    Default Re: OpenSuste 15.1 Kernel 5.6 VirtualBox doesn't build kernl modules

    ??
    The Virtualbox from the openSUSE repos include kernel modules that are closely matched with the available kernel from that same repo... You can't use those Virtualbox packages with an arbitrary kernel of your choice.

    If you want to use a kernel that's not from the default repo for your specific version of openSUSE (in other words, you also shouldn't be using virtualbox packages from 15.2 if you're running 15.1. If it works, you're just lucky)

    1. Remove all the openSUSE Virtualbox packages.
    Although the Virtualbox documentation says that a new install will always over-write an existing without problems, using the openSUSE packages is likely a scenario not accounted for by the documentation.

    2. Download and install the latest Virtualbox version from the Oracle Virtualbox website. Virtualbox doesn't keep up with openSUSE versions, install the package for "openSUSE 15.0"
    https://www.virtualbox.org/wiki/Linux_Downloads

    3. Install pre-requisites for building kernel headers. You can run the following command in an elevated kernel or install the individual packages in YaST Software Manager
    I recommend simply "su" and not "su -" in this case because you do <not> want to relogin with a full root environment, it'll just create complications without any added benefit.
    Code:
    zypper in kernel-devel kernel-default-devel gcc make
    4. Execute the downloaded Oracle Virtualbox package. If you still have your elevated console open, you can run the following after you "change directory" to the directory you're in. If you are in a "su" console as I recommended, you can simply run the following command which should work without needing to "cd" to the correct directory. The following also assumes you downloaded the Virtualbox file to your logged in ordinary User's Downloads directory which is default in most DE (modify if needed) and only the one file exists which has a names starting with "VirtualBox"
    If you need to specify the exact VirtualBox file, you can remove the trailing asterisk and use the TAB key to autocomplete and select the file.
    Code:
    zypper in ~/Downloads/VirtualBox*
    While the file is running, watch for successes and errors that are reported in your console.
    When completed, go ahead and try to launch!

    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!

  6. #6

    Default [FIXED] Re: OpenSuste 15.1 Kernel 5.6 VirtualBox doesn't build kernel modules

    Thank you all fro the help.

    At he end I ended up with a frankenstein, but that will have to do.

    I have installed VirtualBox from RPM downloaded from VirtualBox website. But It wouldn't build kernel modules (on a separate note VirtualBox 6.1 from Virtualisation repo files with segmentation fault.).

    So then I've installed virtualbox-kmp-default from stable kernel repo and now could build kernel modules

  7. #7
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    12,718
    Blog Entries
    2

    Default Re: [FIXED] Re: OpenSuste 15.1 Kernel 5.6 VirtualBox doesn't build kernel modules

    Quote Originally Posted by RaveNBlack View Post
    Thank you all fro the help.

    At he end I ended up with a frankenstein, but that will have to do.

    I have installed VirtualBox from RPM downloaded from VirtualBox website. But It wouldn't build kernel modules (on a separate note VirtualBox 6.1 from Virtualisation repo files with segmentation fault.).

    So then I've installed virtualbox-kmp-default from stable kernel repo and now could build kernel modules
    If it wouldn't build, the actual error is important to understand the reason(If your install log file still exists, it may contain that info),
    I can only speculate it might have been related to being unable to overwrite a file... I've never experienced or heard of a fail due to code, but there is always a first time... But that would more likely happen on TW with its bleeding edge kernels than on a LEAP.

    Resolution usually requires purging all Virtualbox files if uninstalling isn't sufficient.
    I've described the process a few times in other threads in this Virtualization and the Application forums.

    Then, with a truly clean system there is usually no problem installing.

    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!

  8. #8

    Default Re: OpenSuste 15.1 Kernel 5.6 VirtualBox doesn't build kernl modules

    Hi,

    I have downloaded the .run file from vbox.org

    Code:
    https://www.virtualbox.org/download/testcase/VirtualBox-6.1.5-136807-Linux_amd64.run
    And I just ran as root.

    Code:
    sh ./VirtualBox-6.1.5-136807-Linux_amd64.run
    I currently have leap 15.1 with the kernel version.

    Code:
    5.6.2-1.gc8170d6-default
    All is good no problems at the moment :-)
    Just a fair warning it is not an rpm package just a POSIX sh shell script.
    "Unfortunately time is always against us" -- [Morpheus]

    .:https://github.com/Jetchisel:.

  9. #9

    Default Re: OpenSuste 15.1 Kernel 5.6 VirtualBox doesn't build kernl modules

    Well..., since this is my work machine and at the moment I need Virtual Box to run MS Office only - I think I'll stick with what works at the moment. Leap 15.2 should be released in a couple of month and hopefully this will fix all my issues out of he box.

  10. #10
    Join Date
    Feb 2010
    Location
    Germany
    Posts
    3,363

    Question Re: OpenSuste 15.1 Kernel 5.6 VirtualBox doesn't build kernl modules

    Quote Originally Posted by RaveNBlack View Post
    at the moment I need Virtual Box to run MS Office only
    I have an understanding issue here.
    • The standard Oracle VirtualBox version 6.0.12 from the standard Leap 15.1 repositories, with the standard default Leap 15.1 Linux Kernel, happily runs the newest Windows 10, without any annoying behaviour – apart from a slow boot.

    What's so special about MS Office that, it needs a special VirtualBox driver?

Page 1 of 2 12 LastLast

Tags for this Thread

Posting Permissions

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