PHP VirtualBox — Accessing VirtualBox from a Browser

This article introduces phpVirtualBox, an open source, AJAX and PHP-based implementation of the Oracle VirtualBox user interface.
Oracle VirtualBox is great enterprise-ready virtualisation software. However, what it lacks is a powerful Web-based management interface. Usually, people prefer VMWare over VirtualBox, as it has a good Web-based remote management interface.
phpVirtualBox provides an interface that’s a VirtualBox-look-alike for people who are not command-line savvy. Through phpVirtualBox, you can control a headless VirtualBox VM from a Web browser, including operations such as start/stop VMs, take snapshots, configure VMs, import/export VMs, and much more. Some of its code is based on the now inactive VBoxWeb project.
The requirements are:
  • Any Web server with PHP 5.2.0 or later; xampp will be good.
  • A working installation of Oracle VirtualBox 3.2.2 or later.
  • Any Web browser — Firefox, Opera, Chrome or IE — will do the job.

Installation on Windows

Installation is very simple. Here, I’m using Windows XP SP3.
Install Oracle VirtualBox OSE 3.2.10, and then install xampplite-win32-1.7.3Download phpVirtualBox and extract the files/folder into the htdocs directory. phpVirtualBox requires thatvboxwebsrv.exe must be running on the Oracle VirtualBox host machine. This file is located atC:\Program Files\Oracle\VirtualBox\.
Vboxmanage setproperty websrvauthlibrary null
Vboxwebsrv.exe >null
Note: you can use by default user name password admin.
Now, edit the config.php file and change it to the following settings:
/* Username / Password for system user that runs Oracle VirtualBox */
var $username = 'administrator';
var $password = 'guesswhat';
var $location = 'http://localhost:18083/';
/*don't change if using single machine for VirtualBox and phpVirtualBox*/
Now navigate to the resulting folder in your Web browser (see Figure 1).

Start Virtual box websrvauthlibrary on start up just put these command in notepad and save with .bat file and set on startup
cd C:\Program Files\Oracle\VirtualBox
Vboxmanage setproperty websrvauthlibrary null
Vboxwebsrv.exe >null
Disabled settings and remove Virtual machine option from Virtual box PHP interface
There is a file in virtualboxphp\js directory with name phpvirtualbox.js edit with notepad and find code with remove vm and settings and delete chooser function.

Post a Comment

NETWORKSTIP Networking CCNA,Centos,Ubuntu,Sql, © 2013. All Rights Reserved. Shared by NetworksTip Muhammad Nafees