Virtualbox plugin does not work after the upgrade from 3.0.99 to 4.1.6

    • OMV 4.x
    • Resolved
    • Upgrade 3.x -> 4.x

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

    • Virtualbox plugin does not work after the upgrade from 3.0.99 to 4.1.6

      Hi
      I just upgraded OMV to the latest. Everything almost went well. Except the virtualbox plugin.
      The plugin is not showing in the web interface
      It seems installed.
      root@home:~# dpkg -l |grep openm
      ii openmediavault 4.1.6 all openmediavault - The open network attached storage solution
      ii openmediavault-backup 3.11 all backup plugin for OpenMediaVault.
      ii openmediavault-cups 3.1.2 all OpenMediaVault CUPS (network printer server) plugin.
      ii openmediavault-keyring 1.0 all GnuPG archive keys of the OpenMediaVault archive
      ii openmediavault-letsencrypt 3.4.5 all Generate free and valid SSL certificates for OMV
      ii openmediavault-omvextrasorg 3.4.30 all OMV-Extras.org Package Repositories for OpenMediaVault
      rc openmediavault-virtualbox 3.0.8 all VirtualBox plugin for OpenMediaVault.
      Trying to install from web interface results to this
      >>> *************** Error ***************
      Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C; export DEBIAN_FRONTEND=noninteractive; apt-get --yes --allow-downgrades --allow-change-held-packages --fix-missing --allow-unauthenticated --reinstall install


      2>&1' with exit code '100': Reading package lists...


      Building dependency tree...


      Reading state information...


      Some packages could not be installed. This may mean that you have
      requested an impossible situation or if you are using the unstable
      distribution that some required packages have not yet been created
      or been moved out of Incoming.
      The following information may help to resolve the situation:


      The following packages have unmet dependencies:
      openmediavault-virtualbox : Depends: linux-headers-686-pae but it is not installable or
      linux-headers-amd64 but it is not going to be installed
      Depends: phpvirtualbox but it is not going to be installed
      Depends: virtualbox but it is not going to be installed
      Depends: virtualbox-ext-pack but it is not going to be installed or
      virtualbox-ext-pack-installer but it is not going to be installed
      E
      :
      Unable to correct problems, you have held broken packages.


      <<< *************************************

      I am little bit lost here..
      Any ideas?
    • The backport headers aren't pinned. apt-get install -t stretch-backports linux-headers-amd64
      omv 4.1.15 arrakis | 64 bit | 4.15 proxmox kernel | omvextrasorg 4.1.13
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!
    • I did it.
      same situation

      Source Code

      1. root@home:~# apt-get install openmediavault-virtualbox
      2. Reading package lists... Done
      3. Building dependency tree
      4. Reading state information... Done
      5. Some packages could not be installed. This may mean that you have
      6. requested an impossible situation or if you are using the unstable
      7. distribution that some required packages have not yet been created
      8. or been moved out of Incoming.
      9. The following information may help to resolve the situation:
      10. The following packages have unmet dependencies:
      11. openmediavault-virtualbox : Depends: phpvirtualbox but it is not going to be installed
      12. Depends: virtualbox but it is not going to be installed
      13. Depends: virtualbox-ext-pack but it is not going to be installed or
      14. virtualbox-ext-pack-installer but it is not going to be installed
      15. E: Unable to correct problems, you have held broken packages.
      16. root@home:~#
      Display All
      I cannot uninstall it neither...
    • You still have the old version of omv-extras installed as well. You need to upgrade that.
      omv 4.1.15 arrakis | 64 bit | 4.15 proxmox kernel | omvextrasorg 4.1.13
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!
    • ok. We are getting there :)

      Source Code

      1. Setting up openmediavault-virtualbox (4.1) ...
      2. vbox:x:996:125::/var/lib/vbox:/bin/sh
      3. chown: cannot access '/etc/default/openmediavault-virtualbox': No such file or directory
      4. dpkg: error processing package openmediavault-virtualbox (--configure):
      5. subprocess installed post-installation script returned error exit status 1
      6. Processing triggers for openmediavault (4.1.6) ...
      7. Restarting engine daemon ...
      8. Errors were encountered while processing:
      9. openmediavault-virtualbox
      10. Exception ignored in: <function WeakValueDictionary.__init__.<locals>.remove at 0x7f7d848b7730>
      11. Traceback (most recent call last):
      12. File "/usr/lib/python3.5/weakref.py", line 117, in remove
      13. TypeError: 'NoneType' object is not callable
      14. Exception ignored in: <function WeakValueDictionary.__init__.<locals>.remove at 0x7f7d848b7730>
      15. Traceback (most recent call last):
      16. File "/usr/lib/python3.5/weakref.py", line 117, in remove
      17. TypeError: 'NoneType' object is not callable
      18. E: Sub-process /usr/bin/dpkg returned an error code (1)
      Display All

      strange...
    • Source Code

      1. root@home:~# dpkg -l |grep openm
      2. ii openmediavault 4.1.6 all openmediavault - The open network attached storage solution
      3. ii openmediavault-backup 3.11 all backup plugin for OpenMediaVault.
      4. ii openmediavault-cups 3.1.2 all OpenMediaVault CUPS (network printer server) plugin.
      5. ii openmediavault-keyring 1.0 all GnuPG archive keys of the OpenMediaVault archive
      6. ii openmediavault-letsencrypt 3.4.5 all Generate free and valid SSL certificates for OMV
      7. ii openmediavault-omvextrasorg 4.0.2 all OMV-Extras.org Package Repositories for OpenMediaVault
      8. ii openmediavault-virtualbox 4.1 all VirtualBox plugin for OpenMediaVault.
      but...
      I get this error in UI "Cannot use SplFileObject with directories"

      Source Code

      1. Error #0:
      2. LogicException: Cannot use SplFileObject with directories in /usr/share/phpvirtualbox/config.php:133
      3. Stack trace:
      4. #0 /usr/share/phpvirtualbox/config.php(133): SplFileInfo->openFile()
      5. #1 /usr/share/phpvirtualbox/config.php(89): phpVBoxConfig->getVboxUserPassword()
      6. #2 /usr/share/phpvirtualbox/endpoints/lib/config.php(156): phpVBoxConfig->__construct()
      7. #3 /usr/share/phpvirtualbox/endpoints/lib/vboxconnector.php(128): phpVBoxConfigClass->__construct()
      8. #4 /usr/share/openmediavault/engined/rpc/virtualbox.inc(134): vboxconnector->__construct()
      9. #5 [internal function]: OMV\Engined\Rpc\VirtualBox->getMachines(Array, Array)
      10. #6 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
      11. #7 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('getMachines', Array, Array)
      12. #8 /usr/sbin/omv-engined(536): OMV\Rpc\Rpc::call('VirtualBox', 'getMachines', Array, Array, 1)
      13. #9 {main}
      Display All
      phpvirtualbox does not seem to work
      I cannot see the VMs nor start/stop them..
    • Source Code

      1. Setting up openmediavault-virtualbox (4.1) ...
      2. vbox:x:996:125::/var/lib/vbox:/bin/sh
      3. chown: cannot access '/etc/default/openmediavault-virtualbox': No such file or directory
      4. dpkg: error processing package openmediavault-virtualbox (--configure):
      5. subprocess installed post-installation script returned error exit status 1
      6. Processing triggers for openmediavault (4.1.6) ...
      7. Updating file permissions ...
      8. Purging internal cache ...
      9. Restarting engine daemon ...
      10. Setting up openmediavault-webdav (4.0) ...
      11. Adding user webdav to group openmediavault-engined
      12. Updating configuration database ...
      13. Processing triggers for libc-bin (2.24-11+deb9u3) ...
      14. Processing triggers for systemd (232-25+deb9u3) ...
      15. Processing triggers for php7.0-fpm (7.0.27-0+deb9u1) ...
      16. NOTICE: Not enabling PHP 7.0 FPM by default.
      17. NOTICE: To enable PHP 7.0 FPM in Apache2 do:
      18. NOTICE: a2enmod proxy_fcgi setenvif
      19. NOTICE: a2enconf php7.0-fpm
      20. NOTICE: You are seeing this message because you have apache2 package installed.
      21. Processing triggers for openmediavault (4.1.6) ...
      22. Updating locale files ...
      23. Updating file permissions ...
      24. Purging internal cache ...
      25. Restarting engine daemon ...
      26. Errors were encountered while processing:
      27. openmediavault-virtualbox
      28. >>> *************** Error ***************
      Display All
      something is really wrong and I do not have a clue what..
    • Although I followed the link you sent before I tried it once more and it worked!
      I added couple of thinfg just to be on the safe side :)

      Source Code

      1. apt-get purge openmediavault-virtualbox phpvirtualbox virtualbox virtualbox-dkms virtualbox-ext-pack-installer
      2. rm -f /etc/default/openmediavault-virtualbox /etc/default/virtualbox
      3. rm -rf /usr/lib/virtualbox/
      4. userdel vbox
      5. groupdel vboxusers