Changes

Jump to: navigation, search

Kernel build

12 bytes removed, 23:44, 19 February 2007
m
fixed template:krel usage
Install the downloaded SRC RPM with the following command:
# rpm -ihv ovzkernel-{{kver}}-{{krel}}.1.src.rpm
After successfull installation, you can usually find kernel sources in <code>$TOPDIR/SOURCES/</code>
Linux kernel can be found at [http://www.kernel.org/ kernel.org], e.g. {{kver}} kernel can be downloaded [http://www.kernel.org/pub/linux/kernel/v2.6/linux-{{kver}}.tar.bz2 from here].
Appropriate OpenVZ patches for this kernel version can be found at <nowiki>http://openvz.org/download/kernel/<branch>/<version>/patches/</nowiki>. For example, at the moment there is a patch [http://download.openvz.org/kernel/devel/{{krel}}.1/patches/patch-ovz{{krel}}.1-combined.gz patch-ovz{{krel}}.1-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/kernel/devel/{{krel}}.1/configs/kernel-{{kver}}-i686-smp.config.ovz kernel-{{kver}}-i686-smp.config.ovz]
for this example.
Apply OpenVZ patches to the kernel:
# gzip -dc patch-ovz{{krel}}.1-combined.gz | patch -p1
Now we need to place the config and build the kernel:

Navigation menu