phpvirtualbox, manage your virtual machines from anywhere.

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
Scridb filter


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.
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
18/07/2011 at 6:03 pm Permalink
thanks for recomended link, bro.
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