Virtualbox after kernel update

    • OMV 3.x
    • Resolved

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • 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!

      The post was edited 1 time, last by 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!

      The post was edited 2 times, last by 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!
    • dpkg --list | grep linux-image wrote:

      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)

      uname -a wrote:

      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

      dkms status wrote:

      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):

      Source Code

      1. # cd /var/lib/dpkg/info/
      2. # sudo rm virtualbox*
      3. # sudo apt-get update
      4. # sudo apt-get autoremove
      5. # sudo apt-get remove --purge virtualbox virtualbox-4.* virtualbox-5.*
      Then I went on to cleanup DKMS stuff (substitute correct version for you):


      Source Code

      1. # dkms status
      2. # 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):

      Source Code

      1. # 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 appropriate headers, most likely linux-headers-amd64.

      Here I uninstalled all old kernels:

      Source Code

      1. Open terminal and check your current kernel:
      2. # uname -r
      3. DO NOT REMOVE THIS KERNEL!
      4. Next, type the command below to view/list all installed kernels on your system.
      5. # dpkg --list | grep linux-image
      6. Find all the kernels that lower than your current kernel. When you know which kernel to remove, continue below to remove it. Run the commands below to remove the kernel you selected.
      7. # sudo apt-get purge linux-image-x.x.x.x
      8. Finally, run the commands below to update grub2
      9. # sudo update-grub2
      10. Reboot your system.
      Display All

      Then, after reboot, install the plugin again:

      Source Code

      1. # 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!

      The post was edited 1 time, last by kawu2 ().