Menu

Problems getting phpvirtualbox to work

Help
2014-06-08
2014-06-11
  • Bjřrn Martin Larsen

    Setup:
    Openindiana host running Virtualbox (10.1.1.1)
    Linux host running LAMP/phpvirtualbox (10.1.1.2)

    phpvirtualbox version: 4.3-1
    VBoxversion: 4.3.12

    I've changed the config.php file to point to http://10.1.1.1:18083.
    And if i start vboxwebsrv manually i can see that it gets connections from 10.1.1.2 when i try to log in to phpvirtualbox web-interface.

    ./vboxwebsrv -H 10.1.1.1 -p 18083
    Oracle VM VirtualBox web service Version 4.3.12
    (C) 2007-2014 Oracle Corporation
    All rights reserved.
    VirtualBox web service 4.3.12 r93733 solaris.amd64 (May 16 2014 13:58:11) release log
    00:00:00.000229 main Log opened 2014-06-08T11:49:10.105837000Z
    00:00:00.000232 main Build Type: release
    00:00:00.000239 main OS Product: SunOS
    00:00:00.000241 main OS Release: 5.11
    00:00:00.000243 main OS Version: oi_151a9
    00:00:00.000371 main DMI Product Name: To be filled by O.E.M.
    00:00:00.000416 main DMI Product Version: To be filled by O.E.M.
    00:00:00.001776 main Host RAM: 32705MB total, 17449MB available
    00:00:00.001782 main Executable: /opt/VirtualBox/amd64/vboxwebsrv
    00:00:00.001783 main Process ID: 15650
    00:00:00.001784 main Package type: SOLARIS_64BITS_GENERIC
    00:00:00.026331 SQPmp Socket connection successful: host = 10.1.1.1, port = 18083, master socket = 10
    00:00:10.714887 SQPmp Request 1 on socket 11 queued for processing (1 items on Q)
    00:00:10.714945 SQW01 New SOAP thread started
    00:00:10.714989 SQW01 Processing connection from IP=10.1.1.2 socket=11 (0 out of 1 threads idle)

    So, i'm assuming the problem is with the user/password combination in the config.php.

    I have tried with the default;
    var $username = 'vbox';
    var $password = 'pass';

    And have also tried with a different username/password, which would be my "regular" user on the Openindiana host, which is the one i use to do vbox stuff with (i.e log in to GUI with that user, and use the GUI to stop/start/create VM's etc).

    Neither of those seem to work, and when i try to login through the pvpvirtualbox interface i get the following error message.

    Exception Object
    (
    [message:protected] => Error logging in to vboxwebsrv.
    [string:Exception:private] =>
    [code:protected] => 64
    [file:protected] => /home/someusername/public_html/phpvirtualbox->4.3-1/lib/ajax.php
    [line:protected] => 128
    [trace:Exception:private] => Array
    (
    )

    [previous:Exception:private] =>
    )

    Anyone have any good ideas what may be wrong here ?

     

    Last edit: Bjřrn Martin Larsen 2014-06-08
  • Bjřrn Martin Larsen

    Eventually i got it to work, and the following command seems to be the one that did the trick.

    VBoxManage setproperty websrvauthlibrary null

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.