B. Installation

I. Kernel

If you haven't booted a kernel which is patched with Linux VServer Patch till yet, please go first to Step-by-Step Guide 2.6 and follow the instructions there,
before you go further with this HowTo!

1. Main focus to the following emphases:

#Getting the sources:
very important is to look for getting the right kernel version
@ http://www.kernel.org/pub/linux/kernel/v2.6/ which is supported from
→ experimental vserver patch >= 2.1.1-rc29 @ http://vserver.13thfloor.at/Experimental/
for example:
→ lets use the experimental 'patch-2.6.17.13-vs2.1.1-rc35.diff'
wget http://vserver.13thfloor.at/Experimental/patch-2.6.17.13-vs2.1.1-rc35.diff
→ so we must use the kernel version '2.6.17.13'
wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.17.13.tar.bz2
#Configuring the kernel:
#Building the kernel:
#Installing the kernel and rebooting:

II. VServer Control Daemon

First I wanted to say that VServer Control Daemon is in trunk state and therefore it is a little bit buggy, but all of you are invited to find and post bugs, that this program will become stable as soon as possible.

Now I can proceed, that you have successfully compiled and booted a kernel with
→ experimental vserver patch >= 2.1.1-rc29

1. Base Installation

If u use another Linux system than gentoo, try to install the needed releases with the package manager of the linux distribution!
And edit this HowTo for others! ;-)

a. Solve dependencies

For Debian

aptitude install libconfuse-dev libxmlrpc-c3-dev libsqlite3-dev sqlite3 subversion
There are many depedancies to these packages (most needed).
If you have not installed any build tools:
aptitude install make gcc libtool

III. Configuring VServer Control Daemon

1. Import vxdb.sql to sqlite DB

I use sqlite3 here in this example, so have a look which version you use
10. import the vxdb file
sudo sqlite3 /var/lib/vcd/vxdb < /usr/share/vcd/vxdb.sql
11. use vxpassword for changing hash to whirlpool
vxpasswd /var/lib/vcd/vxdb <YourUsername> <YourPassword>

C. Security

I. ATTENTION

For security reason it is recommended to remove the standard 'user' 'admin' and his 'password' and add new 'username' and 'password' → [http://www.sqlite.org/lang.html sqlite SYNTAX], or use a DB manager!<br>

II. ATTENTION

You must have a look for, that the 'uid' of your created 'user' has the 'uid 1', this is important for accessing the vcd

III. ATTENTION

please do not remove the 'vshelper' 'user', but change the standard assigned 'password' with
→ vxpasswd /var/lib/vcd/vxdb vshelper <YourPassword>

12. check if vcd installation and configuration was successful, do a

vcd -d

if all works fine the output should look like below (I use standard settings for testing)

D. Using VServer Control Daemon

I. Interacting with VServer Control Client - vcc

1. Configuring vcc

The standard vcc config file is stored @ /etc/vcc.conf there you must have a look for, if the username and the password are set correct to your changes, which you have made in vxdb with the commands above!

2. Create your first vserver

sudo vcc create test1 <templatename>

II. Interacting with VServer Control E - vce

1. Configuring vce

The standard vce config file is stored @ /etc/vce.conf there you must have a look for, if the username and the password are set correct to your changes, which you have made in vxdb with the commands above!

Standard /etc/vce.conf

III. Interacting with VServer Helper - vshelper

1. Configuring vcc

The standard vshelper config file is stored @ /etc/vshelper.conf there you must have a look for, if the username and the password are set correct to your changes, which you have made in vxdb with the commands above!