Tech Notes : Install kernel‑xen RPM package
  
Install kernel‑xen RPM package
RNs that are running Redhat 5.x depend on a kernel-xen RPM package. If you are running Redhat 6.x this package is installed by default; as such, you don’t need to perform the following procedure.
Perform this procedure if you enrolled your PNs without having previously installed the kernel-xen RPM package, or if you’re attempting to restore a Recovery PN as part of a BMR. Redhat 5.x RNs will not boot without this package.
To install the kernel-xen RPM package:
The following procedure works on kernel-xen-2.6.18, and should work for all subsequent revisions.
1. Determine if you need the kernel-xen RPM package and, if so, which package:
a. Verify the OS version. Again, the PN must be Redhat 5.x version.
# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 5.7 (Tikanga)
b. Determine if the PN’s OS is 32-bit or 64-bit.
# uname -a
Linux RHEL57x64-18-178 2.6.18-274.el5 #1 SMP Fri Jul 8 17:36:59 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux
In this case, x86_64 means the 64-bit package is required.
2. Download the kernel-xen package for RedHat 5.x PN (x32 or x64).
For 32-bit, go to http://mirror.centos.org/centos-5/5/os/i386/CentOS/, scroll down to view the complete package name for the latest kernel-xen package, then run the following command:
# wget http://mirror.centos.org/centos/5/os/i386/CentOS/kernel-xen-<latestRelease>-<latestRevision>.el5.i686.rpm
For 64-bit, go to http://mirror.centos.org/centos-5/5/os/x86_64/CentOS/, scroll down to view the complete package name for the latest kernel-xen package, then run the following command:
# wget http://mirror.centos.org/centos/5/os/x86_64/CentOS/kernel-xen-<latestRelease>-<latestRevision>.el5.x86_64.rpm
3. Install the kernel-xen package.
For 32-bit:
# rpm -iv kernel-xen-<latestRelease>-<latestRevision>.el5.i686.rpm
For 64-bit:
# rpm -iv kernel-xen-<latestRelease>-<latestRevision>.el5.x86_64.rpm
4. Make the initrd file, which will be used to build the RN.
# mkinitrd -v -f --preload=xennet --preload=xenblk --omit-scsi-modules --omit-raid-modules /boot/initrd-<latestRelease>-<latestRevision>.el5xen.img.5 <latestRelease>-<latestRevision>.el5xen
5. Make the /boot/grub/grub.conf.xvf5 file, which signals the RN to use it as grub boot menu.
The /boot/grub/grub.conf.xvf and /boot/grub/grub.conf.xvf[1-4] must not be installed because they have higher priority than /boot/grub/grub.conf.xvf5.
# vi /boot/grub/grub.conf.xvf5
6. Cut and paste the following line to the file.
# grub.conf generated by Quorum onQ
# The root device path is not important and will be changed automatically during RN build.
default=0
timeout=5
hiddenmenu
title Red Hat Enterprise Linux Server by Quorum onQ (<latestRelease>-<latestRevision>.el5xen)
root (hd0,0)
kernel /vmlinuz-<latestRelease>-<latestRevision>.el5xen ro root=/dev/xvda1 rd_NO_LUKS rd_NO_MD rhgb crashkernel=auto rd_NO_LVM
initrd /initrd-<latestRelease>-<latestRevision>.el5xen.img.5
If you’re performing this procedure on the RN (not the PN), back up and build the RN.
To uninstall the kernel-xen RMP package:
1. Uninstall the kernel-xen rpm:
# rpm -e kernel-xen-<latestRelease>-<latestRevision>.el5
2. Remove the /boot/grub/grub.conf.xvf5 file.
# \rm -f /boot/grub/grub.conf.xvf5