Open main menu

OpenVZ Virtuozzo Containers Wiki β

Changes

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

77 bytes removed, 10:57, 1 August 2007
Building from sources: split to subsections; correct argument to dom0_mem; fixed kernel version
=== Building from sources ===
==== Download/unpack ====
Download the package containing sources of Xen-3.1 and unpack it:
<pre>
# tar xvzf xen-3.1.0-src.tgz
</pre>
 
==== Build ====
 
Change directory to ./xen-3.1.0-src:
<pre>
* build and install xm tool
==== Install ====
After building is complete run ./install.sh script:
<pre>
# ./install.sh
</pre>
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.3318-xen. If it is, type:
<pre>
# mkinitrd -f -v /boot/initrd-2.6.16.33-xen.img 2.6.16.3318-xen
</pre>
After initrd-2.6.16.3318-xen.img is succesfully created , update corresponding strings in /etc/grub.conf:
<pre>
title Xen Linux (2.6.16.33-xen)
root (hd0,1)
kernel /boot/xen.gz dom0_mem=1048576-128M module /boot/vmlinuz-2.6.16.33-xen ro root=LABEL=/ console=ttyS0,115200 console=tty silencelevel=8 module /boot/initrd-2.6.16.33-xen.img
</pre>
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>
# mv /lib/tls /lib/tls.disabled
</pre>
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 ==