The goal of this page is to document little tips or tricks for working with UEC that don't fit other places.

Multiple DHCP Servers / MAC Filtering

The installation of a CloudController adds a dhcp server to the network. It is managed and will only respond to instances. However, if you have another dhcp server on your same network, it may also respond, which could wreak havoc.

Eucalyptus creates its instances with MAC addresses starting with d0:0d. This means that you can configure the other dhcp server on the network to ignore instance requests by filtering on that MAC address.

This can be accomplished in in various dhcp servers:

dnsmasq

dnsmasq, which is used by dd-wrt or other wrt projects, just need to have the following to the config added:

dhcp-host=d0:0d:*:*:*:*,ignore

dhcp3-server

You configuration need to define a class matching the Mac address prefix, then exclude the class from a pool. Example /etc/dhcpd.conf:

#this class prevents serving request from instances
class "ignoreclass" {
    match if (substring(hardware,1,2)=d0:0d);
}

subnet 192.168.0.0 netmask 255.255.255.0 {
    option domain-name-servers 192.168.0.1;
    #other options here
    pool{ 
        #this is where we deny attributing addresses
        deny members of "ignoreclass";
        #all other mac addresses will receive addresses from this range
        range 192.168.0.101 192.168.0.199;
    }
}

Cloud in your pocket - UEC Live ISO

If you need to demo UEC, this could be all you need. See the details on Dustin Kirkland's post.

Hadoop cluster deployment

Excellent blog post by Mathias Gug on deploying a Hadoop cluster on EC2/UEC with Puppet and Ubuntu Maverick.

UEC/Tips (last edited 2010-09-29 06:31:39 by mx)