VBoxWebService + Remote PhPVirtualBox Troubles

Discussions related to using VirtualBox on Linux hosts.
Post Reply
FreeSoftwareServers
Posts: 2
Joined: 7. Jul 2016, 02:45

VBoxWebService + Remote PhPVirtualBox Troubles

Post 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!
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: VBoxWebService + Remote PhPVirtualBox Troubles

Post by Perryg »

We don't support phpvirtualbox it is a 3rd party package that is supported by https://sourceforge.net/p/phpvirtualbox/wiki/Home/
FreeSoftwareServers
Posts: 2
Joined: 7. Jul 2016, 02:45

Re: VBoxWebService + Remote PhPVirtualBox Troubles

Post 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
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: VBoxWebService + Remote PhPVirtualBox Troubles

Post 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.
Post Reply