Difference between revisions of "Upgrade to Xen 3.2"
From PDP/Grid Wiki
Jump to navigationJump to searchLine 23: | Line 23: | ||
to | to | ||
/usr/lib/xen/boot/hvmloader | /usr/lib/xen/boot/hvmloader | ||
+ | |||
+ | 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 |
Revision as of 09:35, 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.
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
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