Recompile Xen 3.2.1 for CentOS 5

Posted by dba477 on Jul 27, 2008 6:20 AM EDT
grantmcwilliams.com; By Grant McWilliams
Mail this story
Print this story

CentOS 5.2/RHEL 5.2 comes with a very highly modified Xen 3.03 which if I'm correct is in fact Xen 3.1 backported. If you wan to use the latest Xen 3.2.1 you need to update the hypervisor. This tutorial is for x86_64 because that's what I'm running on grantmcwilliams.com. If you want the 32 bit version modify the appropriate paths and file names.

1. rpm -iv http://bits.xensource.com/oss-xen/release/3.2.0/centos-5.1/x... 3.2.0-0xs.centos5.src.rpm 2 > /dev/null
2. cd /usr/src/redhat/SOURCES ; wget http://bits.xensource.com/oss-xen/release/3.2.1/xen-3.2.1.ta...
3. vi ../SPECS/xen.spec
4. - Change "Version: 3.2.0" to "Version 3.2.1"
5. - Change "Source0: xen-3.2.0.tar.gz" to "Source0: xen-3.2.1.tar.gz"
6. - Uncomment "# /usr/lib/xen/boot/hvmloader"
7. yum -y install transfig texi2html tetex-latex gtk2-devel libaio-devel gnutls-devel
8. cd /usr/src/redhat/SPECS ; rpmbuild -ba ./xen.spec
9. Grab some coffee...


... after the rpms are built do this


1. vi /etc/yum.conf and temporarily set "gpgcheck=0" to "gpgcheck=1" since RPMs aren't signed.
2. cd /usr/src/redhat/RPMS/x86_64 ;
yum -y install xen-3.2.1-0xs.x86_64.rpm xen-libs-3.2.1-0xs.x86_64.rpm xen-devel-3.2.1-0xs.x86_64.rpm
3. vi /etc/yum.conf and set gpgcheck back to "gpgcheck=1".
4. edit /boot/grub/grub.conf and switch all references of /boot/xen-3.1.. to /boot/xen-3.2..

Full Story

  Nav
» Read more about: Story Type: Tutorial; Groups: Red Hat

« Return to the newswire homepage

This topic does not have any threads posted yet!

You cannot post until you login.