PhpVirtualBox

phpVirtualBox is a web-based administration utility for VirtualBox.

Installation
Currently, has no stable version, so you need to add it to your package.accept_keywords file.

Configuration
phpVirtualBox does not need a VirtualBox installation to be present on the same box where phpVirtualBox is installed. phpVirtualBox can connect to other machines where your virtual machines are installed. phpVirtualBox requires a web-server to be present on your box, so we will demonstrate an Apache configuration using SSL certificate to encrypt your communication with the server.

Verify VirtualBox Installation
VirtualBox must be compiled with the  USE flag on the host where the virtual machines are located.

Create SSL Certificate
First, we create our shiny new SSL certificate
 * Create our secret private key


 * You probably want to remove your private key, otherwise apache will ask you for it every time you start it


 * Create our new Certificate Singing Request (CSR)


 * Sign the CSR using our private key


 * Place certificate and private key somewhere safe

Configure Apache Virtual Host
Assuming you already have a working Apache installation, you need to create a new virtualhost for your phpVirtualBox installation. This entry should look like this:

The previous configuration is just an example, your installation/configuration may be a lot different.

Configure phpVirtualBox Installation
The key file for your phpVirtualBox installation is the config.php file deriving from config.php-example file

Edit this file and change the following variables

Verification

 * Start the vboxwebsrv init service on the host where your virtual machines are located (in our case on 192.168.1.205)


 * Restart Apache on the host where your phpVirtualBox was installed

Open your browser and connect to your phpVirtualBox by typing: https://phpvirtualbox.mydomain.example
 * Connect to phpVirtualBox installation

user: admin pass: admin
 * You should be able to login using the default credentials

External resources

 * phpVirtualBox wiki