Install a home virtualizzation server

Virtual Box Install

  1. install virtual box repository key
  2. edit source list
  3. install vobx package
  4. download and install extension pack
  5. add your username to vboxusers group
  6. configure some parameters (to save machine when shutting down, and start service on startup)
  7. install phpvirtualbox. Very useful tool to manage virtual box via web. Access it at http://<ip>/phpvirtualbox/ (admin:admin)


  1. wget -q -O- | sudo apt-key add –
  2. sudo nano /etc/apt/sources.list
    add the line:
    deb xenial contrib
  3. sudo apt-get update && sudo apt-get install virtualbox-5.1
  4. wget  #then install via graphic interface of Oracle Virtual Box
  5. sudo adduser youruser vboxusers
  6. sudo nano /etc/default/virtualbox
    sudo systemctl enable vboxweb-service
    sudo systemctl start vboxweb-service
  7. 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
    sudo unzip
    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
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.





Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.