Debian 6.0 Squeeze Vanilla Kernel and OpenVZ Patch

From n0r1sk software solutions
Jump to: navigation, search

last edit 19.09.2011 by Mario

Download the Vanilla Kernel

Go to[1] and download version 2.6.32 of the Linux kernel source.

Download the equal OpenVZ Kernel patch

Go to[2] and download[3] the latest patch that equals your kernel version. Do not forget to fetch the kernel config file too! Its saved under

Patch the Vanilla Kernel

Copy the patch into the extracted root folder of the downloaded kernel source and exeute the following command to patch the source.

gzip -dc patch-ovz028stab056.1-combined.gz | patch -p1

Copy the Kernel Config

For detailed informations please take a look at the[4] page about patching the Kernel.

Build the Kernel the debian way

First off, install needed software packages

apt-get install kernel-package ncurses-dev fakeroot wget bzip2 module-init-tools initrd-tools procps zlib1g-dev

Clean up the source

make-kpkg clean

Build the kernel .deb package

fakeroot make-kpkg --initrd --append-to-version=-feoktistov kernel_image kernel_headers

Install the new kernel

cd ..
dpkg -i linux-image-2.xx linux-headers-2.xx

Update the initramfs: If you don't know the exact kernel number use the "TAB" key for command line completition. It will display the possible values!

update-initramfs –u –k 2.6.38-xx


Reboot your server, choose the appropriate kernel an check if all is working as expected.