VirtualBox Web Interface using phpVirtualBox and Debian 7

Here is a step by step tutorial on how to manage VirtualBox using the phpVirtualBox web interface on Debian 7.

Add VirtualBox package repository to apt source list:

sudo echo "deb wheezy contrib" >> /etc/apt/sources.list

Add the public key for this new repository:

wget -q -O- | apt-key add -

Update the source list:

apt-get update

Install the latest version of VirtualBox:

apt-get install virtualbox-4.3

Create a user for running virtual machines, member of the vboxusers group:

useradd -m -g vboxusers -s /bin/sh virtualbox

Set a password for the user, required by phpVirtualBox:

passwd virtualbox

Enable the VirtualBox Webserver:

sudo echo "VBOXWEB_USER=virtualbox" >> /etc/default/virtualbox

(Re)Start the VirtualBox Webserver:

service vboxweb-service restart

NOTE: A virtualbox configuration file having the only configuration entry above will create a listening server on localhost, port 18083. Further details available here:

Download and install the Extension Pack for using the remote desktop feature:

VBoxManage extpack install Oracle_VM_VirtualBox_Extension_Pack-4.3.18.vbox-extpack
rm Oracle_VM_VirtualBox_Extension_Pack-4.3.18.vbox-extpack

This tutorial assumes Apache / Nginx with PHP are available, and the required JSON and SOAP PHP extensions installed.

Download phpVirtualBox to your virtual hosts’ public directory:

Extract archive:


Copy the example file to a configuration file:

cp config.php-example config.php

Edit, and change the following:

var $username = 'virtualbox';
var $password = 'systemuserpassword';

/* SOAP URL of vboxwebsrv (not phpVirtualBox's URL) */
var $location = '';

Leave a Reply

Your email address will not be published. Required fields are marked *