Page 1 of 1

VBoxWebService + Remote PhPVirtualBox Troubles

Posted: 7. Jul 2016, 02:54
by FreeSoftwareServers
So I have created two brand new Ubuntu 14.04 VM's.

One runs only virtualbox, the other only apache/php/phpvirtualbox.

The idea is to control virtualbox from the remote 2nd server (on the LAN)

I can't seem to get this to work for the life of me, I'm not sure the problem is with phpvirtualbox, I can't even get netstat | grep 18083 to return anything.

What I have done so far post installation configuration wise..

IP's :

Code: Select all

192.168.1.178 = VBOXBM
192.168.1.177 = PHPVM
Lets start with the PhPVirtualBox VM - Henceforth PHPVM

Code: Select all

sudo nano /var/www/html/phpvirtualbox/config.php && sudo service apache2 restart

Code: Select all

var $username = ‘free’;
var $password = ‘MyPassWord’;
If you are running VirtualBox and php are on the same host, leave the following $location as it is.

Code: Select all

var $location = ‘h-t-t-p-://192.168.1.178:18083/’;

Code: Select all

var $servers = array(
        array(
                'name' => 'London',
                'username' => 'free',
                'password' => 'MyPassWord',
                'location' => h-t-t-p://192.168.1.78:18083/',
                'authMaster' => true // Use this server for $
        ),
);
On VBOXVM

Code: Select all

sudo usermod -a -G vboxusers free

Code: Select all

sudo nano /etc/default/virtualbox && sudo /etc/init.d/vboxweb-service restart

Code: Select all

VBOXWEB_USER=free
VBOXWEB_PASSWD=MyPassWord
VBOXWEB_TIMEOUT=0
VBOXWEB_HOST=192.168.1.178
I have no VM's configured, no folders, I did chmod 777 /var/www/html/phpvirtualbox, but nothing on VBOXVM.

It just won't work, I have been having a really hard time figuring this out, and/or finding any sort of help.

Any help is much appreciated! I consider myself well versed in Linux so I should be able to follow any directions or get any information, but again, can't seem to get this to work!

Re: VBoxWebService + Remote PhPVirtualBox Troubles

Posted: 7. Jul 2016, 03:11
by Perryg
We don't support phpvirtualbox it is a 3rd party package that is supported by https://sourceforge.net/p/phpvirtualbox/wiki/Home/

Re: VBoxWebService + Remote PhPVirtualBox Troubles

Posted: 7. Jul 2016, 19:02
by FreeSoftwareServers
Ok, but I can't get VBOX web service to listen on port 18083 or accept auth, regardless of the 3rd party program, the VBOX-webservice is part of VirtualBox

Re: VBoxWebService + Remote PhPVirtualBox Troubles

Posted: 7. Jul 2016, 19:21
by Perryg
I would suggest that you set the password to null to start with until you have success at starting the service, then proceed.

Also read the manual http://www.virtualbox.org/manual/ch09.h ... srv-daemon and download the sdk mentioned as it explains everything you should know.