Comments on phpvirtualbox - Running Virtual Machines With VirtualBox 4.2 and phpvirtualbox On A Headless Ubuntu 12.04 Server

phpvirtualbox - Running Virtual Machines With VirtualBox 4.2 and phpvirtualbox On A Headless Ubuntu 12.04 Server phpvirtualbox is a web-based VirtualBox front-end written in PHP that allows you to access and control remote VirtualBox instances. It tries to resemble the VirtualBox GUI as much as possible to make work with it as easy as possible. It is a nice replacement for the VirtualBox GUI if you run VirtualBox in headless servers. This tutorial explains how to install phpvirtualbox on an Ubuntu 12.04 server to manage a locally installed, headless VirtualBox (version 4.2).

11 Comment(s)

Add comment

Please register in our forum first to comment.

Comments

By: Gerrit

When I created the /var/www/phpvirtualbox/config.php with your information I got an AJAX error (couldn't parse it).

 It would be better to update the file /var/www/phpvirtualbox/config.php-example with the username and password, and then save it as the config.php file.

But other than that, it worked great! Thanks.

By: Bas

Thanks to Gerrit it works fine.

The only problem I have is that I can not login with the vbox user only with admin.

By: Anonymous

The vbox user only runs vboxweb-service and is used for the SOAP interaction. To create another user for phpvirtualbox, use the admin panel within the application.

By: Anonymous

Hi,

 

I'm confused 

I installed everything, and with some update weblinks (virtualbox 4.3 and  Oracle_VM_VirtualBox_Extension_Pack-4.3.2-90405.vbox-extpack) I think I've got virtualbox up and running.

I can't however login to the phpvirtualbox site. password setting via the  passwd vbox command is set to 'test', also the password in config.php is test, but still I get "Invalid username or password."

 

Where did my thoughts go in the wrong direction???

By: Gordon

The source files for phpvirtualbox have moved from  Googlecode to Sourceforge. The latest version is located at http://sourceforge.net/projects/phpvirtualbox/

 

By: Anonymous

I think there is a syntax error in the copy command

 cp phpvirtualbox-4.2-4 /var/www/phpvirtualbox/

By:

First of all a nice tutorial. I found a few small mistakes, however which could be fixed. VirtualBox 4.1.18 Oracle VM VirtualBox Extension Pack ---- speaking about the current version. Support for USB 2.0 devices, VirtualBox RDP and PXE boot for Intel cards. Download and install the extension pack as follows: cd /tmp wget http://download.virtualbox.org/virtualbox/4.2.12/Oracle_VM_VirtualBox_Extension_Pack-4.2.12-84980.vbox-extpack ---- speaking about 4.2.12 VBoxManage extpack install Oracle_VM_VirtualBox_Extension_Pack-4.2.11-84980.vbox-extpack ---- speaking about 4.2.11 It should be : ---------------------------------------------------------------------- cd /tmp wget http://download.virtualbox.org/virtualbox/4.2.18/Oracle_VM_VirtualBox_Extension_Pack-4.2.18.vbox-extpack VBoxManage extpack install Oracle_VM_VirtualBox_Extension_Pack-4.2.18.vbox-extpack

By: Anonymous

If running this on an Ubuntu 12.04 minimal install, unzip is not installed and should be added to the list of packages to retrieve via apt-get while pulling down apache. Also, wget is listed as part of the package list to get with apache, yet is already called for use in step 2 to obtain the repo key.

By: Shane G

I have attempted this setup more than once with less than successful results.  I can hit the server, but the instance of PHPVB is says the site is not found. 

What am I missing? (Aside from experience) :D

 

By: Shane G

I found my error... 

Mods - please delete :) 

 

By: Anonymous

Configured everything as per the tutorial. When trying to log in to phpvirtualbox with the username and password provided in config.php I get "Invalid username or password"

 Am I supposed to log in using some other login credentials?

 The server appears to be running:

netstat -plnt
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 0.0.0.0:3306            0.0.0.0:*               LISTEN      1071/mysqld    
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      1241/apache2   
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      947/sshd       
tcp        0      0 127.0.0.1:18083         0.0.0.0:*               LISTEN      1164/vboxwebsrv
tcp6       0      0 :::22                   :::*                    LISTEN      947/sshd