Difference between revisions of "Upgrade to Xen 3.2"

From PDP/Grid Wiki
Jump to navigationJump to search
Line 5: Line 5:
 
[[Image:Centos5-installer-virt.png|Screenshot from the text-based installer]]
 
[[Image:Centos5-installer-virt.png|Screenshot from the text-based installer]]
  
 +
==Building the Xen 3.2 RPM==
 
There is no pre-compiled Xen 3.2 for CentOS 5 x86_64 available yet, so download the [http://bits.xensource.com/oss-xen/release/3.2.0/centos-5.1/xen-3.2.0-0xs.centos5.src.rpm source RPM] from [http://xen.org/ xen.org].
 
There is no pre-compiled Xen 3.2 for CentOS 5 x86_64 available yet, so download the [http://bits.xensource.com/oss-xen/release/3.2.0/centos-5.1/xen-3.2.0-0xs.centos5.src.rpm source RPM] from [http://xen.org/ xen.org].
  
Line 24: Line 25:
 
  /usr/lib/xen/boot/hvmloader
 
  /usr/lib/xen/boot/hvmloader
  
 +
Finally, do the build
 +
rpmbuild -bb xen.spec
 +
 +
==Installing the new Xen==
 
Install the resulting RPMS
 
Install the resulting RPMS
 
  rpm -i xen-libs-3.2.0-0xs.x86_64.rpm \
 
  rpm -i xen-libs-3.2.0-0xs.x86_64.rpm \
Line 38: Line 43:
 
         module /vmlinuz-2.6.18-53.1.14.el5xen ro root=/dev/VolGroup00/LogVol00 console=xvc xencons=xvc
 
         module /vmlinuz-2.6.18-53.1.14.el5xen ro root=/dev/VolGroup00/LogVol00 console=xvc xencons=xvc
 
         module /initrd-2.6.18-53.1.14.el5xen.img
 
         module /initrd-2.6.18-53.1.14.el5xen.img
 +
 +
And reboot.

Revision as of 09:36, 23 April 2008

The CentOS 5.1 distribution comes with Xen 3.1 as an option. To install this, you need to select "Virtualization" during the installation stage or

@virtualization

in the kickstart file.

Screenshot from the text-based installer

Building the Xen 3.2 RPM

There is no pre-compiled Xen 3.2 for CentOS 5 x86_64 available yet, so download the source RPM from xen.org.

Install the source RPM

rpm -i xen-3.2.0-0xs.centos5.src.rpm

which will leave the sources and spec file in /usr/src/redhat. The RPMs can be build when the build requirements are satisfied. The following list of packages should do.

yum install curl-devel dev86 gettext ghostscript \
            glibc-devel gnutls-devel gtk2-devel \
            libaio-devel libidn-devel libX11-devel \
            ncurses-devel openssl-devel perl \
            python-devel SDL-devel tetex-latex \
            texi2html transfig udev zlib-devel


I had to make one minor change to the spec file: I changed the line

#/usr/lib/xen/boot/hvmloader

to

/usr/lib/xen/boot/hvmloader

Finally, do the build

rpmbuild -bb xen.spec

Installing the new Xen

Install the resulting RPMS

rpm -i xen-libs-3.2.0-0xs.x86_64.rpm \
       xen-3.2.0-0xs.x86_64.rpm

Update GRUB: put /boot/xen.gz-3.2 in /etc/grub.conf

default=0
timeout=5
serial --unit=1 --speed=9600
terminal --timeout=5 serial console
title CentOS (2.6.18-53.1.14.el5xen)
        root (hd0,2)
        kernel /xen.gz-3.2 com2=9600,8n1 console=com2,vga
        module /vmlinuz-2.6.18-53.1.14.el5xen ro root=/dev/VolGroup00/LogVol00 console=xvc xencons=xvc
        module /initrd-2.6.18-53.1.14.el5xen.img

And reboot.