Building Debian Kernel
From wiki.welmers.net
The following steps are taken to build a new debian kernel with vserver and ipv6:
- download kernel source from http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.22.18.tar.bz2
- download vserver patch from http://ftp.linux-vserver.org/pub/kernel/vs2.2/patch-2.6.22.18-vs2.2.0.6.diff
- download ipv6 patch from http://people.linux-vserver.org/~bonbons/ipv6/patch-2.6.22.2-vs2.2.0.3-ipv6_rc1.patch
- tar -xjf linux-2.6.22.18.tar.bz2
- mv linux-2.6.22.18 linux-2.6.22.18-vs2.2.0.6-ipv6
- cd linux-2.6.22.18-vs2.2.0.6-ipv6
- cat ../patch-2.6.22.18-vs2.2.0.6.diff | patch -p1
- cat ../patch-2.6.22.2-vs2.2.0.3-ipv6_rc1.patch | patch -p1
- Edit Makefile and edit the line with EXTRAVERSION = to the proper value, i.e. .18-vs2.2.2.0.6-ipv6
- cp /boot/config ./.config
- fakeroot make-kpkg --initrd --revision 1 kernel_image
it will ask a lot of new kernel options. I choose a Pentium 3 architecture and several Pentium 4 related features for throttling/thermal etc. - fakeroot make-kpkg --revision 1 kernel_headers
After this, new debs can be found in the root and can be installed on your systems.
See also:

