We currently migrate to MediaWiki from our old installation, but not all content has been migrated yet. Take a look at the Wiki Team page for instructions how to help or browse through our new wiki at wiki.linux-vserver.org to find the information already migrated.

1. Patching the Linux Kernel

1.1 Downloading the Kernel Source

you can always get the latest (and previous) Kernels from http://www.kernel.org/ ...

 # cd /usr/src
 # wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.9.tar.bz2

   Resolving www.kernel.org... done.
   Connecting to www.kernel.org[204.152.189.116]:80... connected.
   HTTP request sent, awaiting response... 200 OK
   Length: 36,261,440 [application/x-bzip2]
   
   100%[========================>] 36,261,440   4.57M/s    ETA 00:00

   14:49:41 (4.57 MB/s) - `linux-2.6.9.tar.bz2' saved [36261440/36261440]

1.2 Downloading the Patch(es)

the latest 'released' patches can be downloaded from http://www.13thfloor.at/vserver/ experimental patches can be found at http://vserver.13thfloor.at/Experimental/

 # wget http://www.13thfloor.at/vserver/d_rel26/v1.9.3/patch-2.6.9-vs1.9.3.diff.bz2
   ...

1.3 Unpacking the Kernel

the kernel source can be unpacked anywhere, but given that you have enough disk space /usr/src is a good place.

 # tar xjf linux-2.6.9.tar.bz2

1.4 Applying the Patch

the simplest way is to make a 'shallow' copy of the unpacked source tree (a bunch of hardlinks) which will not use up significant diskspace, but might help if you want to change the patch or check for differences.

 # cp -la linux-2.6.9 linux-2.6.9-vs1.9.3
 # cd linux-2.6.9-vs1.9.3
 # bzcat ../patch-2.6.9-vs1.9.3.diff.bz2 | patch -p1

2. Configuring the Linux Kernel

2.1 Existing Config

 # cp /path/to/existing/.config .
 # make oldconfig

2.2 Default Config

 # make defconfig

3. Building the Linux Kernel

 # make

4. Installing the Linux Kernel

 # make modules_install
 # cp arch/i386/boot/bzImage /boot/vmlinuz-2.6.9-vs1.9.3
 # cp System.map /boot/System.map-2.6.9-vs1.9.3