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

Thread: Install Virtualbox using latest stable kernel

  1. #1
    Join Date
    Dec 2008
    Location
    Norway
    Posts
    550

    Question Install Virtualbox using latest stable kernel

    I have been using the latest stable linux kernel on OpenSUSE 13.2 from the repository
    http://download.opensuse.org/reposit...able/standard/


    This requires me to get Virtualbox compiled against this kernel from the repository
    http://download.opensuse.org/reposit...able_standard/


    However this repository for Virtualbox is built against OpenSUSE Tumbleweed (I think it was, or Factory). To get around this is have installed only the virtualbox kernel modules from this repository while getting the virtualbox application from the 13.2 repository
    http://download.opensuse.org/reposit...openSUSE_13.2/


    This is no longer viable. Up until now these two repositories have had the same version of Virtualbox, but no longer. The kernel stable virtualbox repository is stuck with 5.0.18, while the other virtualbox repository now has 5.1.4.


    I haven't updated Virtualbox to 5.1.4, but am no longer able to start the VM.
    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/rcvboxdrv setup'
    
    
    as root. If it is available in your distribution, you should install the DKMS package first. This package keeps track of Linux kernel changes and recompiles the vboxdrv kernel module if necessary.
    
    
    where: suplibOsInit what: 3 VERR_VM_DRIVER_NOT_INSTALLED (-1908) - The support driver is not installed. On linux, open returned ENOENT.
    Packages installed, including the kernel modules for the latest stable kernel:
    virtualbox
    virtualbox-qt
    virtualbox-guest-kmp-default
    virtualbox-host-kmp-default

    Oracle Virtualbox have their own OpenSUSE repository, so perhaps I should use that one instead? However if I use their Virtualbox repository for OpenSUSE 13.2, is it precompiled for the standard kernel or can I use it with the latest stable kernel?
    http://download.virtualbox.org/virtu...opensuse/13.2/
    It is only one package for Virtualbox: VirtualBox-5.1-5.1.2_108956_openSUSE132-1.x86_64.rpm

  2. #2
    Join Date
    Oct 2014
    Location
    Italy
    Posts
    1,674

    Default Re: Install Virtualbox using latest stable kernel

    Oracle Virtualbox has NO PRE-built kernel modules: it just asks the system to build modules for the running kernel (whatever version you might be running).
    To do that you need a build environment installed, namely kernel-devel, kernel-default-devel with version matching your running kernel, plus gcc, make and maybe other stuff (make sure to have "install recommended packages" set in Yast-software before installing).
    Main: Leap 15 Gnome on i7 4720HQ + Geforce GTX960M
    Test: Leap 42.3 (& others) on Core2Duo + GM965

  3. #3
    Join Date
    Dec 2008
    Location
    Norway
    Posts
    550

    Default Re: Install Virtualbox using latest stable kernel

    Quote Originally Posted by OrsoBruno View Post
    Oracle Virtualbox has NO PRE-built kernel modules: it just asks the system to build modules for the running kernel (whatever version you might be running).
    To do that you need a build environment installed, namely kernel-devel, kernel-default-devel with version matching your running kernel, plus gcc, make and maybe other stuff (make sure to have "install recommended packages" set in Yast-software before installing).
    Thanx. I will give that a go. I would probably be required to rebuild virtualbox everytime I update my kernel, but at least I would keep Virtualbox stable and working.

  4. #4
    Join Date
    Oct 2014
    Location
    Italy
    Posts
    1,674

    Default Re: Install Virtualbox using latest stable kernel

    Quote Originally Posted by DJViking View Post
    Thanx. I will give that a go. I would probably be required to rebuild virtualbox everytime I update my kernel, but at least I would keep Virtualbox stable and working.
    If you install the dkms package the system will take care of the updates, just a longer boot delay after a kernel update...
    Main: Leap 15 Gnome on i7 4720HQ + Geforce GTX960M
    Test: Leap 42.3 (& others) on Core2Duo + GM965

  5. #5
    Join Date
    Oct 2008
    Location
    Glasgow, Scotland
    Posts
    1,153

    Default Re: Install Virtualbox using latest stable kernel

    This thread belongs in the Virtualization sub-forum -- one of the admins may well move it.

    If you look there you will find that this has been a regular question for many years and answered at length many times.

    In short if you want to use a newer kernel either:
    get the kernel-default and virtualbox-host-kmp-default packages from Tumbleweed
    or:
    use the kernel-default and kernek-default-devel from Kernel:/stable/standard
    and VirtualBox -- the openSUSE-13.2 version from download.virtualbox.org/virtualbox
    e.g. http://download.virtualbox.org/virtu...2-1.x86_64.rpm

    You probably want the Extension Pack, Guest Additions and User Manual from the same place. As root use "rpm -Uvh VirtualBox*rpm" to install and build the kernel module.

    I personally find dkms a waste of time with this.
    ~Thank you for sharing an interesting problem.
    --
    slàinte mhath,
    rayH

  6. #6
    Join Date
    Mar 2011
    Location
    Sauerland
    Posts
    4,072

    Default AW: Install Virtualbox using latest stable kernel

    Here is kernel:stable running and Virtualbox from the Oracle-Repo:
    Code:
    zypper se -si virtualbox
    Daten des Repositories laden ...
    Installierte Pakete lesen ...
    
    S | Name           | Typ   | Version                    | Arch   | Repository                              
    --+----------------+-------+----------------------------+--------+-----------------------------------------
    i | VirtualBox-5.1 | Paket | 5.1.2_108956_openSUSE132-1 | x86_64 | VirtualBox for openSUSE 13.2 / Leap 42.1
    Code:
    uname -a
    Linux linux64 4.7.0-5.g31abf6f-default #1 SMP PREEMPT Mon Aug 1 07:57:32 UTC 2016 (31abf6f) x86_64 x86_64 x86_64 GNU/Linux
    Code:
    lsb-release -idr
    Distributor ID: openSUSE project
    Description:    openSUSE 13.2 (Harlequin) (x86_64)
    Release:        13.2

  7. #7
    Join Date
    Dec 2008
    Location
    Norway
    Posts
    550

    Default Re: Install Virtualbox using latest stable kernel

    Tried to install Virtualbox 5.1 from Oracle Virtualbox 13.2 repository
    http://download.virtualbox.org/virtu...opensuse/13.2/

    Retrieving repository 'Virtualbox' metadata ----------------------------------------------------------------------------------------[\]
    File 'repomd.xml' from repository 'Virtualbox' is signed with an unknown key '54422A4B98AB5139'. Continue? [yes/no] (no): yes



    Package Virtualbox-5.1 is broken. Integrity check has failed.
    Code:
    Error: INVALID:VirtualBox-5.1-5.1.2_108956_openSUSE132-1.x86_64 (Virtualbox): Signature verification failed [4-Signatures public key is not available]Header V4 DSA/SHA1 Signature, key ID 98ab5139: NOKEY
    Header SHA1 digest: OK (9d5b986766421c105f6e684dc94db486a7801a7c)
    MD5 digest: OK (a011f13ac41a7519fe73657474d23044)
    V4 DSA/SHA1 Signature, key ID 98ab5139: NOKEY
    I am getting the same problem trying to install the RPM manually, downloaded from http://download.virtualbox.org/virtualbox/5.1.2/
    Code:
    user@mintaka:~/Downloads> sudo zypper install VirtualBox-5.1-5.1.2_108956_openSUSE132-1.x86_64.rpm 
    Loading repository data...
    Reading installed packages...
    Resolving package dependencies...
    
    
    The following 3 NEW packages are going to be installed:
      libQt5OpenGL5 libQt5PrintSupport5 VirtualBox-5.1
    
    
    3 new packages to install.
    Overall download size: 61.7 MiB. Already cached: 379.7 KiB  After the operation, additional 142.6 MiB will be used.
    Continue? [y/n/? shows all options] (y): y
    In cache libQt5OpenGL5-5.4.2-22.3.x86_64.rpm                                                      (1/3), 167.2 KiB (445.8 KiB unpacked)
    In cache libQt5PrintSupport5-5.4.2-22.3.x86_64.rpm                                                (2/3), 212.5 KiB (614.2 KiB unpacked)
    Retrieving package VirtualBox-5.1-5.1.2_108956_openSUSE132-1.x86_64                               (3/3),  61.7 MiB (141.6 MiB unpacked)
    VirtualBox-5.1-5.1.2_108956_openSUSE132-1.x86_64.rpm:
        Header V4 DSA/SHA1 Signature, key ID 98ab5139: NOKEY
        V4 DSA/SHA1 Signature, key ID 98ab5139: NOKEY
    
    
    VirtualBox-5.1-5.1.2_108956_openSUSE132-1.x86_64 (Plain RPM files cache): Signature verification failed [4-Signatures public key is not available]
    Abort, retry, ignore? [a/r/i] (a): a

  8. #8
    Join Date
    Mar 2011
    Location
    Sauerland
    Posts
    4,072

    Default AW: Install Virtualbox using latest stable kernel

    Ignore it by typing i.

  9. #9
    Join Date
    Dec 2008
    Location
    Norway
    Posts
    550

    Default Re: AW: Install Virtualbox using latest stable kernel

    Quote Originally Posted by Sauerland View Post
    Ignore it by typing i.
    Well, when a Wise Penguin says so. Though it feels a bit suspect when you get such messages during install.

  10. #10
    Join Date
    Oct 2014
    Location
    Italy
    Posts
    1,674

    Default Re: AW: Install Virtualbox using latest stable kernel

    Quote Originally Posted by DJViking View Post
    Well, when a Wise Penguin says so. Though it feels a bit suspect when you get such messages during install.
    That was a WisePenguin short answer. The long answer is: "The VBox package is signed, but the Oracle repo isn't".
    So, if you really don't want to see those warnings, you should do something similar to what is described here thanks to nrickert:
    https://nwrickert2.wordpress.com/201...epo/#more-1393
    Main: Leap 15 Gnome on i7 4720HQ + Geforce GTX960M
    Test: Leap 42.3 (& others) on Core2Duo + GM965

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
  •