Open main menu

OpenVZ Virtuozzo Containers Wiki β

Changes

Compiling the OpenVZ kernel (the Debian way)

380 bytes added, 18:51, 28 January 2010
Installing sources
=== Build your own kernel-image (debian way) =Lenny and above ==
==== Installing sources ====Debian Lenny already includes an openvz kernel (linux-image-${version}-openvz-${arch}), so the manual compilation is not necessary in many cases.
To == Installing sources == On Etch, 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
==For Lenny running kernels before 2.6.29 run the following: # apt-get install kernel-package linux-source-2.6.18 linux-patch-openvz libncurses5-devSince kernel 2.6.29 the patch is now included in Debian kernel source. Run only the following and ignore references to the patch further down this page: # apt-get install kernel-package linux-source-2.6 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}}
=LILO:  # lilo == Installing the Tools and Configuring === Continue with [[Installation on Debian#Installing the user-level tools]]
Continue from here for Etch (current stable) [[Category: Debian]][[Installation_on_Debian_%28etch%29#Install_the_toolsetCategory: Installation]]Continue from here for Sarge (old stable) : [[Installation_on_Debian_%28sarge%29&action=submit#Installing_the_toolset_and_debian-os-templateCategory: Kernel]]
Anonymous user