Open main menu

OpenVZ Virtuozzo Containers Wiki β

Changes

Compiling the OpenVZ kernel (the Debian way)

10 bytes removed, 17:15, 4 January 2008
fix headings, categorized
=== 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.
# wget http://download.openvz.org/kernel/branches/2.6.18/current/configs/kernel-2.6.18-i686.config.ovz -O .config
==== Patching and configuring ====
Now you can apply the openvz kernel patch and modify your kernel-config:
You need the following OpenVZ kernel config settings:
<pre>
(taken from OpenVZ Kernel 2.6.18-028test010.1 on 686)
<pre>
Filesystem
\_ [*] Second extended fs support (CONFIG_EXT2_FS)
See also : "make-kpkg --targets"
==== Compiling ====
Compile your kernel (as user root, or you need the --rootcmd!)
# make-kpkg --append_to_version=-1-openvz --added_patches=openvz --revision=1 --initrd --config menuconfig binary-arch
==== Installing ====
Install the kernel and update initramfs:
{{Note|update-grub can be configured by /etc/kernel-img.conf}}
==== Bootloader ====
Update the bootloader (if not done before)
{{Note|since the Debian Etch release the location of update-grub is moved from /sbin/update-grub to /usr/sbin/update-grub}}
=== Installing the Tools and Configuring ===
Continue from here for Etch (current stable): [[Installation on Debian (etch)#Install the toolset]]
Continue from here for Sarge (old stable): [[Installation on Debian (sarge)#Installing the toolset and debian-os-template]]
 
[[Category: Debian]]
[[Category: Installation]]
[[Category: Kernel]]