COLO - Coarse Grain Lock Stepping SLES

From Xen
Icon Ambox.png This page is deprecated!!!

This page contaions detailed instractions on how to setup COLO on SLES11-SP3.

Host installation

On both primary and secondary hosts:

  • Select "Xen Virtualization Host" when choosing host type.
  • On package selection, please include build-essential packages like make, gcc and so on.
  • After install the host OS, edit '/boot/grub/menu.lst', change the default booting option to Xen DOM0 kernel
  • Uninstall xen-tools package:
yast2 --remove xen-tools
  • Edit /etc/modprobe.d/unsupported-modules, add the following line:
allow_unsupported_modules 1
  • Add the following package source by using yast2:$RCE/SLE11-SDK-SP3-Pool/sle-11-x86_64
  • Install git
yast2 --install git
  • Download files that needed for next steps:
git clone
  • Install RPMs under colo-files/libnl3
  • compile and install act_mirred module:
#cd colo-files/act_mirred && make
#mkdir /lib/modules/3.0.76-0.11-xen/updates/
#cp act_mirred.ko /lib/modules/3.0.76-0.11-xen/updates/ && depmod
Checkout xen-colo source
#git clone
#cd xen && git checkout colo-v4-noheartbeat
#make dist-xen; make dist-tools
Patch qemu and rebuild xen-tools
#cd tools/qemu-xen-dir/
#git am /path-to/colo-files/patch_for_qemu/0001-Introduce-xen-load-devices-state.patch
#cd ../../; make dist-tools
Install xen and xen-tools
#make install-xen; make install-tools
#chkconfig xencommons on
NOTE: There might be some missing dependance, the main missing packages are the following, please install these first:
flex,python-devel, gettext-tools, dev86, libuuid-devel, libopenssl-devel, libyajl-devel, glib2-devel, libpixman-1-0-devel
  • Compile and install colo agent (only needed on primary host)
#git clone
#git checkout experimental
#cp *.ko /lib/modules/3.0.76-0.11-xen/updates/ && depmod

Guest installation

Note the following steps should be done on primary host.

  • Needed settings in Guest config file:
  • Select 'Physical Machine' when choosing host type.


Note the following steps should be done on primary host.

  • Copy the new installed guest image to secondary host. Note that the image should be put in the same directory as it's in primary host.
  • Load essential kernel modules:
modprobe ifb numifbs=10
modprobe sch_colo
modprobe sch_colo_ipv4
modprobe sch_colo_arp
modprobe sch_colo_icmp
modprobe sch_colo_tcp
modprobe sch_colo_udp
  • Modify the guest config file:
    • disk
disk = [ 'format=raw,devtype=disk,access=w,vdev=hda,backendtype=tap,filter=colo,filter-params=,target=/root/images/hvm/hvm_nopv/hvm.img' ]
    • nic
vif = [ 'mac=00:16:4f:00:00:11, bridge=br0, model=e1000, forwarddev=eth0' ]
  • Start guest
  • Run COLO
xl remus -c -u <domname> <secondary host IP>