6,534
edits
Changes
removed excessive pre's, splitted into subections, reworded kernel config subsection →or build your own kernel-image (debian way)
# apt-get install <linux-image>
=== or build Build your own kernel-image (debian way) === ==== Installing sources ====
To install the kernel-source and the OpenVZ kernel patch, run:
# apt-get install kernel-package linux-source-2.6.18 kernel-patch-openvz libncurses5-dev
==== Unpacking ====
Unpack the kernel source:
</pre>
==== Kernel config ====
You need a kernel config.
You can use the config of the debian-kernel:
# cp /boot/config-2.6.18-5-686 .config
'''Or''' get a 2.6.18 kernel configuration from http://download.openvz.org/kernel/branches/2.6.18/current/configs/ (depending on your architecture; the below example is for i686):
# wget http://download.openvz.org/kernel/branches/2.6.18/current/configs/kernel-2.6.18-i686.config.ovz -O .config
Now you can apply the openvz kernel patch and modify your kernel-config:
# ../kernel-patches/all/apply/openvz
# make menuconfig
You need the following OpenVZ kernel config settings:
</pre>
{{Note|better to build the kernel-headers as well, so afterward other kernel-modules can
be built without whole kernel tree (e.g. drbd -> drbd0.7-module-source)}}
See also : "make-kpkg --targets"
==== Compiling ====
Compile your Kernel kernel (as user root, or you need the --rootcmd!)<pre>
# make-kpkg --append_to_version=-1-openvz --added_patches=openvz --revision=1 --initrd binary-arch
# make-kpkg --append_to_version=-1-openvz --added_patches=openvz --revision=1 --initrd --config menuconfig binary-arch
==== Installing ====
Install the kernel and update initramfs:
# dpkg -i ../linux-image-2.6.18-1-openvz_1_i386.deb
# update-initramfs -c -k 2.6.18-1-openvz
Update the bootloader (when if not done abovebefore)
GRUB :
# /usr/sbin/update-grub
== Install the toolset ==