Editing How to use OpenVZ as a XEN guest OS (for x86 platform)

Jump to: navigation, search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 134: Line 134:
 
=== Install from rpm ===
 
=== Install from rpm ===
  
Download rpm package with OpenVZ XenLinux kernel from http://openvz.org/download/kernel/rhel5/.
+
Change directory to openvz and download rpm package with OpenVZ XenLinux kernel for x86:
+
<pre>
 +
# cd
 +
# cd openvz
 +
# wget http://download.openvz.org/kernel/branches/rhel5-2.6.18/028stab034.1/ovzkernel-PAE-2.6.18-8.el5.xen.028stab034.i686.rpm
 +
</pre>
 
Install downloaded rpm:
 
Install downloaded rpm:
 
<pre>
 
<pre>
# rpm -ihv ovzkernel-xen-*.rpm
+
# rpm -ihv ovzkernel-PAE-2.6.18-8.el5.xen.028stab033.i686.rpm
 
</pre>
 
</pre>
 
If something goes wrong during installation the prebuilt kernel - you can build the OpenVZ XenLinux kernel from sources as described below.
 
If something goes wrong during installation the prebuilt kernel - you can build the OpenVZ XenLinux kernel from sources as described below.
  
=== Install from sources ===
+
=== install from sources ===
 
 
Download OpenVZ kernel source rpm from http://openvz.org/download/kernel/rhel5/.
 
  
 +
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>
 
Unpack downloaded rpm package:
 
Unpack downloaded rpm package:
 
<pre>
 
<pre>
# rpm2cpio ovzkernel-*.src.rpm | cpio -id
+
# 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.cpio
 
</pre>
 
</pre>
 
Check that ./kernel-ovz.spec contains the following strings:
 
Check that ./kernel-ovz.spec contains the following strings:

Please note that all contributions to OpenVZ Virtuozzo Containers Wiki may be edited, altered, or removed by other contributors. If you don't want your writing to be edited mercilessly, then don't submit it here.
If you are going to add external links to an article, read the External links policy first!

To edit this page, please answer the question that appears below (more info):

Cancel Editing help (opens in new window)