CyberKeeda In Social Media

Create Oracle Virtualbox Guest Machines from Browsers

 

 

Install phpVirtualBox in Ubuntu 16.04 LTS


Video Tutorial.


  
It's a webbased tool, we need to install Apache HTTPD webserver, PHP and some additional php modules.
 
Lets go ahead.
  • Install Mandatory packages.
cybeerkeeda@Linux-Maniac:~ sudo apt-get install apache2 php php-mysql libapache2-mod-php php-soap php-xml
  • Download the phpVirtualBox latest version from phpVirtualBox download page.
cybeerkeeda@Linux-Maniac:~ cd /tmp wget https://sourceforge.net/projects/phpvirtualbox/files/phpvirtualbox-5.0-5.zip
  • Unzip it.
cybeerkeeda@Linux-Maniac:~ unzip phpvirtualbox-5.0-5.zip
cybeerkeeda@Linux-Maniac:~ mv phpvirtualbox-5.0-5  phpvirtualbox
  • Move the extracted phvirtualbox folder to your apache webserver root folder.
cybeerkeeda@Linux-Maniac:~ mv phpvirtualbox  /var/www/html/
  • Assign the proper permissions to the phpvirtualbox folder.
cybeerkeeda@Linux-Maniac:~ chmod 777 /var/www/html/phpvirtualbox/
  • Configure phpVirtualBox.

Copy the sample config file as shown below.
cybeerkeeda@Linux-Maniac:~ cvar/www/html/phpvirtualbox/config.php-example var/www/html/phpvirtualbox/config.php 
  • Edit phpVirtualBox config.php file:

cybeerkeeda@Linux-Maniac:~vim /var/www/html/phpvirtualbox/config.php


Find the following lines and replace the
username and password with your system user 

In my case, my username is kunal, and password is redhat.

var $username = 'kunal';
var $password = 'redhat';

Save and close the file.

Create a new file called /etc/default/virtualbox:

cybeerkeeda@Linux-Maniac:~vim /etc/default/virtualbox

Add the following line. Replace ‘kunal’ with your own username.

VBOXWEB_USER=kunal



Finally, Reboot your system or restart all services to complete the configuration.

sudo systemctl restart vboxweb-service
sudo systemctl restart vboxdrv
sudo systemctl restart apache2


You can disable the authentication mechanism.

// Disable authentication
var $noAuth = true;


I will open it directly from my browser without any authentication.


Here we go.. We have installed it..

No comments:

Post a Comment

Designed By Jackuna