HOME

 

Bionic Beaver: This Procedure is current!  Last step-by-step and line-by-line procedure followed.

The below procedures have been updated as of 09/02/2018 03:19.  This is a baseline load that will turn a nearly modern desktop computer into a virtual server.  This is not a HOW-TO page.  It is more of a cheat sheet. We assume the reader has a fair amount of experience with the Unix environment which includes knowledge of basic command for navigation within the Unix environment and familiarity with a Unix/Linux text editors. 

If you find a error or mistake in this cheat sheet, please email me at:

The server is going to use the following open source projects/programs:

  •  Ubuntu 18.04 LTS  (Long-Term Support) (http://www.ubuntu.com/), with the "ubuntu-18.04.1-server-amd64.iso" file
  •  Oracle's VirtualBox (https://www.virtualbox.org/)
  •  phpVirtualBox (https://github.com/phpvirtualbox/phpvirtualbox)

An overview of the steps to build the virtual server consists of:

  •  Operating System - Installation and Configuration
  •  Type 2 hypervisor - Installation and Configuration
  •  Web interface for remote access and control of Virtual Machine - Installation and Configuration

Install Ubuntu 18.04 LTS

  •  During the installation of Ubuntu 16.04 LTS, the only additional software you should load after the system core is "OpenSSH Server".  This cheat sheet is based on a system core installation with OpenSSH.
    NOTE: At this point you no longer need to use the "console"  The remainder of the installation procedures can be conducted from a Secure Shell (SSH) terminal (i.e. PuTTY)

Once the Ubuntu core server load and OpenSSH Server installation is completed, log in and then do the following actions:

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install zip unzip apache2 php php-mysql libapache2-mod-php php-soap php-xml
sudo make-ssl-cert generate-default-snakeoil --force-overwrite
sudo vi /etc/apache2/conf-available/security.conf
Change line 25 from "ServerTokens OS" to "ServerTokens Prod"
Change line 36 from "ServerSignature On" to "ServerSignature Off"
sudo a2enmod rewrite ssl
sudo a2ensite default-ssl
sudo a2enmod proxy
sudo a2enmod proxy_http
sudo systemctl  restart apache2


Install Oracle's VirtualBox (Updated 09/02/2018)
wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add -
wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | sudo apt-key add -
sudo vi /etc/apt/sources.list
Add the following line:
deb [arch=amd64] http://download.virtualbox.org/virtualbox/debian bionic contrib
sudo apt-get update
sudo apt-get install virtualbox-5.2
sudo usermod -a -G vboxusers white <-change this to your user name

Install A Virtual Box Extensions (Updated 09/02/2018)
sudo wget https://download.virtualbox.org/virtualbox/5.2.18/Oracle_VM_VirtualBox_Extension_Pack-5.2.18.vbox-extpack
sudo VBoxManage extpack install Oracle_VM_VirtualBox_Extension_Pack-5.2.18.vbox-extpack
sudo rm -f Oracle_VM_VirtualBox_Extension_Pack-5.2.18.vbox-extpack

Configure Virtual Box
Create the virtualbox file:
sudo vi /etc/default/virtualbox
Add the following content:
VBOXWEB_USER=ian <-change this to your user name
VBOXWEB_HOST=192.168.0.4 <-change this to your user server's IP address
 

Install A Remote Management of Virtual environment (phpvirtualbox)
sudo wget https://github.com/phpvirtualbox/phpvirtualbox/archive/master.zip
sudo unzip master.zip
sudo mv phpvirtualbox-master /var/www/html/phpvbox
sudo rm -f phpvirtualbox-master.zip
sudo chown -R www-data:www-data /var/www/html

Configure phpvirtualbox
sudo cp /var/www/html/phpvbox/config.php-example /var/www/html/phpvbox/config.php
sudo vi /var/www/html/phpvbox/config.php
Change:
var $username = 'ian'; <-change this to your user name
var $password = 'pass'; <- Change this to your password
var $location = 'http://192.168.0.4:18083/' <-change this to your user server's IP address

Final Steps
Reboot systems or restart the following three services:
sudo systemctl restart vboxweb-service
sudo systemctl restart vboxdrv
sudo systemctl restart apache2

You are finished.  You should be able to point your web browser to http://<IP Address>/phpvbox/

If anybody finds problems with these load procedures, has suggestions or comments, please feel free to email me.