Contents |
VServer allows to run many unix systems at the same time on the same machine. Its usage is very simple, it allow you to experiment a system in a closed area, and this without modifying your current system.
See Vserver installation HOWTO to know how to install vserver, go on the following pages:
The rest of this article suppose that you installed successfully vserver on your current system.
There will be two vservers to create; the first one will be used to compile the second.
Ubuntu feisty will be used as a based installation; even if you're using another distribution, it will be simple for you to make the same as here, in order to be in the same environment as the one used to write this HOWTO. It only concerns the vserver used to compile the easygate. In /etc/vservers/newvserver-vars fill the following varialbe out:
DIST='feisty' MIRROR="http://fr.archive.ubuntu.com/ubuntu"
Then create two vservers :
# newvserver --hostname <vserver1_name> --domain <sub_domain> --interface eth<X> --ip <IP1>/<CIDR> -v # newvserver --hostname <vserver2_name> --domain <sub_domain> --interface eth<Y> --ip <IP2>/<CIDR> -v
For example :
# newvserver --hostname easygatebuild --domain yourdomain.org --interface eth0 --ip 192.168.0.15/24 -v # newvserver --hostname easygate --domain yourdomain.org --interface eth0 --ip 192.168.0.16/24 -v
Start the vserver and go into it.
# vserver easygatebuild start # vserver easygatebuild enter
In the VServer easygatebuild environment, edit the /etc/apt/sources.list file :
deb http://archive.ubuntu.com/ubuntu feisty main restricted universe multiverse deb http://archive.ubuntu.com/ubuntu feisty-updates main restricted universe multiverse
In the VServer easygatebuild environment, install mercurial and necessary packages for the compilation :
# apt-get install mercurial # apt-get install wget patch bison flex build-essential libncurses5-dev pkg-config
Then add an 'easygate' user:
# adduser easygate # su easygate $ cd ~
Then follow the instruction on this pageConstruire l'image.
you can have problems with environment variable inheriting from your usual environment. In this case reset the important ones:
export LC_ALL=C export LANGUAGE=en_US export LANG=en_US export HOME=/home/easygate
If make can't erase a directory, then run again make.