[SOLVED] Virtualbox Plugin Install Problem

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

    • [SOLVED] Virtualbox Plugin Install Problem

      I'm facing the same problem as some other users while installing the Virtualbox plugin. The plugin is partially installed, which means not all vbox services are starting and (at least for me) the vbox user is not created during the installation process.

      Sources.list (also tried us repos, same result)

      Source Code

      1. # deb cdrom:[Debian GNU/Linux 6.0.0 _Squeeze_ - Official Snapshot amd64 LIVE/IN$
      2. #deb cdrom:[Debian GNU/Linux 6.0.0 _Squeeze_ - Official Snapshot amd64 LIVE/INS$
      3. deb http://ftp.de.debian.org/debian/ squeeze main
      4. deb-src http://ftp.de.debian.org/debian/ squeeze main
      5. deb http://security.debian.org/ squeeze/updates main non-free
      6. deb-src http://security.debian.org/ squeeze/updates main non-free
      7. # squeeze-updates, previously known as 'volatile'
      8. deb http://ftp.de.debian.org/debian/ squeeze-updates main non-free
      9. deb-src http://ftp.de.debian.org/debian/ squeeze-updates main non-free
      Display All


      Source Code

      1. root@omv:~# ps aux | grep virtualbox
      2. root 25591 0.0 0.0 9108 860 pts/0 S+ 18:50 0:00 grep virtualbox


      vboxdrv setup

      Source Code

      1. root@omv:~# /etc/init.d/vboxdrv setup
      2. Stopping VirtualBox kernel modules:
      3. Message from syslogd@omv at Mar 16 18:51:28 ...
      4. kernel:[15613.905434] RTSpinlockReleaseNoInts: ffff88013b896c10 (magic=0x19480428)
      5. .
      6. Uninstalling old VirtualBox DKMS kernel modules:.
      7. Trying to register the VirtualBox kernel modules using DKMS:.
      8. Starting VirtualBox kernel modules:.


      Web-UI error on virtualbox plugin page.

      Source Code

      1. Failed to execute command 'sudo omv-mkconf virtualbox 2>&1': Unknown id: vbox


      Error when executing mkconf.

      Source Code

      1. root@omv:~# omv-mkconf virtualbox
      2. Unknown id: vbox


      Seems like it all boils down to the vbox user. Is it somehow possible to trigger the script that creates said user ?
    • Re: Virtualbox Plugin Install Problem

      Cut and paste the following code into a file called add_vbox.sh. Then chmod +x add_vbox.sh and execute by ./add_vbox.sh. This is pretty much cut and paste right out of the install script. Or you could reinstall the plugin.

      Shell-Script

      1. #!/bin/sh
      2. # Generate random password
      3. NPSWD=$(makepasswd --crypt-md5 --chars=10)
      4. NPSWD_CLEAR=$(echo ${NPSWD} | awk '{ print $1 }')
      5. NPSWD_CRYPT=$(echo ${NPSWD} | awk '{ print $2 }')
      6. # Add user
      7. useradd -d /home/vbox -c "openmediavault-virtualbox" -m -p ${NPSWD_CRYPT} -N -g vboxusers vbox
      8. # Store password for vboxwebsrv connectivity
      9. echo "${NPSWD_CLEAR}" >/etc/default/openmediavault-virtualbox
      10. # Fix permissions
      11. chown root:root /etc/default/openmediavault-virtualbox
      12. chmod 0600 /etc/default/openmediavault-virtualbox
      13. chmod u+rx /etc/init.d/openmediavault-virtualbox
      Display All
      omv 4.0.14 arrakis | 64 bit | 4.13 backports kernel | omvextrasorg 4.1.1
      omv-extras.org plugins source code and issue tracker - github.com/OpenMediaVault-Plugin-Developers

      Please don't PM for support... Too many PMs!
    • Re: Virtualbox Plugin Install Problem

      make sure contents of this file /etc/apt/sources.list is the following:

      Source Code

      1. #
      2. # deb cdrom:[Debian GNU/Linux 6.0.0 _Squeeze_ - Official Snapshot amd64 LIVE/INSTALL Binary 20121202-11:35]/ squeeze main non-free
      3. #deb cdrom:[Debian GNU/Linux 6.0.0 _Squeeze_ - Official Snapshot amd64 LIVE/INSTALL Binary 20121202-11:35]/ squeeze main non-free
      4. deb http://ftp.us.debian.org/debian/ squeeze main
      5. deb-src http://ftp.us.debian.org/debian/ squeeze main
      6. deb http://security.debian.org/ squeeze/updates main non-free
      7. deb-src http://security.debian.org/ squeeze/updates main non-free
      8. # squeeze-updates, previously known as 'volatile'
      9. deb http://ftp.us.debian.org/debian/ squeeze-updates main non-free
      10. deb-src http://ftp.us.debian.org/debian/ squeeze-updates main non-free
      Display All


      check this file and make sure it's contents match: /etc/apt/sources.list.d/openmediavault.list

      Source Code

      1. deb http://packages.openmediavault.org/public fedaykin main


      check this file and make sure contents match: /etc/apt/sources.list.d/omv-plugins-org-fedaykin.list

      Source Code

      1. deb http://packages.omv-plugins.org fedaykin main
    • Re: Virtualbox Plugin Install Problem

      In OMV web-gui go to /system/general setting and change session timout to 10 minutes and click on ok.
      Then in web-gui go to /system /network DNS server TAB on right and make sure you enter ip of your router. Then click on ok.

      Then in command line do:

      apt-get update
      apt-get -f install
      apt-get upgrade

      Then uninstall virtualbox plugin and reinstall.

      Now you can go to my post on this thread to finish the job.....

      forums.openmediavault.org/viewtopic.php?f=13&t=1698
    • Re: Virtualbox Plugin Install Problem

      Seems that I got it working.

      Source Code

      1. root@omv:~# ps aux | grep virtualbox
      2. vbox 11552 0.0 0.1 184524 5552 ? Sl 01:19 0:00 /usr/lib/virtualbox/vboxwebsrv --background -H 127.0.0.1
      3. vbox 11554 0.0 0.1 87632 5360 ? S 01:19 0:00 /usr/lib/virtualbox/VBoxXPCOMIPCD
      4. vbox 11559 0.0 0.1 173584 7444 ? Sl 01:19 0:00 /usr/lib/virtualbox/VBoxSVC --auto-shutdown
      5. root 11680 0.0 0.0 9108 860 pts/0 S+ 01:20 0:00 grep virtualbox


      I can enable the plugin on the Web-UI, but when I switch over to the VM tab I get another error.

      Source Code

      1. Error #64:
      2. exception 'Exception' with message 'Error logging in to vboxwebsrv.' in /usr/share/phpvirtualbox/lib/vboxconnector.php:213
      3. Stack trace:
      4. #0 /var/www/openmediavault/rpc/virtualbox.inc(256): vboxconnector->connect()
      5. #1 [internal function]: VirtualBoxRpc->getMachines(Array)
      6. #2 /usr/share/php/openmediavault/rpc.inc(265): call_user_func_array(Array, Array)
      7. #3 /usr/share/php/openmediavault/rpc.inc(98): OMVRpc::exec('virtualbox', 'getMachines', Array)
      8. #4 /var/www/openmediavault/rpc.php(44): OMVJsonRpcServer->handle()
      9. #5 {main}
    • Re: Virtualbox Plugin Install Problem

      "Sodden" wrote:

      Seems that I got it working.

      Source Code

      1. root@omv:~# ps aux | grep virtualbox
      2. vbox 11552 0.0 0.1 184524 5552 ? Sl 01:19 0:00 /usr/lib/virtualbox/vboxwebsrv --background -H 127.0.0.1
      3. vbox 11554 0.0 0.1 87632 5360 ? S 01:19 0:00 /usr/lib/virtualbox/VBoxXPCOMIPCD
      4. vbox 11559 0.0 0.1 173584 7444 ? Sl 01:19 0:00 /usr/lib/virtualbox/VBoxSVC --auto-shutdown
      5. root 11680 0.0 0.0 9108 860 pts/0 S+ 01:20 0:00 grep virtualbox


      I can enable the plugin on the Web-UI, but when I switch over to the VM tab I get another error.

      Source Code

      1. Error #64:
      2. exception 'Exception' with message 'Error logging in to vboxwebsrv.' in /usr/share/phpvirtualbox/lib/vboxconnector.php:213
      3. Stack trace:
      4. #0 /var/www/openmediavault/rpc/virtualbox.inc(256): vboxconnector->connect()
      5. #1 [internal function]: VirtualBoxRpc->getMachines(Array)
      6. #2 /usr/share/php/openmediavault/rpc.inc(265): call_user_func_array(Array, Array)
      7. #3 /usr/share/php/openmediavault/rpc.inc(98): OMVRpc::exec('virtualbox', 'getMachines', Array)
      8. #4 /var/www/openmediavault/rpc.php(44): OMVJsonRpcServer->handle()
      9. #5 {main}


      Is it possible that there's still some leftovers from the previous install ? For example the old vbox user password.
    • Re: Virtualbox Plugin Install Problem

      Let me think about it. This is something I have not seen. You are close so don't mess it up ok.
      It would be helpful if you did a code box and showed the whole error message.


      Give us a couple days.


      I will look into more later. TekkB

      /usr/share/phpvirtualbox

      vbox user password mismatch between vbox user and clear password in /etc/default/openmediavault-virtualbox ????

      Sodden, Please give results of this command:
      service vboxweb-service status

      Also, tell me what you get if you go to:
      ipofyouromv/virtualbox ( e.g. ip of your omv is 192.168.1.122)
    • Re: Virtualbox Plugin Install Problem

      ok, so here's what I get when I go to omv/virtualbox

      Source Code

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

      after that

      Source Code

      1. Exception Object
      2. (
      3. [message:protected] => Error logging in to vboxwebsrv.
      4. [string:Exception:private] =>
      5. [code:protected] => 64
      6. [file:protected] => /usr/share/phpvirtualbox/lib/vboxconnector.php
      7. [line:protected] => 213
      8. [trace:Exception:private] => Array
      9. (
      10. [0] => Array
      11. (
      12. [file] => /usr/share/phpvirtualbox/lib/vboxconnector.php
      13. [line] => 5131
      14. [function] => connect
      15. [class] => vboxconnector
      16. [type] => ->
      17. [args] => Array
      18. (
      19. )
      20. )
      21. [1] => Array
      22. (
      23. [file] => /usr/share/phpvirtualbox/lib/vboxconnector.php
      24. [line] => 923
      25. [function] => remote_vboxSystemPropertiesGet
      26. [class] => vboxconnector
      27. [type] => ->
      28. [args] => Array
      29. (
      30. [0] => Array
      31. (
      32. [fn] => vboxSystemPropertiesGet
      33. )
      34. )
      35. )
      36. [2] => Array
      37. (
      38. [file] => /usr/share/phpvirtualbox/lib/ajax.php
      39. [line] => 309
      40. [function] => __call
      41. [class] => vboxconnector
      42. [type] => ->
      43. [args] => Array
      44. (
      45. [0] => vboxSystemPropertiesGet
      46. [1] => Array
      47. (
      48. [0] => Array
      49. (
      50. [fn] => vboxSystemPropertiesGet
      51. )
      52. [1] => Array
      53. (
      54. [0] => Array
      55. (
      56. [data] => Array
      57. (
      58. [responseData] => Array
      59. (
      60. )
      61. )
      62. [errors] => Array
      63. (
      64. )
      65. [persist] => Array
      66. (
      67. )
      68. [messages] => Array
      69. (
      70. )
      71. )
      72. )
      73. )
      74. )
      75. )
      76. [3] => Array
      77. (
      78. [file] => /usr/share/phpvirtualbox/lib/ajax.php
      79. [line] => 309
      80. [function] => vboxSystemPropertiesGet
      81. [class] => vboxconnector
      82. [type] => ->
      83. [args] => Array
      84. (
      85. [0] => Array
      86. (
      87. [fn] => vboxSystemPropertiesGet
      88. )
      89. [1] => Array
      90. (
      91. [0] => Array
      92. (
      93. [data] => Array
      94. (
      95. [responseData] => Array
      96. (
      97. )
      98. )
      99. [errors] => Array
      100. (
      101. )
      102. [persist] => Array
      103. (
      104. )
      105. [messages] => Array
      106. (
      107. )
      108. )
      109. )
      110. )
      111. )
      112. )
      113. [previous:Exception:private] =>
      114. )
      115. Location:http://127.0.0.1:18083/
      Display All


      and after that I get a login box.

      vobxweb-service is running

      Source Code

      1. root@omv:~# service vboxweb-service status
      2. Checking for VBox Web Service ...running

      I'm pretty sure it's just some old file that contains the old vbox user login data.
    • Re: Virtualbox Plugin Install Problem

      I GOT IT. Damn that was tricky.

      So here's what i did. Basicly I just used "find -iname" to locate everything virtualbox releated e.g.

      Source Code

      1. *.vbox*, *vbox*, *.virtualbox*, *virtualbox*, *phpvirtualbox* and so on

      And I guess here is where the problem was, there are two .Virtualbox folders, one is located in /root the other one is in /home/vbox.
      I then went ahead and purged everything again to get a fresh start.

      Source Code

      1. apt-get purge virtualbox*

      And after that I deleted everything I previously found including the vbox user and group.

      Source Code

      1. rm -rf /root/.Virtualbox
      2. rm -rf /home/vbox
      3. rm -rf /etc/defaults/openmediavault-virtualbox
      4. rm -rf /etc/defaults/virtualbox
      5. rm -rf /tmp/.vbox*
      6. rm -rf /usr/share/phpvirtualbox
      7. userdel vbox
      8. groupdel vboxusers

      After that I used "find" again do see if I missed anything.
      The rest was pretty straight forward.
      Install Virtualbox-Plugin via web-UI and reboot. Done.