VirtualBox webservice issue

  • Hi,


    I have the virtualbox plugin installed and have been creating and running VMs via the command line for a while as I have been unable to get the webservice to connect, but it would now be useful to give someone access to this.


    I get the following errors;


    omv gui -> virtualbox -> virtual machines:


    Error #64:
    exception 'Exception' with message 'Error logging in to vboxwebsrv.' in /usr/share/phpvirtualbox/lib/vboxconnector.php:210
    Stack trace:
    #0 /usr/share/openmediavault/engined/rpc/virtualbox.inc(176): vboxconnector->connect()
    #1 [internal function]: OMVRpcServiceVirtualBox->getMachines(Array, Array)
    #2 /usr/share/php/openmediavault/rpcservice.inc(125): call_user_func_array(Array, Array)
    #3 /usr/share/php/openmediavault/rpc.inc(79): OMVRpcServiceAbstract->callMethod('getMachines', Array, Array)
    #4 /usr/sbin/omv-engined(500): OMVRpc::exec('VirtualBox', 'getMachines', Array, Array, 1)
    #5 {main}


    and on phpvirtualbox:


    Exception Object
    (
    [message:protected] => Error logging in to vboxwebsrv.
    [string:Exception:private] =>
    [code:protected] => 64
    [file:protected] => /usr/share/phpvirtualbox/lib/ajax.php
    [line:protected] => 128
    [trace:Exception:private] => Array
    (
    )


    [previous:Exception:private] =>
    )


    service vboxweb-service status
    Checking for VBox Web Service ...running



    ps aux | grep vbox
    vbox 2887 0.0 0.3 209816 12700 ? Sl 15:35 0:00 /usr/lib/virtualbox/vboxwebsrv --background -H 127.0.0.1
    vbox 2914 0.0 0.2 103232 9008 ? S 15:35 0:00 /usr/lib/virtualbox/VBoxXPCOMIPCD
    vbox 2932 0.0 0.3 128632 12652 ? Sl 15:35 0:00 /usr/lib/virtualbox/VBoxSVC --auto-shutdown



    netstat -an | grep 18083
    tcp 0 0 127.0.0.1:18083 0.0.0.0:* LISTEN



    cat /etc/default/virtualbox
    # Defaults for VirtualBox.
    # Sourced by vboxweb-service on startup


    VBOXWEB_USER=vbox
    VBOXWEB_HOST=127.0.0.1



    dpkg -l | grep virtualbox
    ii openmediavault-virtualbox 1.0.14 all VirtualBox plugin for OpenMediaVault.
    ii phpvirtualbox 4.3-2 all PhpVirtualBox is a web interface for VirtualBox
    ii virtualbox-4.3 4.3.20-96996~Debian~wheezy amd64 Oracle VM VirtualBox
    ii virtualbox-extpack-installer 4.3.20 all VirtualBox extpack installer.



    Any help will be appreciated, but as I have VM's running I do not want to uninstall/reinstall the plugin.


    Thanks!

  • In case this happens to anyone else the following fixed the issue for me;



    Code
    chown vbox:vboxusers -R "/media/path/to/VMs"
    
    
    su vbox -c "VBoxManage setproperty machinefolder '/media/path/to/VMs'"
    
    
    su vbox -c "VBoxManage setproperty websrvauthlibrary null"
    
    
    /etc/init.d/vboxweb-service restart



    no guarantees it will work for you, so just for information.

Jetzt mitmachen!

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