How to install XEN of higher version than 3.3.0 on CentOS5.x

The Xen® hypervisor, the powerful open source industry standard for virtualization, offers a powerful, efficient, and secure feature set for virtualization of x86, x86_64, IA64, ARM, and other CPU architectures.

How to install XEN of higher version than 3.3.0 on CentOS5.x

Postby lik » Tue Jan 18, 2011 11:30 am

How to install XEN of higher version than 3.3.0 on CentOS5.x

In my case basic OS CentOS 5.4 x86_64 was used.
Browse to http://www.gitco.de/repo/ and grab the needed repo file for your arch and put it into /etc/yum.repos.d. (in this case x86_64).

In case a repo file you need doesn't exist but the folder with this version exists on this repository, then you may simply download any of repo files and change its entry.
Suppose you need to install XEN ...

1) Change shell location:
Code: Select all
cd /etc/yum.repos.d/

2) Download, for example GITCO-XEN3.4.1_x86_64.repo:
Code: Select all
wget http://www.gitco.de/repo/GITCO-XEN3.4.1_x86_64.repo

3) Edit this file from:
Code: Select all
[gitco-xen3.4.1]
name=RHEL/CentOS-$releasever - GITCO XEN3.4.1
baseurl=http://www.gitco.de/repo/xen3.4.1
gpgcheck=0
enabled=1

to
Code: Select all
[gitco-xen3.4.3]
name=RHEL/CentOS-$releasever - GITCO XEN3.4.3
baseurl=http://www.gitco.de/repo/xen3.4.3
gpgcheck=0
enabled=1

4) Save the file.
5) Run:
Code: Select all
yum groupinstall Virtualization

6) Edit /boot/grub/grub.conf to reflect the correct default Kernel (in its name it should have xen)
Code: Select all
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You do not have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /, eg.
#          root (hd0,0)
#          kernel /boot/vmlinuz-version ro root=/dev/sda1
#          initrd /boot/initrd-version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.18-194.3.1.el5xen)
        root (hd0,0)
        kernel /boot/xen.gz-3.3.2 dom0_mem=1024m
        module /boot/vmlinuz-2.6.18-194.3.1.el5xen ro max_loop=255 root=LABEL=/
        module /boot/initrd-2.6.18-194.3.1.el5xen.img

title CentOS (2.6.18-194.3.1.el5)
root (hd0,0)
kernel /boot/vmlinuz-2.6.18-194.3.1.el5 ro root=LABEL=/
initrd /boot/initrd-2.6.18-194.3.1.el5.img
7) Reboot.
lik
Founder
Founder
 
Posts: 497
Joined: Wed Dec 15, 2010 3:21 am

Return to Xen related

 


  • Related topics
    Replies
    Views
    Last post
cron