Introduction
This howto is copied from the german source: http://www.cryptronic.de/wiki/Vserver:Basissystem
Attention
I wrote this howto because more and more people asked me how to install a basic vserver system. This howto will be about a installation for a debian SID hostsystem. I decided to take debian SID because no the Hostsystem there shouldn't run more daemons as a ssh daemon and the openvcp daemon, because all other daemon's are a security risk for your basic server. This howto requires a running debian SID installation and will only be about how you make your system vserver ready.
Installation
At the moment the sources I use aren't a debian repository but this will change in future.
first we have to get the required kernel stuff:
Please check by your self whether this is the actual kernel or if it changed! Also check whether you have a 1386 or a amd64 system! Or maybe your system won't startup: http://linux-vserver.derjohn.de/
This howto is about a installation on a i386 System.
First we have to install the kernel:
dpkg -i linux-image-2.6.17.8-vs2.1.1-rc28-p3-squash-drbd-256ip_10.01_i386.deb
Fortunately this package installs itself completely alone so we haven't so edit things. After that we need the kernel headers for a later installation of util-vserver:
dpkg -i linux-headers-2.6.17.8-vs2.1.1-rc28-p3-squash-drbd-256ip_10.01_i386.deb
This is all what you have to do. Now you can restart your system.
After a working reboot you can install util-vserver:
Because the util-vserver people make a lot of patches we use the util-vserver version of the official debian SID repository. This is a actual version which includes many of the util-vserver patches.
Change to /usr/src
apt-get build-dep util-vserver
apt-get source util-vserver
now search in /usr/src/util-vserver-0.30.210/debian/rules after ./configure and edit this for your wishes.
Now change to /usr/src/util-vserver-0.30.210/ and compile util-vserver:
dpkg-buildpackage
back to /usr/src and install the package:
dpkg -i util-vserver_0.30.210-10_i386.deb
Now you have a working system able to run vservers.
The next step of the installation would be to set up openvcp!
Thanks
A big thank goes to derjohn because of these great and useful packages.
