Virtualbox-Plugin not installable

  • Hello together,


    I did an update from OMV 3.x to 4.1.9 using omv-release-upgrade. I have made sure that all installed plugins are already prepared for 4.x (in my case: autoshutdown, nut, omvextrasorg and virtualbox).


    There were no errors during the process. But the virtualbox-plugin doesn't work. It is not installed anymore, just the config files are present:


    Code
    $ sudo dpkg -l | grep openmediavault
    [...]
    rc  openmediavault-virtualbox          3.0.8                          all   VirtualBox plugin for OpenMediaVault.


    I tried to install it manually, but I got:



    Trying to install the packages manually doesn't help, I got:




    It seems that my ?( OMV 4.x are using a version of Python which is to new, right?


    Any ideas to get openmediavault-virtualbox running?


    Thanks in advance,
    Freed

    • Offizieller Beitrag

    Did you disable the backports repo? You need to have it enabled for virtualbox since it is only in the stretch backports repo. There is a button omv-extras to enable backports.

    omv 7.0-32 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.9 | compose 7.0.9 | cputemp 7.0 | mergerfs 7.0.3


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


    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!

    • Offizieller Beitrag

    But I can't find a button for enabling backports in the UI

    You either need to clear your browser cache or you aren't running omv-extras 4.1.7 or newer.

    omv 7.0-32 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.9 | compose 7.0.9 | cputemp 7.0 | mergerfs 7.0.3


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


    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!

  • You either need to clear your browser cache or you aren't running omv-extras 4.1.7 or newer.

    It is the second one: I'm running omv-extras 3.4.32 - this is the version my UI presents, look at my screenshot.


    How can I do an update if this version is not presented by the frontend?


    Maybe I found a mistake myself, look at this:

    Code
    $ cat omv-extras-org.list
    # This is file is generated.
    # OMV-Extras repos
    #
    # OMV-Extras.org
    deb https://dl.bintray.com/openmediavault-plugin-developers/erasmus jessie main

    Maybe it should be "arrakis" instead of "erasmus" and "stretch" instead of "jessie"? If this is the case, there might be a bug in omv-release-upgrade...


    BTW: browser cache is cleared.


    Thanks again,
    Freed

    • Offizieller Beitrag

    How can I do an update if this version is not presented by the frontend?

    Your omv-extras didn't get upgraded in your upgrade then. As root: wget -O - http://omv-extras.org/install | bash

    omv 7.0-32 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.9 | compose 7.0.9 | cputemp 7.0 | mergerfs 7.0.3


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


    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!

  • Okay! After wget -O - http://omv-extras.org/install | bash the installation of the virtualbox-plugin was possible! Thanks a lot.


    Now there is a new issue: if I hit VirtualBox -> Virtual Machines, I got this alert box over and over again:



    Code
    Could not connect to host (http://127.0.0.1:18083/)
    Error #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}

    Any further ideas?

    • Offizieller Beitrag

    Any further ideas?

    The vbox module probably didn't compile. What is the output of:


    lsmod | grep vbox
    dpkg -l | grep linux-

    omv 7.0-32 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.9 | compose 7.0.9 | cputemp 7.0 | mergerfs 7.0.3


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


    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 vbox module probably didn't compile. What is the output of:
    lsmod | grep vbox
    dpkg -l | grep linux-

    Code
    # lsmod | grep vbox
    vboxpci                24576  0
    vboxnetadp             28672  0
    vboxnetflt             28672  0
    vboxdrv               466944  3 vboxnetadp,vboxnetflt,vboxpci


    • Offizieller Beitrag

    Well, it compiled and the module is loaded. What is the output of: ps aux | grep vb

    omv 7.0-32 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.9 | compose 7.0.9 | cputemp 7.0 | mergerfs 7.0.3


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


    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!

  • Well, it compiled and the module is loaded. What is the output of: ps aux | grep vb

    Code
    # ps aux | grep vb
    vbox       718  0.0  0.1 538888 19548 ?        Ssl  21:42   0:00 /usr/lib/virtualbox/vboxwebsrv --host 127.0.0.1 --port 18083
    vbox       922  0.0  0.0 164312 13232 ?        S    21:42   0:00 /usr/lib/virtualbox/VBoxXPCOMIPCD
    vbox      1003  0.1  0.1 599348 21208 ?        Sl   21:42   0:00 /usr/lib/virtualbox/VBoxSVC --auto-shutdown
    root      2434  0.0  0.0  12788   956 pts/0    S+   21:42   0:00 grep vb


    Maybe this is interesting, too:


    Code
    # netstat -tulpen | grep vb
    tcp        0      0 127.0.0.1:18083         0.0.0.0:*               LISTEN      997        22067      718/vboxwebsrv


    Greetings
    Freed

    • Offizieller Beitrag

    That seems like everything is working correctly. Maybe reboot?

    omv 7.0-32 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.9 | compose 7.0.9 | cputemp 7.0 | mergerfs 7.0.3


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


    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!

  • Well, the issue "alert box" is gone away. :/ I did a reboot and relogged into the webinterface. Thanks a lot!!


    But there is another (last?) one: phpVirtualBox gives:


    Code
    Error 404
    Sorry, the page you requested was not found.


    Is there an idea for this, too?


    Thanks a million,
    Freed

    • Offizieller Beitrag

    Is there an idea for this, too?

    What is the output of: dpkg -l | grep phpvirtualbox

    omv 7.0-32 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.9 | compose 7.0.9 | cputemp 7.0 | mergerfs 7.0.3


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


    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!

  • Code
    # dpkg -l | grep phpvirtualbox
    ii  phpvirtualbox                       5.2-0-1                        all          Web interface for VirtualBox.

    It looks fine, doesn't it?


    I also did apt-get install --reinstall phpvirtualbox, I tried dpkg-reconfigure openmediavault-virtualbox, dpkg-reconfigure phpvirtualbox and service nginx restart, but it has no effect.


    Some amateur considerations: should not be found in /etc/nginx/sites-available/ a reference to /usr/share/phpvirtualbox/? At the moment this directory looks just like this:


    Code
    # ls -al /etc/nginx/sites-available/
    insgesamt 16
    drwxr-xr-x 2 root root 4096 Aug 12 10:27 .
    drwxr-xr-x 9 root root 4096 Aug 11 11:29 ..
    -rw-r--r-- 1 root root 2416 Jul 12  2017 default
    -rw-r--r-- 1 root root 1307 Aug 11 11:30 openmediavault-webgui


    Unfortunately, I'm not very good with nginx, but in an apache2 configuration I would expect that ... or will it be bent somewhere else? If something is missing here, the question would be, what exactly you have to generate there?!? ?(

    • Offizieller Beitrag

    should not be found in /etc/nginx/sites-available/ a reference to /usr/share/phpvirtualbox/?

    Nope. phpvirtualbox uses the omv web interface's nginx server and adds a config file here - /etc/nginx/openmediavault-webgui.d/openmediavault-virtualbox.conf


    Does the following help:
    omv-mkconf nginx
    omv-mkconf php-fpm
    systemctl restart nginx
    systemctl restart php7.0-fpm


    If not, I would purge the plugin, virtualbox packages, virtualbox users and groups, delete /etc/default/openmediavault-virtualbox and /etc/default/virtualbox, then reinstall.

    omv 7.0-32 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.9 | compose 7.0.9 | cputemp 7.0 | mergerfs 7.0.3


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


    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!

  • Yeah, it works!!! :):):):thumbup:



    In fact, the file /etc/nginx/openmediavault-webgui.d/openmediavault-virtualbox.conf was missing - your omv-mkconf did it.



    Just to be smarter next time: what probably went wrong with the upgrade?



    In any case, thank you very much for your intensive, sustained and patient help!
    Freed

    • Offizieller Beitrag

    what probably went wrong with the upgrade?

    I'm not really sure. It must have been in a weird state where it didn't think the nginx/php-fpm setup had changed.

    omv 7.0-32 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.9 | compose 7.0.9 | cputemp 7.0 | mergerfs 7.0.3


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


    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!