phpvirtualbox, manage your virtual machines from anywhere.

» 06 June 2011 » In Uncategorized »

Phpvirtualbox is web-based AJAX administration interface that allow more easily to manage and control VirtualBox virtual machines from any web browser. Some features present on Phpvirtualbox are: (Start / Stop VMs, Snapshots: Take Snapshot, Delete Snapshot Restore Snapshot. Import / Export Virtual Machines ). This guide explains how to successfully install Phpvirtualbox and run your VirtualBox instances.

Requirements

Ubuntu server 10.04 LTS 32bit
A physical server with at least 2gb ram installed, if you have more please
install the PAE kernel with:

#apt-get install linux-generic-pae linux-headers-generic-pae

1) Apache installation and configuration

#apt-get install  apache2 libapache2-mod-php5 build-essential htop unzip

#/etc/init.d/apache2 restart

2) Virtual box installation and setup

add the virtualbox repository to /etc/apt/sources.list

#echo 'deb http://download.virtualbox.org/virtualbox/debian lucid contrib non-free' >> /etc/apt/sources.list
#wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | sudo ajapt-key add -
#apt-get update
#apt-get install --no-install-recommends virtualbox-4.0

Download the virtual box extension pack

#wget http://download.virtualbox.org/virtualbox/4.0.8/Oracle_VM_VirtualBox_Extension_Pack-4.0.8-71778.vbox-extpack

Install the box extension pack

#VBoxManage extpack install Oracle_VM_VirtualBox_Extension_Pack-4.0.8-71778.vbox-extpack

Create the user that will run Virtualbox.

#adduser vbox

Add the vbox user to the vboxusers group in the /etc/group file.

vboxusers:x:113:vbox

3) Php interface

#cd /tmp/
#wget http://phpvirtualbox.googlecode.com/files/phpvirtualbox-4.0-6.zip
#unzip phpvirtualbox-4.0-5.zip
#cp -a phpvirtualbox-4.0-6 /var/www/phpvirtualbox
#cd /var/www/phpvirtualbox/
#mv config.php-example config.php
#vim config.php

In the password field please use the vbox user passowrd.

/* Username / Password for system user that runs VirtualBox */
var $username = ‘vbox’;
var $password = ‘vboxpassword’;

4) Automatic start virtualbox at boot time

#cd /etc/init.d

create a file named /etc/init.d/vbox.start and copy the folowinf string

/usr/bin/vboxwebsrv -b

This mean that virtualbox webserver will start at boot time in background mode.

Enable virtualbox to start at boot time:

chmod +x /etc/init.d/vbox.start
update-rc.d vbox.start defaults

Reboot the server and poing the browser to http://serveripaddress/phpvirtualbox/

Log into the phpvirtualbox using admin/admin as credentials, after the first login
plese change the admin password using: File > Change password, on the top left.

Enjoy !!!

If you want to save time you can download the Turnkey preconfigured VirtualBox appliance from http://9while9.com

Did you like this? Share it:
Scridb filter

Tags:

Trackback URL

5 Comments on "phpvirtualbox, manage your virtual machines from anywhere."

  1. pbailey
    Nst.web.id
    14/07/2011 at 6:13 pm Permalink

    Let’s me post your tutorial in my blog, with indonesian language, and thanks for share bro.

  2. pbailey
    pbailey
    14/07/2011 at 6:49 pm Permalink

    Hello there,

    feel free to publish whatever you want, my only recommendation is to follow the Creative Commons License.

    http://creativecommons.org/licenses/by-sa/3.0/

    Best.
    Phillip

  3. pbailey
    Nst.Web.Id
    18/07/2011 at 6:03 pm Permalink

    thanks for recomended link, bro.

  4. pbailey
    JI
    23/08/2011 at 5:54 pm Permalink

    Windows version of the same install found here :-

    http://usyse.blogspot.com/2011/08/oracle-vm-virtualbox-remote.html

Trackbacks

  1. [...] Read the full tutorial here [...]

Hi Stranger, leave a comment:

ALLOWED XHTML TAGS:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">

Subscribe to Comments