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.
a.
# cat /etc/redhat-release
b.
# uname -a
In this case, x86_64 means the 64-bit package is required.
2.
•
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.
•
# rpm -iv kernel-xen-<latestRelease>-<latestRevision>.el5.i686.rpm
•
# 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.
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.
# rpm -e kernel-xen-<latestRelease>-<latestRevision>.el5
2.
Remove the /boot/grub/grub.conf.xvf5 file.
# \rm -f /boot/grub/grub.conf.xvf5

v3.8 HF1
v3.8 HF1