Diff for "UEC/Tips"


Differences between revisions 5 and 6
Revision 5 as of 2010-09-22 22:33:24
Size: 1504
Editor: mx
Comment:
Revision 6 as of 2010-09-29 06:24:43
Size: 1763
Editor: mx
Comment:
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
=== Multiple DHCP Servers / MAC Filtering === ==Multiple DHCP Servers / MAC Filtering ==
Line 10: Line 10:
==== dnsmasq ==== === dnsmasq ===
Line 16: Line 16:
==== dhcp3-server ==== === dhcp3-server ===
Line 36: Line 36:

== Hadoop cluster deployment ==

[[http://ubuntumathiaz.wordpress.com/2010/09/27/deploying-a-hadoop-cluster-on-ec2uec-with-puppet-and-ubuntu-maverick/|Excellent blog post by MathiasGug]] on deploying a Hadoop cluster on EC2/UEC with Puppet and Ubuntu Maverick.

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;
    }
}

Hadoop cluster deployment

Excellent blog post by MathiasGug 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)