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 81: Line 81:
 
=== Building from sources ===
 
=== Building from sources ===
  
==== Download/unpack ====
 
 
Download the package containing sources of Xen-3.1 and unpack it:
 
Download the package containing sources of Xen-3.1 and unpack it:
 
<pre>
 
<pre>
Line 87: Line 86:
 
# tar xvzf xen-3.1.0-src.tgz
 
# tar xvzf xen-3.1.0-src.tgz
 
</pre>
 
</pre>
 
==== Build ====
 
 
 
Change directory to ./xen-3.1.0-src:
 
Change directory to ./xen-3.1.0-src:
 
<pre>
 
<pre>
Line 104: Line 100:
 
* build and install xm tool
 
* build and install xm tool
  
==== Install ====
 
 
After building is complete run ./install.sh script:
 
After building is complete run ./install.sh script:
 
<pre>
 
<pre>
 
# ./install.sh
 
# ./install.sh
 
</pre>
 
</pre>
As a result vmlinuz-2.6-xen, xen.gz will be placed to /boot, xm tool will be placed to /usr/sbin. Now it is time to create initrd for vmlinuz-2.6.16.33-xen. Check that /lib/modules contain recently created directory 2.6.18-xen. If it is, type:
+
As a result vmlinuz-2.6.16.33-xen, xen.gz will be placed to boot, xm tool will be placed to /usr/sbin. Now it is time to create initrd for vmlinuz-2.6.16.33-xen. Check that /lib/modules contain recently created directory 2.6.16.33-xen. If it is, type:
 
<pre>
 
<pre>
# mkinitrd -f -v /boot/initrd-2.6-xen.img 2.6.18-xen
+
# mkinitrd -f -v /boot/initrd-2.6.16.33-xen.img 2.6.16.33-xen
 
</pre>
 
</pre>
After initrd-2.6.18-xen.img is succesfully created, update corresponding strings in /etc/grub.conf:
+
After initrd-2.6.16.33-xen.img is succesfully created update corresponding strings in /etc/grub.conf:
 
<pre>
 
<pre>
title Xen Linux
+
title Xen Linux (2.6.16.33-xen)
 
         root (hd0,1)
 
         root (hd0,1)
         kernel /boot/xen.gz dom0_mem=-128M
+
         kernel /boot/xen.gz dom0_mem=1048576
         module /boot/vmlinuz-2.6-xen ro root=LABEL=/
+
         module /boot/vmlinuz-2.6.16.33-xen ro root=LABEL=/ console=ttyS0,115200 console=tty silencelevel=8
         module /boot/initrd-2.6-xen.img
+
         module /boot/initrd-2.6.16.33-xen.img
 
</pre>
 
</pre>
Xen doesn't support TLS. To make xen work correct, disable TLS on your machine bu renaming /lib/tls to /lib/tls.disabled:
+
Xen 3.0 doesn't support TLS. To make xen work correct disable TLS on your machine bu renaming /lib/tls to /lib/tls.disabled:
 
<pre>
 
<pre>
 
# mv /lib/tls /lib/tls.disabled
 
# mv /lib/tls /lib/tls.disabled
 
</pre>
 
</pre>
Check that kernel command line options are correct (after ro ...) and reboot the machine. In grub loader menu select "Xen Linux". In case of success - machine boots into Xen's Dom0 that is running XenLinux. Now it is time to prepare OpenVZ XenLinux kernel for DomU.
+
Check that kernel command line options are correct (after ro ...) and reboot the machine. In grub loader menu select "Xen Linux (2.6.16.33-xen)". In case of success - machine boots into Xen's Dom0 that is running vmlinuz-2.6.16.33-xen XenLinux. Now it is time to prepare OpenVZ XenLinux kernel for DomU.
  
 
== Installing OpenVZ XenLinux kernel ==
 
== Installing OpenVZ XenLinux kernel ==

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)