User talk:Alk3

From OpenVZ Virtuozzo Containers Wiki
Jump to: navigation, search

How to, Debian Lenny with Linux Kernel 2.6.24.

Notes: Only tested on a Intel DG33FB Mobo.

First thing first. Install build-essential and kernel-package.

  1. apt-get install build-essential kernel-package

Then you need to go to the git.openvz.org site and clone the 2.6.24 branch.

  1. cd /usr/src ; git clone git://git.openvz.org/pub/linux-2.6.24-openvz

Copy the kernel configuration file to your source directory and create your symlink for kernel modules that are installed later by module-assistant.

  1. cd /usr/src
  2. ln -s /usr/src/linux-2.6.24-openvz linux
  3. cp /boot/config-2.6.24-g33.4-ovz .config

Check that your kernel is configured correctly to be 100% sure.

  1. make menuconfig

..make any changes.. ..save config file..

Now you should build your kernel with kernel package if you wish to have a .deb archive.

  1. make-kpg --initrd --append-to-version -ovz kernel_image kernel_headers kernel_source

Kernel-package will then generate your .deb archive of your new kernel, kernel headers, and kernel source.

  1. cd ../
  2. dpkg -i linux-image-2.6.24-ovz.deb linux-headers-2.6.24-ovz.deb linux-source-2.6.24-ovz.deb

(your packages will be named something else)

You can find the Debian packages and the kernel config I made, here: http://exitstatusone.com/openvz/