Example for setup VServer on Debian
Get kernel source and vserver patch.
# apt-get install kernel-patch-vserver kernel-source-2.4.27 kernel-package fakeroot
For safety, switch to normal user for building the kernel.
$ cd /usr/src
$ tar vfxj kernel-source-2.4.27.tar.bz2
$ cd kernel-source-2.4.27
$ cp /boot/config-2.4.27-2-686 .config
$ fakeroot make-kpkg --bzimage --initrd --added-patches vserver binary-arch
Install the kernel-image which just built by kernel-package.
# dpkg -i /usr/src/kernel-image-2.4.27_10.00.Custom_i386.deb
Reboot into new kernel.
For more details of creating custom Kernels with Debian's kernel-package system, please see:
http://newbiedoc.sourceforge.net/system/kernel-pkg.html