Version 2 (modified by ibaldin, 8 years ago)


Creating a customized xCAT image for a Eucalyptus worker node


This document describes how to create a custom xCAT image that will contain a Eucalyptus worker node and how to connect it to the already existing Eucalyptus master node.

Required modifications for Centos 5.5

Assuming you are starting from a Centos 5.5 here are the modifications that are required to turn a stock Centos 5.5 install into a Eucalyptus worker. Presumably a tar file containing Eucalyptus worker already exists. By default Eucalyptus is presumed to be installed under /opt/eucalyptus-2.0

  • Install prerequisites (admittedly this list contains both binary and development prerequisites):
    # yum install -y java-1.6.0-openjdk-devel ant ant-nodeps libvirt-devel curl-devel httpd httpd-devel apr-devel openssl-devel dhcp libxml2 libxml2-devel gnutls gnutls-devel xen-devel libgcrypt-devel zlib-devel perl-Convert-ASN1 perl-Crypt-OpenSSL-RSA perl-Crypt-OpenSSL-Random chkfontpath scsi-target-utils fuse-libs swig gcc
  • Make sure libvirtd is runnig and 'virsh list' can execute:
    # virsh list
     Id Name                 State
    *Make sure bridge named 'br0' is created at boot time. This is separate from virbr0 created by libvirt by default. br0 needs to carry the management IP address of the node and eth0 should be a member of this bridge:
    # ifconfig br0
    br0       Link encap:Ethernet  HWaddr 00:1D:09:29:FF:DA  
              inet addr:  Bcast:  Mask:
              inet6 addr: fe80::21d:9ff:fe29:ffda/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:7621193 errors:0 dropped:0 overruns:0 frame:0
              TX packets:1793760 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:0 
              RX bytes:9385876051 (8.7 GiB)  TX bytes:680733217 (649.1 MiB)
    # [root@euca-c1 libvirt]# brctl show
    bridge name	bridge id		STP enabled	interfaces
    br0		8000.001d0929ffda	no		eth0
    virbr0		8000.000000000000	yes