Setup Xen 3.4 Dom0 on CentOS 5.3 (64 bit)

In general, port goes as usual . However, attempt to create
initial ramdisk for 2.6.18.8-xen kernel fails due to known bug for mkinitrd. Undocumented option –allow-missing provides
a workaround to succeed with mkinitrd for xen-ified kernel
To port Xen 3.4-rc3-pre to xen disabled CentOS 5.3 instance (64 bit) install the most recent version of git and mercurial (hg).

# cd /usr/src/
# hg clone http://xenbits.xensource.com/xen-unstable.hg
# cd xen-unstable.hg
# make world
# make install

Determine the name of the Xen Linux kernel version that was installed.

# ls /lib/modules

There should be a directory for the Xen Linux kernel (e.g.2.6.18.8-xen)
Generate the module dependency list and map files

# /sbin/depmod 2.6.18.8-xen

Create the Xen initial ramdisk image.
Per Bug 488991 - mkinitrd erroneously inserts dependencies to dm-mem-cache

# /sbin/mkinitrd --allow-missing /boot/initrd-2.6.18.8-xen.img 2.6.18.8-xen

Disable tls

# mv /usr/lib64/tls /usr/lib64/tls.disabled

Set xend service to start

# /sbin/chkconfig –add xend
# /sbin/chkconfig xend on

Install bridge-utils:-

# yum install bridge-utils

**************************************************************
Edit /boot/grub/grub.conf and copy one of the existing boot entries to make the required changes for Xen and reboot into new kernel.
**************************************************************

title Xen-3.4 CentOS 5.3 x86_64 (2.6.18.8-xen) (/dev/sda5)
root (hd0,4)
kernel /xen-3.4.gz
module /vmlinuz-2.6.18.8-xen ro root=/dev/VolGroup01/LogVol00 rhgb quiet
module /initrd-2.6.18.8-xen.img

Reboot

[root@ServerXen ~]# xm info
host : ServerXen
release : 2.6.18.8-xen
version : #1 SMP Fri Apr 17 15:13:17 MSD 2009
machine : x86_64
nr_cpus : 4
nr_nodes : 1
cores_per_socket : 4
threads_per_core : 1
cpu_mhz : 2833
hw_caps : bfebfbff:20100800:00000000:00000140:0408e3fd:00000000:00000001:00000000
virt_caps : hvm
total_memory : 8191
free_memory : 1
node_to_cpu : node0:0-3
node_to_memory : node0:1
xen_major : 3
xen_minor : 4
xen_extra : .0-rc3-pre
xen_caps : xen-3.0-x86_64 xen-3.0-x86_32p hvm-3.0-x86_32 hvm-3.0-x86_32p hvm-3.0-x86_64
xen_scheduler : credit
xen_pagesize : 4096
platform_params : virt_start=0xffff800000000000
xen_changeset : unavailable
cc_compiler : gcc version 4.1.2 20080704 (Red Hat 4.1.2-44)
cc_compile_by : root
cc_compile_domain : (none)
cc_compile_date : Fri Apr 17 16:12:58 MSD 2009
xend_config_format : 4

Setup CentOS 5.3 stub domain.







Setup OpenSolaris0811 PV domain.






Leave a comment