Xen on CentOS4
Just in case anyone is wondering if you can install the Xen hypervisor on a CentOS box:
Sure. It works just fine.
Ok, there are a couple of glitches in the install.
Here's how I did it, on a CentOS 4.2 box:
Get the install script for RHEL 4.1
Fix the validate_os_version function:
validate_os_version() { #grep "Red Hat Enterprise Linux AS release 4 (Nahant Update 1)" /etc/redhat-release 2>/dev/null >/dev/null true }
Run it
Fix your grub.conf adding this :
title Xen 3.0 / XenLinux 2.6 kernel /boot/xen-3.0.gz dom0_mem=262144 module /boot/vmlinuz-2.6-xen root=/dev/hda1 ro console=tty0 module /boot/initrd-2.6-xen.img
Fix your glibc by doing this:
mv /lib/tls/ /lib/tls.disabled
Boot on the Xen option from Grub, and you already have a CentOS Dom0. Quite simple, wasn't it? :-)
Main problem: The Xen kernel you are booting sucks, because it supports no unusual hardware. So, it would be a good idea to hack a decent Xen-linux-kernel similar to CentOS unsupported one.
Now it's time to start toying with CentOS partitions, but they are supposed to be simple.