Virtual Box Install
- install virtual box repository key
- edit source list
- install vobx package
- download and install extension pack
- add your username to vboxusers group
- configure some parameters (to save machine when shutting down, and start service on startup)
- install phpvirtualbox. Very useful tool to manage virtual box via web. Access it at http://<ip>/phpvirtualbox/ (admin:admin)
- wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | sudo apt-key add –
- sudo nano /etc/apt/sources.list
add the line:
deb http://download.virtualbox.org/virtualbox/debian xenial contrib - sudo apt-get update && sudo apt-get install virtualbox-5.1
- wget http://download.virtualbox.org/virtualbox/5.1.10/Oracle_VM_VirtualBox_Extension_Pack-5.1.10-112026.vbox-extpack #then install via graphic interface of Oracle Virtual Box
- sudo adduser youruser vboxusers
- sudo nano /etc/default/virtualbox
addVBOXWEB_USER=youruser
SHUTDOWN_USERS=”youruser”
SHUTDOWN=savestaterun:
sudo systemctl enable vboxweb-service
sudo systemctl start vboxweb-service - sudo apt-get -y install apache2 libapache2-mod-php7.0 libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap libapr1 php7.0-common php7.0-mysql php7.0-soap php-pear wget
cd /var/www/html
sudo wget http://downloads.sourceforge.net/project/phpvirtualbox/phpvirtualbox-5.0-5.zip
sudo unzip phpvirtualbox-5.0-5.zip
sudo mv phpvirtualbox-5.0-5 phpvirtualbox
cd /var/www/html/phpvirtualbox/
sudo cp config.php-example config.php
sudo nano config.php #Edit youruser and yourpassword
You can install some useful utils to monitor disks, network, cpu, temepratures:
sudo apt-get install python-pip sudo apt-get install lm-sensors hddtemp sensors-detect sensors sudo service kmod start sudo pip install Glances sudo pip install pysensors
You can now start adding virtual machines from http://<ip>/phpvirtualbox/ (admin/admin). You should use a different hard disk, or at least another partition, bigger than the OS one.