Latest debian update breaks VirtualBox/phpVirtualBox plugin?

    • OMV 3.x

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

    • Latest debian update breaks VirtualBox/phpVirtualBox plugin?

      Not sure of it though,

      the problems started appearing after yesterday (02.02.) update - I didn't notice any omv or plugin specific updates but what it looked like general ones for OS. I'm sorry now I didn't write it down :( I'm pretty sure backport 4.9.0 was among theese.

      Anyways, upon reboot OMV wouldn't connect to phpVirtualBox throwing error:

      Source Code

      1. Error #0:
      2. exception 'Exception' with message 'Could not connect to host (http://127.0.0.1:18083/)' in /usr/share/phpvirtualbox/endpoints/lib/vboxconnector.php:220
      3. Stack trace:
      4. #0 /usr/share/openmediavault/engined/rpc/virtualbox.inc(136): vboxconnector->connect()
      5. #1 [internal function]: OMV\Engined\Rpc\VirtualBox->getMachines(Array, Array)
      6. #2 /usr/share/php/openmediavault/rpc/serviceabstract.inc(124): call_user_func_array(Array, Array)
      7. #3 /usr/share/php/openmediavault/rpc/rpc.inc(84): OMV\Rpc\ServiceAbstract->callMethod('getMachines', Array, Array)
      8. #4 /usr/sbin/omv-engined(516): OMV\Rpc\Rpc::call('VirtualBox', 'getMachines', Array, Array, 1)
      9. #5 {main}
      Any attempt to disable phpVirtualBox is met with Bad Gateway error and ultimately spits this out:

      Source Code

      1. Error #0:
      2. exception 'OMV\ExecException' with message 'Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C; systemctl start virtualbox-web 2>&1' with exit code '1': A dependency job for virtualbox-web.service failed. See 'journalctl -xn' for details.' in /usr/share/php/openmediavault/system/process.inc:175
      3. Stack trace:
      4. #0 /usr/share/php/openmediavault/system/systemctl.inc(83): OMV\System\Process->execute(Array, 1)
      5. #1 /usr/share/php/openmediavault/system/systemctl.inc(101): OMV\System\SystemCtl->exec('start', NULL, false)
      6. #2 /usr/share/openmediavault/engined/module/virtualbox.inc(107): OMV\System\SystemCtl->enable(true)
      7. #3 /usr/share/openmediavault/engined/rpc/config.inc(189): OMV\Engined\Module\VirtualBox->startService()
      8. #4 [internal function]: OMVRpcServiceConfig->applyChanges(Array, Array)
      9. #5 /usr/share/php/openmediavault/rpc/serviceabstract.inc(124): call_user_func_array(Array, Array)
      10. #6 /usr/share/php/openmediavault/rpc/serviceabstract.inc(150): OMV\Rpc\ServiceAbstract->callMethod('applyChanges', Array, Array)
      11. #7 /usr/share/php/openmediavault/rpc/serviceabstract.inc(528): OMV\Rpc\ServiceAbstract->OMV\Rpc\{closure}('/tmp/bgstatus2Z...', '/tmp/bgoutputlL...')
      12. #8 /usr/share/php/openmediavault/rpc/serviceabstract.inc(151): OMV\Rpc\ServiceAbstract->execBgProc(Object(Closure))
      13. #9 /usr/share/openmediavault/engined/rpc/config.inc(208): OMV\Rpc\ServiceAbstract->callMethodBg('applyChanges', Array, Array)
      14. #10 [internal function]: OMVRpcServiceConfig->applyChangesBg(Array, Array)
      15. #11 /usr/share/php/openmediavault/rpc/serviceabstract.inc(124): call_user_func_array(Array, Array)
      16. #12 /usr/share/php/openmediavault/rpc/rpc.inc(84): OMV\Rpc\ServiceAbstract->callMethod('applyChangesBg', Array, Array)
      17. #13 /usr/sbin/omv-engined(516): OMV\Rpc\Rpc::call('Config', 'applyChangesBg', Array, Array, 1)
      18. #14 {main}
      Display All

      This is what syslog says:

      Source Code

      1. Feb 3 08:09:02 nas systemd[1]: Starting LSB: VirtualBox Linux kernel module...
      2. Feb 3 08:09:02 nas systemd[1]: Failed to reset devices.list on /system.slice: Invalid argument
      3. Feb 3 08:09:02 nas virtualbox[5456]: Loading VirtualBox kernel modules...No suitable module for running kernel found ... failed!
      4. Feb 3 08:09:02 nas virtualbox[5456]: failed!
      5. Feb 3 08:09:02 nas systemd[1]: virtualbox.service: control process exited, code=exited status=1
      6. Feb 3 08:09:02 nas systemd[1]: Failed to start LSB: VirtualBox Linux kernel module.
      7. Feb 3 08:09:02 nas systemd[1]: Dependency failed for VirtualBox Web Service.
      8. Feb 3 08:09:02 nas systemd[1]: Unit virtualbox.service entered failed state.

      I also tried removing then installing the plugin again ( the windows way :D :D :D ) with same results - I've since completely disabled it.

      Anyone knows more about this? Looks like borked/missing kernel module?
      OMV erasmus 3.0.90 | omv-extras 3.4.29 | Xeon E3 1225 | 8GB ECC RAM | 2x3 TB WD Red | 1.5 TB WD Green | 1TB HGST
    • QSx wrote:

      Anyone knows more about this? Looks like borked/missing kernel module?
      New kernels typically require new code in things that compile kernel modules like virtualbox, zfs, iscsi, etc. You will just have to use the 4.8 kernel (which should still be on your system and you can set it to boot with omv-extras) until virtualbox is fixed.
      omv 4.1.8.2 arrakis | 64 bit | 4.15 proxmox kernel | omvextrasorg 4.1.9
      omv-extras.org plugins source code and issue tracker - github.com/OpenMediaVault-Plugin-Developers

      Please read this before posting a question.
      Please don't PM for support... Too many PMs!
    • Hi,

      for all others with the same problem following is a work around to get virtualbox running incl. phpvirtualbox

      1. login via SSH as root
      2. download the Linux headers

      Shell-Script

      1. apt-get install linux-headers-$(uname -r)



      3. reconfigure virtualbox

      Shell-Script

      1. dpkg-reconfigure virtualbox-dkms
      2. dpkg-reconfigure virtualbox

      4. edit /usr/share/phpvirtualbox/endpoints/api.php

      PHP Source Code

      1. //$response['data']['responseData']['phpvboxver'] = @constant('PHPVBOX_VER');
      2. $response['data']['responseData']['phpvboxver'] = "5.1-0";

      This worked for my OMV 3.0.8 with Kernel 4.9.0-0.bpo.3-amd64.

      Andy
    • Hi Andy

      thanks man, this fixed it for me!

      Manne

      edit: to clarrify.

      my first install was with the download iso to OMV3 with kernel .7 or .8 where i installed virtualbox via webui, then upgraded the kernel and ended with a broken virtualbox. i followed all the above steps, and it made it work again. that was my test enviroment.

      today i started with the same iso on my production server. but this time I first updated, then installed virtualbox form UI

      so this time I only needed step4 of the above guide, just to fix an anoying warning about some combatibillity issue.

      this was not clear on me, the first time I come here to find a solution, that actually I had broken the virtualbox, not "was broaken out of the box".

      entirely my fault.

      cheers manne

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

    • raceface2nd wrote:

      Hi,

      for all others with the same problem following is a work around to get virtualbox running incl. phpvirtualbox

      1. login via SSH as root
      2. download the Linux headers

      Shell-Script

      1. apt-get install linux-headers-$(uname -r)


      3. reconfigure virtualbox

      Shell-Script

      1. dpkg-reconfigure virtualbox-dkms
      2. dpkg-reconfigure virtualbox
      4. edit /usr/share/phpvirtualbox/endpoints/api.php

      PHP Source Code

      1. //$response['data']['responseData']['phpvboxver'] = @constant('PHPVBOX_VER');
      2. $response['data']['responseData']['phpvboxver'] = "5.1-0";
      This worked for my OMV 3.0.8 with Kernel 4.9.0-0.bpo.3-amd64.

      Andy
      wie komme ich dort hin ins 4. edit /usr/share/phpvirtualbox/endpoints/api.php Verzeichnis
      über putty geht es nicht


      how do I get there to the 4th edit /usr/share/phpvirtualbox/endpoints/api.php directory
      it's not about putty
    • klar über putty

      putty öffnen dann ip vom server + port 22 + ssh eingeben/wählen und "open" klicken

      login mit user root und kennwort vom aufsetzen des OMV servers,

      ich persönlich nutzt vim, daher wäre beim OMv dann noch

      apt-get update && apt-get install vim

      nötig, um vim zu installieren. (folgende anlietung ist für vim, geht natürlich auch mit jedem anderen editor)

      danach dann: vim /usr/share/phpvirtualbox/endpoints/api.php


      dann mit /phpvboxver + Enter die Zeile suchen. bei mir ist es zeile 86


      mit i in den editor modus springen, die betroffene zeile mit // am Zeilenanfang auskommentieren, dann am Zeilenende ein Enter, und mit tab die Leerzeichen am anfang generieren, dann abtippen oder per copy paste (putty: rechte maustaste für einfügen) reinhaun.


      Editor modus mit ESC beenden.
      :wq +Enter für speichern, beenden


      exit um putty zu verlassen

      fertig.
    • Moin auch ich habe das Problem seit dem ich das letzte Update gestern gemacht habe, kann ich VirtualBox nicht mehr Starten. Wenn ich das OMV Interface aufrufe bekomme ich eine Meldung

      Source Code

      1. Could not connect to host (http://127.0.0.1:18083/)



      Source Code

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

      Diese schritte habe ich schon mehrfach ausgeführt leider kein erfolg


      Source Code

      1. 3. reconfigure virtualbox
      2. Shell-Script
      3. dpkg-reconfigure virtualbox-dkms
      4. dpkg-reconfigure virtualbox
      5. 4. edit /usr/share/phpvirtualbox/endpoints/api.php
      6. PHP-Quellcode
      7. //$response['data']['responseData']['phpvboxver'] = @constant('PHPVBOX_VER');
      8. $response['data']['responseData']['phpvboxver'] = "5.1-0";
    • Users Online 2

      2 Guests