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 https://www.virtualbox.org/download/oracle_vbox.asc -O- | sudo apt-key add –
  2. sudo nano /etc/apt/sources.list
    add the line:
    deb http://download.virtualbox.org/virtualbox/debian xenial contrib
  3. sudo apt-get update && sudo apt-get install virtualbox-5.1
  4. 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
  5. sudo adduser youruser vboxusers
  6. sudo nano /etc/default/virtualbox
    addVBOXWEB_USER=youruser
    SHUTDOWN_USERS=”youruser
    SHUTDOWN=savestaterun:
    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 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.

 

 

Comments

comments

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.