Monday, February 16, 2009

Install Xen3.3 on CentOS5 and ubuntu

A more complete version is here:
http://driverentry.spaces.live.com/blog/cns!8F8079B325833D71!867.entry

Ref:

Ubuntu:
http://www.howtoforge.com/ubuntu-8.04-server-install-xen-from-ubuntu-repositories
http://bderzhavets.blogspot.com/2008/05/install-opensolaris-200805-domu-at.html
http://bderzhavets.wordpress.com/2008/11/13/backport-intrepid-xen-33-hypervisor-at-ubuntu-hardy-dom0-2624-21-xen/

CentOS 5
http://robinbowes.com/article.php/20081023014423777
http://bderzhavets.blogspot.com/2008/08/install-xen-3.html
http://book.xen.prgmr.com/mediawiki/index.php/3.3

Comiple xen 3.3 on CenOS 5
Ref: http://www.nikhef.nl/pub/projects/grid/gridwiki/index.php/Xen_on_CentOS_5_-_Notes
1. download two tar files from xen.org
2. Install mercurial src code version manager

wget http://www.selenic.com/mercurial/release/mercurial-0.9.5.tar.gz
tar xvfz mercurial-0.9.5.tar.gz
cd mercurial*
make install
export PYTHONPATH=/usr/local/lib/python2.4/site-packages:${PYTHONPATH}
(if not export that environment variable, you will get an error as this: ImportError: No module named mercurial).

3. Install prerequested packages:


yum install \
gcc make zlib-devel zlib python-devel curses libncurses-devel ncurses-devel openssl openssl-devel \
`yum search xorg-x11|grep dev|grep x86_64|awk -F . '{print $1}'` \
bridge-utils tetex tetex-latex transfig libtool-ltdl dev86 glibc-devel


( for i386 version, replace x86_64 with i386)

4. tar xzf xen*, cd xen*, make world
5. cd dist, sh ./install.sh
6. disable tls:
Put this in /etc/ld.so.conf.d/xen.conf:

# This directive teaches ldconfig to search in nosegneg subdirectories
# and cache the DSOs there with extra bit 0 set in their hwcap match
# fields. In Xen guest kernels, the vDSO tells the dynamic linker to
# search in nosegneg subdirectories and to match this extra hwcap bit
# in the ld.so.cache file.
hwcap 0 nosegneg

Note that the file name _must_ end ".conf". When you've done that, run
/sbin/ldconfig and reboot. The problem should go away.

7. reboot

Last updated: 12.8.2009

No comments: