Virtualbox after kernel update

  • Hello all,


    Today I've installed few updates, there were some gcc and kernel headers and so on.


    Now my VB do not run VMs.


    Most ppl in internet says to run: /etc/init.d/vboxdrv setup but in OMV there is no such file.
    Anyone can help?


    Thank you in advance!

    Debian 8.6 Jessie + OMV 3.0.latest Kernel: Linux 4.8.0-0.bpo.2-amd64
    Processor: Intel Core 2 Duo E8400@3GHz
    Memory: 4GB RAM
    OS-HDD: Samsung SSD 120 GB +LVM


    Full media and download center configured.


    BIG and special thanks for OMV-Extras team for great plug-ins (especially: TeamSpeak, VirtualBox, Sonarr, Radarr, and rest I use :))


    ------------------------------


    Wise guy don't know everything, he can search or ask!
    Don't ask me via PM!

    Einmal editiert, zuletzt von kawu2 ()

  • @ EDIT
    Temporary (until restart) solution for this problem is: (but be aware! you will have to manually reconfigure your phpvirtualbox and add machines!)


    1. sudo dpkg-reconfigure virtualbox-dkms
    2. sudo dpkg-reconfigure virtualbox
    3. sudo modprobe vboxdrv
    4. (optional for bridged network adapters) sudo modprobe vboxnetflt


    Done

    Debian 8.6 Jessie + OMV 3.0.latest Kernel: Linux 4.8.0-0.bpo.2-amd64
    Processor: Intel Core 2 Duo E8400@3GHz
    Memory: 4GB RAM
    OS-HDD: Samsung SSD 120 GB +LVM


    Full media and download center configured.


    BIG and special thanks for OMV-Extras team for great plug-ins (especially: TeamSpeak, VirtualBox, Sonarr, Radarr, and rest I use :))


    ------------------------------


    Wise guy don't know everything, he can search or ask!
    Don't ask me via PM!

    2 Mal editiert, zuletzt von kawu2 ()

  • After machine restart problem came back.
    Any hints?

    Debian 8.6 Jessie + OMV 3.0.latest Kernel: Linux 4.8.0-0.bpo.2-amd64
    Processor: Intel Core 2 Duo E8400@3GHz
    Memory: 4GB RAM
    OS-HDD: Samsung SSD 120 GB +LVM


    Full media and download center configured.


    BIG and special thanks for OMV-Extras team for great plug-ins (especially: TeamSpeak, VirtualBox, Sonarr, Radarr, and rest I use :))


    ------------------------------


    Wise guy don't know everything, he can search or ask!
    Don't ask me via PM!

  • Zitat von dpkg --list | grep linux-image

    ii linux-image-3.16.0-4-amd64 3.16.36-1+deb8u2 amd64 Linux 3.16 for 64-bit PCs
    ii linux-image-4.8.0-0.bpo.2-amd64 4.8.15-2~bpo8+2 amd64 Linux 4.8 for 64-bit PCs (signed)
    ii linux-image-amd64 4.8+77~bpo8+1 amd64 Linux for 64-bit PCs (meta-package)

    Zitat von uname -a

    Linux OMV 4.8.0-0.bpo.2-amd64 #1 SMP Debian 4.8.15-2~bpo8+2 (2017-01-17) x86_64 GNU/Linux

    Zitat von dkms status

    virtualbox, 5.1.8, 4.8.0-0.bpo.2-amd64, x86_64: installed

    Seems all match but still after restart VMs don't start.

    Debian 8.6 Jessie + OMV 3.0.latest Kernel: Linux 4.8.0-0.bpo.2-amd64
    Processor: Intel Core 2 Duo E8400@3GHz
    Memory: 4GB RAM
    OS-HDD: Samsung SSD 120 GB +LVM


    Full media and download center configured.


    BIG and special thanks for OMV-Extras team for great plug-ins (especially: TeamSpeak, VirtualBox, Sonarr, Radarr, and rest I use :))


    ------------------------------


    Wise guy don't know everything, he can search or ask!
    Don't ask me via PM!

  • To fix this, I uninstalled everything virtual box related, starting with persistent stuff (remember, purge will remove config also, so please backup any existing virtual machines prior to starting:(


    Code
    # cd /var/lib/dpkg/info/
    # sudo rm virtualbox*
    # sudo apt-get update
    # sudo apt-get autoremove
    # sudo apt-get remove --purge virtualbox virtualbox-4.* virtualbox-5.*

    Then I went on to cleanup DKMS stuff (substitute correct version for you):



    Code
    # dkms status
    # sudo dkms remove vboxhost/5.0.30 --all


    if you still have leftovers not shown with “dkms status”, you can remove them manually from /var/lib/dkms/ and /usr/src/<modulename>-<moduleversion>/dkms.conf).


    To end the virtual box cleanup procedure (dangerous, only perform if you know that you do not need these files):

    Code
    # sudo find / -iname "vbox*"


    Then delete all files you find (dangerous, only perform if you know that you do not need these files) except for /dev/vboxdrv, or you will get:
    WARNING: The character device /dev/vboxdrv does not exist.Please install the virtualbox-dkms package and the appropriateheaders, most likely linux-headers-amd64.


    Here I uninstalled all old kernels:



    Then, after reboot, install the plugin again:

    Code
    # sudo apt-get install openmediavault-virtualbox


    This worked for me, but please remember, back everything up that you delete manually above, as you might end up with a broken system if you happen to delete the wrong things!


    Good luck!

  • Hey,


    I understand each step you've pointed and I recognize this guide as working.


    SOLUTION: For me, just plugin re-installation without purging (config was left) solved problem.
    After re-installation of plugin you will not lose any configuration!


    Maybe someone else will find it useful.


    I will mark as SOLVED and thank you for your help odinb!

    Debian 8.6 Jessie + OMV 3.0.latest Kernel: Linux 4.8.0-0.bpo.2-amd64
    Processor: Intel Core 2 Duo E8400@3GHz
    Memory: 4GB RAM
    OS-HDD: Samsung SSD 120 GB +LVM


    Full media and download center configured.


    BIG and special thanks for OMV-Extras team for great plug-ins (especially: TeamSpeak, VirtualBox, Sonarr, Radarr, and rest I use :))


    ------------------------------


    Wise guy don't know everything, he can search or ask!
    Don't ask me via PM!

    Einmal editiert, zuletzt von kawu2 ()

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!