6,534
edits
Changes
m
Change directory to openvz and download Download rpm package with OpenVZ XenLinux kernel for x86:<pre># cd# cd openvz# wget from http://download.openvz.org/download/kernel/branches/rhel5-2.6.18/028stab034.1/ovzkernel-PAE-2.6.18-8.el5.xen.028stab034.i686.rpm</pre>
Download rpm with OpenVZ kernel sources:
<pre>
# wget http://download.openvz.org/kernel/branches/rhel5-2.6.18/028stab034.1/ovzkernel-2.6.18-8.el5.028stab034.1.src.rpm
</pre>
Building process will do the following:
* build hypervizor xen.gz
* download linux kernel sources 2.6.16 source from kernel.org, patch them with a set of xen patches * from sources obtained build the vmlinuz-2.6.16.33-xen XenLinux kernel that will be able to boot both in Dom0 and DomU
* build and install xm tool
=== Install from rpm ===
Install downloaded rpm:
<pre>
# rpm -ihv ovzkernel-PAExen-2.6.18-8.el5.xen.028stab033.i686*.rpm
</pre>
If something goes wrong during installation the prebuilt kernel - you can build the OpenVZ XenLinux kernel from sources as described below.
=== install Install from sources === Download OpenVZ kernel source rpm from http://openvz.org/download/kernel/rhel5/.
Unpack downloaded rpm package:
<pre>
# rpm2cpio ovzkernel-2.6.18-8.el5.028stab034.1*.src.rpm > ovzkernel-2.6.18-8.el5.028stab034.1.src.cpio# | cpio -i < ovzkernel-2.6.18-8.el5.028stab034.1.src.cpioid
</pre>
Check that ./kernel-ovz.spec contains the following strings: