How Do You Manage Virtual Machines Over a Network Using Virtualbox?

How do you deal with virtual machines around a community employing Oracle Virtualbox? I have been asked this a pair of occasions recently and these days I will exhibit you how. Most of my tutorials on Virtualbox have been along the traces of setting up the program onto a procedure and controlling the digital devices on that procedure in particular person. This functions properly if you have a pair of digital desktop equipment but when you have really a few servers associated likely involving just about every server to have out maintenance gets incredibly wearisome.

This is the place you require a piece of software program known as phpvirtualbox. Phpvirtualbox is an open resource world wide web based mostly entrance end for Virtualbox which lets you to regulate all of your digital equipment around the world-wide-web.

So allows take a search at how we established this up. For the foundation of this tutorial I will be employing Linux Mint 12 and Virtualbox 4.1.4.

We 1st need to have to download and put in the current variation of Virtualbox from the Virtualbox web-site.

After installed we require to increase a person who will run Virtualbox. Open up up a terminal as root and form:

adduser vbox

When questioned source a person password. Up coming we have to add the vbox user to the vboxusers team in the /and so on/group file. So kind (as root):

gedit /and so on/group

Include vboxusers:x:113:vbox to the file and help save.

The moment we have completed with Virtualbox it is time to established up our world-wide-web server. Given that this is Linux we will be making use of Apache. Open up a terminal and put in the next packages:





For the duration of the install procedure MySQL will request you for a root password. Make this some thing complicated but do not forget about it!!!

As soon as put in open up up a internet browser and style your server tackle into the deal with bar and you will see the message IT Performs! This usually means that you have a operating world wide web server.

Now we require to obtain, install and configure phpvirtualbox. The recent release can be downloaded from the phpvirtualbox site.

I am assuming your downloads go to your Download folder. If not substitute Downloads with the spot that the file was downloaded to. Open up up a terminal and sort the subsequent instructions one particular at a time:

cd Downloads

cp -a phpvirtualbox-4.1.7 /var/www/phpvirtualbox

cd /var/www/phpvirtualbox

mv config.php-case in point config.php

It is now time to configure the config.php file so sort:

sudo gedit config.php



* phpVirtualBox example configuration.

* [@version] $Id: config.php-example 366 2011-12-01 19:56:57Z


* rename to config.php and edit as needed.



class phpVBoxConfig {

/* Username / Password for system user that runs VirtualBox */

var $username = ‘vbox’

var $password = ‘*********’

/* SOAP URL of vboxwebsrv (not phpVirtualBox’s URL) */

var $location = []

/* Default language. See languages folder for more language options.

* Can also be changed in File -> Tastes -> Language in

* phpVirtualBox.


var $language = ‘en’


Locate the username and password (Daring above) and modify the password to the a person you produced before. After finished preserve and exit.

Now we need to have to make confident that Virtualbox can commence at boot time and that means configuring init scripts. Open up up a terminal and variety:

cd /etcetera/init.d

and then:

sudo contact /and so on/init.d/vbox.start out

Now we want to configure the file so style:

sudo gedit /etc/init.d/vbox.begin

Copy /usr/bin/vboxwebsrv -b into the file. Help you save and exit.

That is Virtualbox configured to commence at boot time but we now have to help it so form:

chmod +x /and many others/init.d/vbox.start out

followed by:

update-rc.d vbox.start off defaults

Now it is time to reboot the server. Once it has rebooted go to a website browser and position it to your server address/phpvirtaulbox

You will now be equipped to control all the digital devices on the network from the comfort of your own chair.

Leave a Reply

Your email address will not be published.