This document describes the installation of a VPL jail system in a Ubuntu 10.04 LTS that runs on a VirtualBox virtual machine.
Creating the Virtual Machine
With VirtualBox 4.0.8 we create a virtual machine, the machine is equipped with a dynamically growing disk up to 8GB, 1GB of memory and the rest of the hardware take the default values.
The Ubuntu 10.04.3-server installation image file is used as the boot disk into the CD/DVD-ROM drive.
Installing Ubuntu 10.04
Turns on the virtual machine. Select language for start menu. Choose "Install Ubuntu server". Select installation language.
Choose country and keyboard.
Set system name and time zone
For disk partition use entire disk (no LVM)
Installing base system
Set up a user
Set home directory encryption, http proxy and upgrade policy.
Do not install software packages.
Install grub and a basic Ubuntu system is ready.
Jail server installation
Login as the user created and install the C++ compiler
sudo apt-get install g++
Now download version 1.2 of the jail system:
wget http://vpl.dis.ulpgc.es/releases/vpl_xmlrpc_jail-1.2.tar.gz
Unpack and compile with:
tar xf vpl_xmlrpc_jail-1.2.tar.gz
cd vpl_xmlrpc_jail-1.2
./configure
make
Do not run "make install" as usual, run the following script
sudo ./install.sh
The script will ask you about the type of linux distribution, select Ubuntu.
The script, after installing the jail system, will ask you if you want to install common compilers and interpreters, if you answer yes the following software will be installed:
Language | Compiler/ interpreter |
---|---|
Ada | gnat |
C | gcc |
C++ | g++ |
C# | mono |
Fortran | gfortran |
Haskell | hugs |
Java | OpenJDK6 |
Octave | octave3.2 |
Pascal | gpc |
Perl | perl |
PHP | php5 |
Prolog | swipl |
Python | python |
Ruby | ruby |
Scheme | mzscheme |
SQL | sqlite3 |
VHDL | ghdl |
The vlp-xmlrpc-jail is accessible on port 52000. If you are using VirtualBox network card with NAT then you need to configure NAT port forwarding. To set up in detail the jail system follow the instructions in the configuration document.
LiveCD creation
If you want to create a LiveCD install remastersys
To install remastersys edit "/etc/apt/sources.list"
sudo vi /etc/apt/sources.list
Add "deb http://www.geekconnection.org/remastersys/repository karmic/" to the file.
Run "sudo apt-get update"
Install remastersys running "sudo apt-get install remastersys".
To install the livecd into a machine we need a basic X system:
sudo apt-get install xinit
Run "sudo remastersys backup" to make the LiveCD.