Xen 3.2 on CentOS 5.1 x86_64 / RHEL 5.1 x86_64

Since my drivers are not signed, you will need to temporarily disable signature checking for yum.

# vi /etc/yum.conf
Make sure it says gpgcheck=0

Download the file and untar it.

# tar xvzf xen-3.2.0-CentOS5.1.tar.gz
xen-3.2.0-CentOS5.1/
xen-3.2.0-CentOS5.1/xen-devel-3.2.0-0xs.x86_64.rpm
xen-3.2.0-CentOS5.1/xen-3.2.0-0xs.x86_64.rpm
xen-3.2.0-CentOS5.1/xen-libs-3.2.0-0xs.x86_64.rpm

# cd xen-3.2.0-CentOS5.1

Install the RPMs.

# yum install -y xen-3.2.0-0xs.x86_64.rpm xen-libs-3.2.0-0xs.x86_64.rpm xen-devel-3.2.0-0xs.x86_64.rpm

It will download a bunch of dependencies and install them. Among them will be a new kernel - kernel-xen.

# vi /etc/yum.conf
Set gpgcheck back to the old value: gpgcheck=1 if it was originally 1.

The only problem at this point is that yum for some reason doesn't update the boot entry, so we have to do this manually.

# vi /boot/grub/menu.lst

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00
# initrd /initrd-version.img
#boot=/dev/sda
default=1
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.18-53.1.21.el5xen)
root (hd0,0)
kernel /xen.gz-2.6.18-53.1.21.el5
module /vmlinuz-2.6.18-53.1.21.el5xen ro root=/dev/VolGroup00/LogVol00
module /initrd-2.6.18-53.1.21.el5xen.img
title CentOS (2.6.18-53.1.21.el5)
root (hd0,0)
kernel /vmlinuz-2.6.18-53.1.21.el5 ro root=/dev/VolGroup00/LogVol00
initrd /initrd-2.6.18-53.1.21.el5.img
title CentOS (2.6.18-53.el5)
root (hd0,0)
kernel /vmlinuz-2.6.18-53.el5 ro root=/dev/VolGroup00/LogVol00
initrd /initrd-2.6.18-53.el5.img

We want to update the CentOS (2.6.18-53.1.21.el5xen) entry, and set it to use the proper kernel - xen.gz-3.2

This is what my updated menu.lst looks like - yours may differ. I have also set the default to 0, so that it boots my xen kernel automatically.

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00
# initrd /initrd-version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.18-53.1.21.el5xen)
root (hd0,0)
kernel /xen.gz-3.2
module /vmlinuz-2.6.18-53.1.21.el5xen ro root=/dev/VolGroup00/LogVol00
module /initrd-2.6.18-53.1.21.el5xen.img
title CentOS (2.6.18-53.1.21.el5)
root (hd0,0)
kernel /vmlinuz-2.6.18-53.1.21.el5 ro root=/dev/VolGroup00/LogVol00
initrd /initrd-2.6.18-53.1.21.el5.img
title CentOS (2.6.18-53.el5)
root (hd0,0)
kernel /vmlinuz-2.6.18-53.el5 ro root=/dev/VolGroup00/LogVol00
initrd /initrd-2.6.18-53.el5.img

Once you reboot you should automatically boot into the xen kernel and be able to create virtual machines.

Comments
Oyun's Gravatar begendim guzel olmus kutlarim ellerinize saglik.

http://www.aylak.com
# Posted By Oyun | 7/7/08 3:23 AM
# Posted By Patel | 7/8/08 1:28 PM
cinsel urunler's Gravatar Thanks very good !.
# Posted By cinsel urunler | 10/22/08 11:01 AM
# Posted By Frederick Lay | 11/7/08 11:50 PM
# Posted By Darrin Taylor | 11/21/08 7:15 AM
# Posted By MMiu Yan Hung | 11/22/08 8:17 PM
chat's Gravatar thanks very.
# Posted By chat | 12/5/08 10:49 AM
burclar's Gravatar You’ve got a lot of cool posts here. Really like it. It served to be helpful. Thanks on that.
# Posted By burclar | 12/21/08 7:05 PM
wow gold's Gravatar Morhaime, <a href="http://www.wowgoldvip.com/news_list.asp" target="_blank">http://www.wowgoldvip.com/news_list.asp">wow gold</a> then the<a href="http://www.wowgold1000.com">wow gold</a> chief executive<a href="http://www.wowgoldvip.com">buy wow gold</a> of Blizzard, <a href="http://www.wowgold1000.com">buy wow gold</a> chose a steakhouse <a href="http://www.wowgoldvip.com">cheap wow gold</a>near his <a href="http://www.wowgold1000.com">cheap wow gold</a>company's Irvine, <a href="http://www.wowgoldvip.com/wow-power-leveling.asp" target="_blank">http://www.wowgoldvip.com/wow-power-leveling.asp">wow power leveling</a> Calif., headquarters. But<a href="http://www.wowgold800.com">wow power leveling</a> he ended<a href="http://www.wowgoldvip.com/powerleveling.asp" target="_blank">http://www.wowgoldvip.com/powerleveling.asp">power leveling</a> up booking a <a href="http://www.wowgold800.com">power leveling</a>large banquet room by mistake.
# Posted By wow gold | 1/3/09 8:56 PM
BlogCFC was created by Raymond Camden.