Open main menu

OpenVZ Virtuozzo Containers Wiki β

Changes

Creating OpenVZ LiveCD based on Centos 4.4

436 bytes added, 09:15, 29 June 2007
m
Building OpenVZ kernels and kernel modules: fixes + this sectoin finished
OpenVZ kernel, that supports <tt>squashfs</tt>
=== Building OpenVZ kernels and kernel modules ===
Let's consider, how to build <tt>2.6.18</tt> OpenVZ kernel RPM-package with <tt>squashfs</tt> support.
First download and install OpenVZ source RPM:
CONFIG_SQUASHFS=m
CONFIG_SQUASHFS_EMBEDDED=n
# cd $OLDPWD~/workbench/
</pre>
After all efforts , building the RPM-package is very easy:
<pre>
# rpmbuild --target=i686 -ba kernel-ovz.spec
</pre>
If everything goes smoothly, in several tens of minutes depending on the power of your node you willl have OpenVZ kernel RPM-package with <tt>squashfs</tt> support. Let's copy it to our local directory <tt>rpms</tt>:
<pre>
# ls /usr/src/redhat/RPMS/i686/
kernel-smp-2.6.18-ovz028stab035.1.i686.rpm
# mkdir rpms
# cp /usr/src/redhat/RPMS/i686/kernel-smp-2.6.18-ovz028stab035.1.i686.rpm rpms/
</pre>
OpenVZ LiveCD supports several kernels. So, the actions mentioned above should be accomplished to all kernels,
that you need on LiveCD. In this article I skip the description of building RPMS for all kernels. All description
below are based on <tt>028stab035</tt> kernel, that has been just build above.
=== Unionfs kernel module ===
172
edits