Changes

Jump to: navigation, search

Kernel build

20 bytes added, 00:00, 1 October 2006
fixed paths (/beta/kernel -> /kernel/devel); updated kernel version
Install the downloaded SRC RPM with the following command:
<pre>
# rpm -ihv ovzkernel-2.6.16-026test014026test018.41.src.rpm
</pre>
Linux kernel can be found at [http://www.kernel.org/ kernel.org], e.g. 2.6.16 kernel can be downloaded from [http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.16.tar.bz2 linux-2.6.16.tar.bz2].
Appropriate OpenVZ patches for this kernel version can be found at http://openvz.org/download/kernel/<version>/patches/. For example, at the moment there is a patch [http://download.openvz.org/betakernel/kerneldevel/026test014026test018.41/patches/patch-026test014026test018-combined.gz patch-026test014026test018-combined.gz] available.
Kernel configs are also available at OpenVZ download site. Most frequently SMP config is used, so let's download [http://download.openvz.org/betakernel/kerneldevel/026test014026test018.41/configs/kernel-2.6.16-026test014026test018-i686-smp.config.ovz kernel-2.6.16-026test014026test018-i686-smp.config.ovz]
for this example.
Apply OpenVZ patches to the kernel:
<pre>
# gzip -dc patch-026test014026test018-combined.gz | patch -p1
</pre>
Now we need to place the config and build the kernel:
<pre>
# cp kernel-2.6.16-026test014026test018-i686-smp.config.ovz .config
# make oldconfig
# make

Navigation menu