Kernel Update breaks VirtualBox Plugin

  • Hello,


    after installing some (all pending) updates and rebooting, Virtual Box Plugin is broken. I get this error message when logging into omv gui.


    Could not connect to host ([url]http://127.0.0.1:18083/[/url])

    Code: Could not connect to host (http://127.0.0.1:18083/)
    Fehler #0:
    Exception: Could not connect to host (http://127.0.0.1:18083/) in /usr/share/phpvirtualbox/endpoints/lib/vboxconnector.php:220
    Stack trace:
    #0 /usr/share/openmediavault/engined/rpc/virtualbox.inc(136): vboxconnector->connect()
    #1 [internal function]: OMV\Engined\Rpc\VirtualBox->getMachines(Array, Array)
    #2 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
    #3 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('getMachines', Array, Array)
    #4 /usr/sbin/omv-engined(536): OMV\Rpc\Rpc::call('VirtualBox', 'getMachines', Array, Array, 1)
    #5 {main}


    Starting PHPVirtualBox gives me:


    An error occurred communicating with your vboxwebsrv. No more requests will be sent by phpVirtualBox until the error is corrected and this page is refreshed. The details of this connection error should be displayed in a subsequent dialog box.


    followed by:


    A new kernel has been installed recently: Debian GNU/Linux, with Linux 4.16.0-0.bpo.2-amd64.


    Switching back to Debian GNU/Linux, with Linux 4.16.0-0.bpo.1-amd64 in OMV-Extras fixes the problem for now.


    Would you please tell me what to do to fix that (now and in future)? And is there a way to automate this fixing for future kernel updates? (at least for minor updates like this one)


    Thanks in advance.

    • Offizieller Beitrag

    Would you please tell me what to do to fix that (now and in future)? And is there a way to automate this fixing for future kernel updates? (at least for minor updates like this one)

    You probably don't have the kernel headers installed for the new kernel. Not sure why. The plugin depends on linux-image-amd64 which should automatically update when you update the kernel. My systems did.

    Would you please tell me what to do to fix that (now and in future)?

    I think this has been discussed many, many times. I have tried to make the plugins do the right thing by depending on the meta package for the kernel and headers. The virtualbox-dkms package is supposed to be triggered on kernel upgrades to compile a new module. We didn't create these packages . If they aren't working, I really don't know what to tell you. There is *very* little the plugin can do about it. All I can suggest is test on a different system before upgrading on your main system.

    (at least for minor updates like this one)

    When Debian creates a different package for a kernel (even though they are both 4.16), it isn't really a minor update. Minor updates will be the same package name.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • Hmm. Didn't touch anything kernel related since installation of omv. I uninstalled VirtualBox Plugin, switched to Debian GNU/Linux, with Linux 4.16.0-0.bpo.2-amd64 again and after a reboot I reinstalled VirtualBox. And now the error is gone. Any idea why virtualbox-dkms was not triggered during kernel upgrade? This is really a very standard omv installation. ?(

    • Offizieller Beitrag

    And now the error is gone. Any idea why virtualbox-dkms was not triggered during kernel upgrade? This is really a very standard omv installation

    Unfortunately, I have no idea.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • Unfortunately this happened again. I don't know what (days before installed) update broke it this time but after a restart I had the same problem. I had no ssh access when it happened. So I decided to uninstall and install Virtualbox-Plugin again and this solved the issue. So it seems that virtualbox-dkms was not triggered again after kernel update.


    Could you please help me to identify and fix the reason for that? This problem is very annoying. Thanks. :)

    • Offizieller Beitrag

    What kernel update did you install? Unfortunately, this is not a package we maintain. Uninstalling the plugin only worked because it uninstalled virtualbox and re-installed. dpkg-reconfigure virtualbox-dkms should work. I had added a button to the plugin to do this step but it didn't seem necessary in OMV 4.x. Maybe it needs to come back. Otherwise, I don't have a solution if dkms isn't doing its job.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • Hmmm. I actually don't know. I'm not even sure anymore that it was a kernel update that broke vbox. The installed Kernel was and is 4.16.0-0.bpo.2-amd64. 8|


    So it seems that some other past update has been responsible for this failure that became apparent after rebooting omv. I'll keep an eye on it and report back if/when it happens again.

    • Offizieller Beitrag

    The 4.17 kernel has been released. Please don't install it or new linux-header packages because virtualbox 4.2.10 will not compile its module on the 4.17 kernel.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

    Einmal editiert, zuletzt von ryecoaaron ()

  • Yep, discovered that AFTER upgrading!


    I have this installed:

    Code
    root@openmediavault:/# sudo ls /boot | grep vmlinuz | cut -d'-' -f2,3
    4.16.0-0.bpo.2
    4.17.0-0.bpo.1
    root@openmediavault:/#


    Specifically these:

  • From the error log (only interesting parts):

    • Offizieller Beitrag

    Any idea on whats causing this, and when it will be fixed?

    The virtualbox kernel driver needs to be updated to support the newer kernel. It can be fixed by using the proxmox kernel or waiting for virtualbox 5.2.12+ to be in the debian repos or not upgrading or just keep using the 4.16 kernel for now. I will see if the 5.2.16 package from Buster builds on Stretch.

    The virtualbox 5.2.16 package is in the stretch-backports repo now. You just need to update your system.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

    Einmal editiert, zuletzt von ryecoaaron ()

  • The virtualbox kernel driver needs to be updated to support the newer kernel. It can be fixed by using the proxmox kernel or waiting for virtualbox 5.2.12+ to be in the debian repos or not upgrading or just keep using the 4.16 kernel for now. I will see if the 5.2.16 package from Buster builds on Stretch.
    The virtualbox 5.2.16 package is in the stretch-backports repo now. You just need to update your system.


    Hallo sir


    My vm is running very bad (Windows10 keeps locking and frezzing // In rdp VNC is running fine)
    I have installed the new kernel 4.17 and updated virtualbox to 5.2.16 BUT still having issues..



    I also keep getting this: See attachments


    And the log: See attachments

    • Offizieller Beitrag

    My vm is running very bad (Windows10 keeps locking and frezzing // In rdp VNC is running fine)
    I have installed the new kernel 4.17 and updated virtualbox to 5.2.16 BUT still having issues..

    I don't use virtualbox and even when I did, I didn't run Windows VMs. Did you install the latest guest tools/drivers? This is one reason to not always run the latest version of virtualbox I guess.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • I don't use virtualbox and even when I did, I didn't run Windows VMs. Did you install the latest guest tools/drivers? This is one reason to not always run the latest version of virtualbox I guess.

    Hmm yeah i have updated the guest additions also...


    Is there anyway to roll back ?
    I can uninstall virtualbox but when i install it from plugins its still the new version...

    • Offizieller Beitrag

    Is there anyway to roll back ?

    Sure. The other kernel is probably still installed (select it from the kernel tab in omv-extras). I would try the older kernel before changing virtualbox.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • The virtualbox kernel driver needs to be updated to support the newer kernel. It can be fixed by using the proxmox kernel or waiting for virtualbox 5.2.12+ to be in the debian repos or not upgrading or just keep using the 4.16 kernel for now. I will see if the 5.2.16 package from Buster builds on Stretch.
    The virtualbox 5.2.16 package is in the stretch-backports repo now. You just need to update your system.

    Thanks a lot for this advice. :thumbup: I waited patiently and today 4.17.0-0.bpo.1-amd64 update went through without problems. :saint:


    Don't have any Windows VMs. The Linux ones run as fast a expected.

    • Offizieller Beitrag

    (Kernel-)Updates seem to be "problematic" to users of vbox-plugin in general. Should we have a pinned status thread for vbox related stuff?

    Kernel updates can be problematic for virtualbox, zfs, and other compiled kernel modules. I guess I could pin a thread for it if someone else maintains it. But, most people don't look at them.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

Jetzt mitmachen!

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