+ All Categories
Home > Documents > Part 1 Eucalyptus for Building an Amazon EC2 Compatible Environment

Part 1 Eucalyptus for Building an Amazon EC2 Compatible Environment

Date post: 02-Apr-2018
Category:
Upload: saravanaraajaa
View: 216 times
Download: 0 times
Share this document with a friend

of 12

Transcript
  • 7/27/2019 Part 1 Eucalyptus for Building an Amazon EC2 Compatible Environment

    1/12

    Translated by: Prabin Karanjit (e-ambition Inc.)

    Source:http://cloud.watch.impress.co.jp/docs/column/eucalyptus/20100924_394058.html

    Part 1: Eucalyptus for building an Amazon EC2 compatible environment

    This seriesof articles describes on how to deploy and use Eucalyptus- an Amazon EC2 compatible cloudplatform. The first part of the article guides you in setting up a Eucalyptus cloud platform for a testing

    environment and the second part describes the internal detailsof the platform.What is Eucalyptus?

    Eucalyptus is Amazons EC2/S3 API compatible cloud platform that was developed at the Department of

    Computer Science, University of California, Santa Barbara. Eucalyptus Systems, Inc. was founded in

    January 2009 to manage and continue development of Eucalyptus.

    Although Eucalyptus has API compatibility with Amazons EC2/S3 services, unlike Amazons EC2 public

    cloud, Eucalyptus is designed to provide a private cloud platform, and hence, some of the features of

    Amazons EC2 public cloud (such as instance pricing) are not available with Eucalyptus.

    Eucalyptus has been released as open source code under the GPLv3 license. For source commitments,

    it is, however, necessary to accept and agree to the terms and conditions of Contributor License

    Agreement (CLA). In addition, bug reports and patches are posted on the launchpad forums (https://

    launchpad.net / eucalyptus) and community site ( http://open.eucalyptus.com)

    This series of articles is based on version 1.6.2. Note that Version 2.0 was released on August 24th 2010.

    Eucalyptus components

    Eucalyptus must be installed on multiple hardware nodes. A Eucalyptus cloud setup, therefore,comprises various software units called components which are assigned different roles and are

    categorized accordingly. The following diagram provides an overview of each component.

    Fig 01-01: Eucalyptus components overview diagram

    http://www.google.com/url?q=http%3A%2F%2Fcloud.watch.impress.co.jp%2Fdocs%2Fcolumn%2Feucalyptus%2F20100924_394058.html&sa=D&sntz=1&usg=AFQjCNHNE6hn1oSixVTHBQC6yUSp-27hAghttp://www.google.com/url?q=http%3A%2F%2Fcloud.watch.impress.co.jp%2Fdocs%2Fcolumn%2Feucalyptus%2F20100924_394058.html&sa=D&sntz=1&usg=AFQjCNHNE6hn1oSixVTHBQC6yUSp-27hAghttp://www.google.com/url?q=https%3A%2F%2Flaunchpad.net%2Feucalyptus&sa=D&sntz=1&usg=AFQjCNGoo2g9v-P3qyYMxYuxZF3itk6Z5Qhttp://www.google.com/url?q=https%3A%2F%2Flaunchpad.net%2Feucalyptus&sa=D&sntz=1&usg=AFQjCNGoo2g9v-P3qyYMxYuxZF3itk6Z5Qhttp://translate.googleusercontent.com/translate_c?hl=en&ie=UTF-8&sl=ja&tl=en&u=http://open.eucalyptus.com/&prev=_t&rurl=translate.google.com&usg=ALkJrhjimPPqN7CtkUhQqg4-k5WNJHMdvAhttp://translate.googleusercontent.com/translate_c?hl=en&ie=UTF-8&sl=ja&tl=en&u=http://open.eucalyptus.com/&prev=_t&rurl=translate.google.com&usg=ALkJrhjimPPqN7CtkUhQqg4-k5WNJHMdvAhttp://translate.googleusercontent.com/translate_c?hl=en&ie=UTF-8&sl=ja&tl=en&u=http://open.eucalyptus.com/&prev=_t&rurl=translate.google.com&usg=ALkJrhjimPPqN7CtkUhQqg4-k5WNJHMdvAhttp://translate.googleusercontent.com/translate_c?hl=en&ie=UTF-8&sl=ja&tl=en&u=http://open.eucalyptus.com/&prev=_t&rurl=translate.google.com&usg=ALkJrhjimPPqN7CtkUhQqg4-k5WNJHMdvAhttp://translate.googleusercontent.com/translate_c?hl=en&ie=UTF-8&sl=ja&tl=en&u=http://open.eucalyptus.com/&prev=_t&rurl=translate.google.com&usg=ALkJrhjimPPqN7CtkUhQqg4-k5WNJHMdvAhttp://translate.googleusercontent.com/translate_c?hl=en&ie=UTF-8&sl=ja&tl=en&u=http://open.eucalyptus.com/&prev=_t&rurl=translate.google.com&usg=ALkJrhjimPPqN7CtkUhQqg4-k5WNJHMdvAhttp://translate.googleusercontent.com/translate_c?hl=en&ie=UTF-8&sl=ja&tl=en&u=http://open.eucalyptus.com/&prev=_t&rurl=translate.google.com&usg=ALkJrhjimPPqN7CtkUhQqg4-k5WNJHMdvAhttp://translate.googleusercontent.com/translate_c?hl=en&ie=UTF-8&sl=ja&tl=en&u=http://open.eucalyptus.com/&prev=_t&rurl=translate.google.com&usg=ALkJrhjimPPqN7CtkUhQqg4-k5WNJHMdvAhttp://www.google.com/url?q=https%3A%2F%2Flaunchpad.net%2Feucalyptus&sa=D&sntz=1&usg=AFQjCNGoo2g9v-P3qyYMxYuxZF3itk6Z5Qhttp://www.google.com/url?q=https%3A%2F%2Flaunchpad.net%2Feucalyptus&sa=D&sntz=1&usg=AFQjCNGoo2g9v-P3qyYMxYuxZF3itk6Z5Qhttp://www.google.com/url?q=https%3A%2F%2Flaunchpad.net%2Feucalyptus&sa=D&sntz=1&usg=AFQjCNGoo2g9v-P3qyYMxYuxZF3itk6Z5Qhttp://www.google.com/url?q=https%3A%2F%2Flaunchpad.net%2Feucalyptus&sa=D&sntz=1&usg=AFQjCNGoo2g9v-P3qyYMxYuxZF3itk6Z5Qhttp://www.google.com/url?q=https%3A%2F%2Flaunchpad.net%2Feucalyptus&sa=D&sntz=1&usg=AFQjCNGoo2g9v-P3qyYMxYuxZF3itk6Z5Qhttp://www.google.com/url?q=https%3A%2F%2Flaunchpad.net%2Feucalyptus&sa=D&sntz=1&usg=AFQjCNGoo2g9v-P3qyYMxYuxZF3itk6Z5Qhttp://www.google.com/url?q=https%3A%2F%2Flaunchpad.net%2Feucalyptus&sa=D&sntz=1&usg=AFQjCNGoo2g9v-P3qyYMxYuxZF3itk6Z5Qhttp://www.google.com/url?q=http%3A%2F%2Fcloud.watch.impress.co.jp%2Fdocs%2Fcolumn%2Feucalyptus%2F20100924_394058.html&sa=D&sntz=1&usg=AFQjCNHNE6hn1oSixVTHBQC6yUSp-27hAghttp://www.google.com/url?q=http%3A%2F%2Fcloud.watch.impress.co.jp%2Fdocs%2Fcolumn%2Feucalyptus%2F20100924_394058.html&sa=D&sntz=1&usg=AFQjCNHNE6hn1oSixVTHBQC6yUSp-27hAghttp://www.google.com/url?q=http%3A%2F%2Fcloud.watch.impress.co.jp%2Fdocs%2Fcolumn%2Feucalyptus%2F20100924_394058.html&sa=D&sntz=1&usg=AFQjCNHNE6hn1oSixVTHBQC6yUSp-27hAghttp://www.google.com/url?q=http%3A%2F%2Fcloud.watch.impress.co.jp%2Fdocs%2Fcolumn%2Feucalyptus%2F20100924_394058.html&sa=D&sntz=1&usg=AFQjCNHNE6hn1oSixVTHBQC6yUSp-27hAghttp://www.google.com/url?q=http%3A%2F%2Fcloud.watch.impress.co.jp%2Fdocs%2Fcolumn%2Feucalyptus%2F20100924_394058.html&sa=D&sntz=1&usg=AFQjCNHNE6hn1oSixVTHBQC6yUSp-27hAghttp://www.google.com/url?q=http%3A%2F%2Fcloud.watch.impress.co.jp%2Fdocs%2Fcolumn%2Feucalyptus%2F20100924_394058.html&sa=D&sntz=1&usg=AFQjCNHNE6hn1oSixVTHBQC6yUSp-27hAghttp://www.google.com/url?q=http%3A%2F%2Fcloud.watch.impress.co.jp%2Fdocs%2Fcolumn%2Feucalyptus%2F20100924_394058.html&sa=D&sntz=1&usg=AFQjCNHNE6hn1oSixVTHBQC6yUSp-27hAghttp://www.google.com/url?q=http%3A%2F%2Fcloud.watch.impress.co.jp%2Fdocs%2Fcolumn%2Feucalyptus%2F20100924_394058.html&sa=D&sntz=1&usg=AFQjCNHNE6hn1oSixVTHBQC6yUSp-27hAghttp://www.google.com/url?q=http%3A%2F%2Fcloud.watch.impress.co.jp%2Fdocs%2Fcolumn%2Feucalyptus%2F20100924_394058.html&sa=D&sntz=1&usg=AFQjCNHNE6hn1oSixVTHBQC6yUSp-27hAghttp://www.google.com/url?q=http%3A%2F%2Fcloud.watch.impress.co.jp%2Fdocs%2Fcolumn%2Feucalyptus%2F20100924_394058.html&sa=D&sntz=1&usg=AFQjCNHNE6hn1oSixVTHBQC6yUSp-27hAghttp://www.google.com/url?q=http%3A%2F%2Fcloud.watch.impress.co.jp%2Fdocs%2Fcolumn%2Feucalyptus%2F20100924_394058.html&sa=D&sntz=1&usg=AFQjCNHNE6hn1oSixVTHBQC6yUSp-27hAghttp://www.google.com/url?q=http%3A%2F%2Fcloud.watch.impress.co.jp%2Fdocs%2Fcolumn%2Feucalyptus%2F20100924_394058.html&sa=D&sntz=1&usg=AFQjCNHNE6hn1oSixVTHBQC6yUSp-27hAghttp://www.google.com/url?q=http%3A%2F%2Fcloud.watch.impress.co.jp%2Fdocs%2Fcolumn%2Feucalyptus%2F20100924_394058.html&sa=D&sntz=1&usg=AFQjCNHNE6hn1oSixVTHBQC6yUSp-27hAghttp://www.google.com/url?q=http%3A%2F%2Fcloud.watch.impress.co.jp%2Fdocs%2Fcolumn%2Feucalyptus%2F20100924_394058.html&sa=D&sntz=1&usg=AFQjCNHNE6hn1oSixVTHBQC6yUSp-27hAghttp://www.google.com/url?q=http%3A%2F%2Fcloud.watch.impress.co.jp%2Fdocs%2Fcolumn%2Feucalyptus%2F20100924_394058.html&sa=D&sntz=1&usg=AFQjCNHNE6hn1oSixVTHBQC6yUSp-27hAghttp://www.google.com/url?q=http%3A%2F%2Fcloud.watch.impress.co.jp%2Fdocs%2Fcolumn%2Feucalyptus%2F20100924_394058.html&sa=D&sntz=1&usg=AFQjCNHNE6hn1oSixVTHBQC6yUSp-27hAghttp://www.google.com/url?q=http%3A%2F%2Fcloud.watch.impress.co.jp%2Fdocs%2Fcolumn%2Feucalyptus%2F20100924_394058.html&sa=D&sntz=1&usg=AFQjCNHNE6hn1oSixVTHBQC6yUSp-27hAghttp://www.google.com/url?q=http%3A%2F%2Fcloud.watch.impress.co.jp%2Fdocs%2Fcolumn%2Feucalyptus%2F20100924_394058.html&sa=D&sntz=1&usg=AFQjCNHNE6hn1oSixVTHBQC6yUSp-27hAghttp://www.google.com/url?q=http%3A%2F%2Fcloud.watch.impress.co.jp%2Fdocs%2Fcolumn%2Feucalyptus%2F20100924_394058.html&sa=D&sntz=1&usg=AFQjCNHNE6hn1oSixVTHBQC6yUSp-27hAg
  • 7/27/2019 Part 1 Eucalyptus for Building an Amazon EC2 Compatible Environment

    2/12

    [Cloud Controller]

    The Cloud Controller offers EC2-compatible interfaces as well as web management interfaces to users,

    and it is responsible for managing the whole system. From here onwards, the Cloud Controller will be

    referred to as CLC.

    [Cluster Controller]

    The Cluster Controller controls the network of Node Controllers and instances (virtual machines). From

    here onwards, the Cluster Controller will be referred to as CC.

    [Node Controller]

    The Node Controller delegates the instructions from CC to the underlying hypervisor (Xen / KVM) to run

    instances. From here onwards, the Node Controller will be referred to as NC.

    [Storage Controller]

    The Storage Controller offers EBS-style block-based storage to the instances. From here onwards, the

    Storage Controller will be referred to as SC

    [Walrus]Walrus offers S3-compatible interfaces and is also responsible for managing virtual machine images.

    Installation RequirementsIn Eucalyptus, the availabilityof features depends on the configuration parameters and hardware setup.The following table, for instance, shows how the networking mode configuration parameter VNET_MODE

    determines the availability of features.

    VNET_MODEElastic

    IPDHCP SecurityGroup VLAN MetaData

    SYSTEM -

    *1

    STATIC

    MANAGED

    MANAGED-

    NOVLAN

    *1 A Non-Eucalyptus DHCP server can be used.

    The first part of this article omits details on feature availability for each networking mode. It focuses on

    installing Eucalyptus cloud in MANAGED mode, since this mode is the most full-featured networking

    mode.

    Installation of Eucalyptus in MANAGED mode requires at least two physical machines (front-end and NC)

    and a network hub. It is assumed that all Eucalyptus components except the NC (viz. CLC, CC, Walrus,SC) are co-located in a single machine referred to asthe front-end.Please note that the front-end should be located in the network segment which can be accessed from the

    client machine as shown below. Moreover, make sure that a DHCP server is not in the network segment

    shared by the NCs.

  • 7/27/2019 Part 1 Eucalyptus for Building an Amazon EC2 Compatible Environment

    3/12

    Fig 01-02: Sample configuration (IP address shown are of authors environment)

    Installing the front-end (CLC/CC from here onwards) and NCs in the test environment does not require

    high-spec machines, though for production environments, we recommend that you use machines with

    decent hardware specifications. For reference, the following are the hardware specifications of the

    servers used for testing purposes by the authors at work and home.

    Work environment (1) Work environment (2) Home environment

    CLC/CC NC CLC/CC NC CLC/CC NC

    CPUPentiumD3.00GHz

    PentiumD3.00GHz

    Xeon E55062.13GHz

    Opteron2376

    Athlon1640B

    Opteron1352

    VT disabled disabled enabled enabled enabled enabled

    Core

    Count2 2 8 8 1 4

    Memory 4GB 4GB 16GB 16GB 2GB 8GB

  • 7/27/2019 Part 1 Eucalyptus for Building an Amazon EC2 Compatible Environment

    4/12

    HDD 250GB 250GB 250GB 250GB 500GB 160GB

    NICGigabit(2pcs)

    Gigabit(1pc)

    Gigabit(4pcs)

    Gigabit(4pcs)

    Gigabit(2pcs)

    Gigabit(2pcs)

    VT must be enabled to install Ubuntu Enterprise Cloud (UEC). However, in this series of articles thecloud setupwill assume a 64 bit CentOS 5.4 (Xen) that requires no VT-enabled CPUs. Installation and initial configuration of CentOS 5.4

    During the installation of CentOS 5.4, disable the IPv6 support option and configure the network devices

    as in the following diagram.

    Pic01-01: Network devices configuration

    As shown in the diagram, the authors prefer to exclude Desktop-Gnome packages not required for the

    server installation. This is, however, a matter of personal choice, and we leave it to the readers to decide on whether to install these packages.

  • 7/27/2019 Part 1 Eucalyptus for Building an Amazon EC2 Compatible Environment

    5/12

    Pic01-02: [Group Install selection(1)]

    Select Virtualization package group for the NCs server installation.

    Pic01-03: [Group install selection (2)]

    Once the installation is completed, login to the server to disable firewall and SELinux.

  • 7/27/2019 Part 1 Eucalyptus for Building an Amazon EC2 Compatible Environment

    6/12

    Pic01-04: Firewall and SELinux settings

    Modify the xen configuration parameters and restart the xend service in all the NC servers as follows.

    {{{

    sed -i -e 's/#(xend-http-server no)/(xend-http-server yes)/' /etc/xen/xend-config.sxp

    sed -i -e 's/#(xend-address localhost)/(xend-address localhost)/' /etc/xen/xend-

    config.sxp

    /etc/init.d/xend restart

    }}}

    EBS volumes as well as virtual machine instances consume loop-back devices. The followingcommands will increase the number of loop-back devices available.

    {{{

    # execute on both CLC/CC and NC

    echo 'options loop max_loop=256' > /etc/modprobe.d/loop

    for i in `seq 8 255`; do echo loop${i} >> /etc/udev/makedev.d/50-udev.nodes; done

    }}}

    The following commands will turn off servicesthat are unnecessary for setting up the Eucalyptus cloud.{{{

    # Execute on both the CLC/CC and NC

    chkconfig iptables off

    chkconfig ip6tables off

    #Execute on NC

    chkconfig libvirtd off

    }}}

    After the OS has been configured, reboot the machine to make sure the above changes are reflected.

  • 7/27/2019 Part 1 Eucalyptus for Building an Amazon EC2 Compatible Environment

    7/12

    In addition, you should set up an NTP server to make sure all the servers that constitute the Eucalyptus

    cloud and client machine system clocks are synchronized.

    Installation and Configuration of Eucalyptus

    The following packages are necessary for installing the CLC/CC server.

    {{{

    # Internet connection available scenario

    yum -y install java-1.6.0-openjdk ant ant-nodeps dhcp bridge-utils httpd

    # Internet connection unavailable scenario

    mkdir /media/CentOS

    mount /dev/cdrom /media/CentOS/

    yum --disablerepo=\* --enablerepo=c5-media -y install java-1.6.0-openjdk ant ant-

    nodeps dhcp bridge-utils httpd

    }}}

    Go to the Eucalyptus downloads page (http://open.eucalyptus.com/downloads) and download theeucalyptus-1.6.2-centos-x86_64.tar.gz file from "Eucalyptus 1.6.2 - RHEL / CentOS 5.4 - x86_64" located

    at the bottom of the page.

    Pic01-05: Downloading form Eucalyptus site

    Copy the downloaded file to the CLC / CC server, extract it, and set the extracted path as the current

    directory.

    http://translate.googleusercontent.com/translate_c?hl=en&ie=UTF-8&sl=ja&tl=en&u=http://open.eucalyptus.com/downloads&prev=_t&rurl=translate.google.com&usg=ALkJrhiGIBBGdx7znT2iXe-Vgoks2vijBwhttp://translate.googleusercontent.com/translate_c?hl=en&ie=UTF-8&sl=ja&tl=en&u=http://open.eucalyptus.com/downloads&prev=_t&rurl=translate.google.com&usg=ALkJrhiGIBBGdx7znT2iXe-Vgoks2vijBwhttp://translate.googleusercontent.com/translate_c?hl=en&ie=UTF-8&sl=ja&tl=en&u=http://open.eucalyptus.com/downloads&prev=_t&rurl=translate.google.com&usg=ALkJrhiGIBBGdx7znT2iXe-Vgoks2vijBwhttp://translate.googleusercontent.com/translate_c?hl=en&ie=UTF-8&sl=ja&tl=en&u=http://open.eucalyptus.com/downloads&prev=_t&rurl=translate.google.com&usg=ALkJrhiGIBBGdx7znT2iXe-Vgoks2vijBwhttp://translate.googleusercontent.com/translate_c?hl=en&ie=UTF-8&sl=ja&tl=en&u=http://open.eucalyptus.com/downloads&prev=_t&rurl=translate.google.com&usg=ALkJrhiGIBBGdx7znT2iXe-Vgoks2vijBwhttp://translate.googleusercontent.com/translate_c?hl=en&ie=UTF-8&sl=ja&tl=en&u=http://open.eucalyptus.com/downloads&prev=_t&rurl=translate.google.com&usg=ALkJrhiGIBBGdx7znT2iXe-Vgoks2vijBwhttp://translate.googleusercontent.com/translate_c?hl=en&ie=UTF-8&sl=ja&tl=en&u=http://open.eucalyptus.com/downloads&prev=_t&rurl=translate.google.com&usg=ALkJrhiGIBBGdx7znT2iXe-Vgoks2vijBwhttp://translate.googleusercontent.com/translate_c?hl=en&ie=UTF-8&sl=ja&tl=en&u=http://open.eucalyptus.com/downloads&prev=_t&rurl=translate.google.com&usg=ALkJrhiGIBBGdx7znT2iXe-Vgoks2vijBwhttp://translate.googleusercontent.com/translate_c?hl=en&ie=UTF-8&sl=ja&tl=en&u=http://open.eucalyptus.com/downloads&prev=_t&rurl=translate.google.com&usg=ALkJrhiGIBBGdx7znT2iXe-Vgoks2vijBwhttp://translate.googleusercontent.com/translate_c?hl=en&ie=UTF-8&sl=ja&tl=en&u=http://open.eucalyptus.com/downloads&prev=_t&rurl=translate.google.com&usg=ALkJrhiGIBBGdx7znT2iXe-Vgoks2vijBw
  • 7/27/2019 Part 1 Eucalyptus for Building an Amazon EC2 Compatible Environment

    8/12

    {{{

    tar -xzf eucalyptus-1.6.2-centos-x86_64.tar.gz

    cd eucalyptus-1.6.2-centos-x86_64/eucalyptus-1.6.2-rpm-deps-x86_64/

    }}}

    First, install the dependency packages by usingthe rpm command.{{{

    rpm -Uvh aoetools-21-1.el4.x86_64.rpm \

    euca-axis2c-1.6.0-1.x86_64.rpm \

    euca-rampartc-1.3.0-1.x86_64.rpm \

    groovy-1.6.5-1.noarch.rpm \

    lzo2-2.02-3.el5.rf.x86_64.rpm \

    vblade-14-1mdv2008.1.x86_64.rpm \

    vtun-3.0.2-1.el5.rf.x86_64.rpm

    }}}

    Then, install the Eucalyptus component RPMs.

    {{{

    cd ..

    rpm -Uvh eucalyptus-1.6.2-1.x86_64.rpm \

    eucalyptus-cloud-1.6.2-1.x86_64.rpm \

    eucalyptus-cc-1.6.2-1.x86_64.rpm \

    eucalyptus-common-java-1.6.2-1.x86_64.rpm \

    eucalyptus-gl-1.6.2-1.x86_64.rpm \

    eucalyptus-sc-1.6.2-1.x86_64.rpm \

    eucalyptus-walrus-1.6.2-1.x86_64.rpm

    }}}

    Next, proceed with the installation of NC. On the NC server, install the required packages as follows.

    {{{

    # Internet connection available scenario

    yum -y install httpd

    # Internet connection unavailable scenario

    mkdir /media/CentOS

    mount /dev/cdrom /media/CentOS/

    yum --disablerepo=\* --enablerepo=c5-media -y install httpd

    }}}

    Copy the eucalyptus-1.6.2-centos-x86_64.tar.gz file to the NC server, extract it, and set the extracted

    path as the current directory.

    {{{

    tar -xzf eucalyptus-1.6.2-centos-x86_64.tar.gz

    cd eucalyptus-1.6.2-centos-x86_64/eucalyptus-1.6.2-rpm-deps-x86_64/

    }}}

    First,install the dependency packages by usingthe rpm command.{{{

    rpm -Uvh aoetools-21-1.el4.x86_64.rpm \

  • 7/27/2019 Part 1 Eucalyptus for Building an Amazon EC2 Compatible Environment

    9/12

    euca-axis2c-1.6.0-1.x86_64.rpm \

    euca-rampartc-1.3.0-1.x86_64.rpm

    }}}

    Then, install the Eucalyptus components RPMs.

    {{{cd ..

    rpm -Uvh eucalyptus-1.6.2-1.x86_64.rpm \

    eucalyptus-nc-1.6.2-1.x86_64.rpm \

    eucalyptus-gl-1.6.2-1.x86_64.rpm

    }}}

    On all the NC servers, execute the following command to make sure that user eucalyptus can interact

    with the hypervisor to gather the required information. (In case of failure, check the configuration

    parameters of /etc/xen/xend-config.sxp file.)

    {{{

    su eucalyptus -c "virsh list"

    Id Name State

    ----------------------------------

    0 Domain-0 running

    }}}

    Eucalyptus networking mode configuration parameter (VNET_MODE) defaults to SYSTEM mode. Modify

    the eucalyptus.conf file by setting the networking mode to MANAGED mode as shown below. (The

    parameter values are specified as per the authors setup environment. In case of any errors, readers are

    advised to specify the values as per their setup environment.)

    {{{

    #On CLC/CC

    sed -i -e 's/^\(VNET_PUBINTERFACE\)=.*/\1="eth0"/' /etc/eucalyptus/eucalyptus.conf

    sed -i -e 's/^\(VNET_PRIVINTERFACE\)=.*/\1="eth1"/' /etc/eucalyptus/eucalyptus.conf

    sed -i -e 's/^#\(VNET_MODE="MANAGED"\)/\1/' /etc/eucalyptus/eucalyptus.conf

    sed -i -e 's/^#\(VNET_SUBNET\)="192.168.0.0"/\1="10.1.0.0"/'

    /etc/eucalyptus/eucalyptus.conf

    sed -i -e 's/^#\(VNET_NETMASK="255.255.0.0"\)/\1/' /etc/eucalyptus/eucalyptus.conf

    sed -i -e 's/^#\(VNET_DNS\)=.*/\1=""/' /etc/eucalyptus/eucalyptus.conf

    sed -i -e 's/^#\(VNET_ADDRSPERNET\)="32"/\1="64"/' /etc/eucalyptus/eucalyptus.conf

    sed -i -e 's/^#\(VNET_PUBLICIPS\)=.*/\1="192.168.32.200-192.168.32.210"/'

    /etc/eucalyptus/eucalyptus.conf

    sed -i -e 's/^\(VNET_MODE="SYSTEM"\)/#\1/' /etc/eucalyptus/eucalyptus.conf

    #On NC

    sed -i -e 's/^\(VNET_PUBINTERFACE\)=.*/\1="eth0"/' /etc/eucalyptus/eucalyptus.conf

    sed -i -e 's/^\(VNET_PRIVINTERFACE=.*\)/#\1/' /etc/eucalyptus/eucalyptus.conf

    sed -i -e 's/^#\(VNET_MODE="MANAGED"\)/\1/' /etc/eucalyptus/eucalyptus.conf

    sed -i -e 's/^\(VNET_MODE="SYSTEM"\)/#\1/' /etc/eucalyptus/eucalyptus.conf

    }}}

  • 7/27/2019 Part 1 Eucalyptus for Building an Amazon EC2 Compatible Environment

    10/12

    {{{

    # On CLC/CC

    /etc/init.d/eucalyptus-cloud start

    /etc/init.d/eucalyptus-cc start

    #On NC

    /etc/init.d/eucalyptus-nc start

    }}}

    Eucalyptus components should be registered on the CLC / CC. (Please note, the IP addresses specified

    in the example below are the IP addresses of the authors setup environment. Readers are advised to

    specify the appropriate values as per their setup environment.)

    {{{

    # Walrus configuration(Specify the IP address of CLC/CCs eth0 interface)

    euca_conf --register-walrus 192.168.32.20

    # CC Registration ( Specify any suitable name for cluster and IP address of CLC/CCs

    eth1 interface.)

    euca_conf --register-cluster cluster0 192.168.100.1# SC Registration(Specify the registered cluster name and IP address of CLC/CCs eth1

    interface)

    euca_conf --register-sc cluster0 192.168.100.1

    #NC registration(Specify the IP address of NCs eth0 Interface)

    euca_conf --register-nodes "192.168.100.10"

    }}}

    This ends the configuration for the CUI. What follows shows the configuration to be carried out via web

    management interfaces.

    Point your browser to to access the login page as shown below. At thispoint you can log in using the Username admin and Password admin.

    Pic01-06: WUI Login page

    Upon a successful login, you will be presented with a page to change the Eucalyptus administrators

    password and email address. Submit the appropriate values for the same.

  • 7/27/2019 Part 1 Eucalyptus for Building an Amazon EC2 Compatible Environment

    11/12

    Pic01-07:Administrators Password Change Page

    The Configuration tab will display a list of configurable parameters along with those parameters specified

    using the eucalyptus.conf file and euca_conf commands.

    In the authors setup environment, eth1 is the network adapter that SC, co-located on CLC / CC, offers to

    NC for facilitating EBS-style block-based storage, and therefore, the value of the configuration parameter

    [interface] underthe [Clusters] section is changed from a default value of [eth0] to [eth1].

  • 7/27/2019 Part 1 Eucalyptus for Building an Amazon EC2 Compatible Environment

    12/12

    Pic01-08: SC Network Devices Configuration

    Adjust the configuration parameters, and clickthe Save Cluster Configuration button located at thebottom of the Clusters" section to savethe changes.This completes the initial configuration of Eucalyptus.

    In the next article, we will explain how to install and use euca2ools- a command line tool for interacting

    with Eucalyptus.


Recommended