eucaimp8

Upload: saravanaraajaa

Post on 02-Apr-2018

213 views

Category:

Documents


0 download

TRANSCRIPT

  • 7/27/2019 eucaimp8

    1/4

    http://auzietech.blogspot.in/2011/02/centos-55-mini-cloud-using-

    eucalyptus.html

    CentOS 5.5 Mini Cloud using Eucalyptus,Based on,EucalyptusInstallationCentos_v2.0. I'll walk through my own version. This will be a singlesystem at first but hopefully grow to at least a two node system. It doesn't take much to makexen/kvm happy any HT enabled machine from the LGA775's and up.

    Now like I noted earlier, I'm cramming allot into one node for now, though I may split the control halfonto my Ubuntu box.. So some of this will be the same as the Euca docs other bits will be different.This writeup though will go from start to finish the most features possible plus a few guest imagesimported and created from scratch.

    export VERSION=2.0.2

    Depending on your base install this list will be larger or smaller.. First lets make sure somethings areinstalled. This install actually had the kvm and virtualizaiton groups installed already. However theEuca folks have some specific recommendations soo..

    yum install -y ntp java-1.6.0-openjdk ant ant-nodeps dhcp bridge-utils perl-Convert-ASN1.noarch scsi-target-utils httpd xenLoaded plugins: fastestmirrorLoading mirror speeds from cached hostfile* addons: linux.mirrors.es.net* base: centos.mirror.facebook.net

    * extras: mirror.5ninesolutions.com* updates: mirror.nwresd.org... . ..--> Finished Dependency Resolution

    Dependencies Resolved

    ================================================================================Package Arch Version Repository

    Size================================================================================Installing:ant i386 1.6.5-2jpp.2 base 2.0Mant-nodeps i386 1.6.5-2jpp.2 base 794kdhcp i386 12:3.0.5-23.el5_5.2 updates 868kscsi-target-utils i386 0.0-6.20091205snap.el5_5.3 updates 142k

    http://auzietech.blogspot.in/2011/02/centos-55-mini-cloud-using-eucalyptus.htmlhttp://auzietech.blogspot.in/2011/02/centos-55-mini-cloud-using-eucalyptus.htmlhttp://auzietech.blogspot.in/2011/02/centos-55-mini-cloud-using-eucalyptus.htmlhttp://auzietech.blogspot.com/2011/02/centos-55-mini-cloud-using-eucalyptus.htmlhttp://open.eucalyptus.com/wiki/EucalyptusInstallationCentos_v2.0http://open.eucalyptus.com/wiki/EucalyptusInstallationCentos_v2.0http://open.eucalyptus.com/wiki/EucalyptusInstallationCentos_v2.0http://open.eucalyptus.com/wiki/EucalyptusInstallationCentos_v2.0http://auzietech.blogspot.com/2011/02/centos-55-mini-cloud-using-eucalyptus.htmlhttp://auzietech.blogspot.in/2011/02/centos-55-mini-cloud-using-eucalyptus.htmlhttp://auzietech.blogspot.in/2011/02/centos-55-mini-cloud-using-eucalyptus.html
  • 7/27/2019 eucaimp8

    2/4

    Updating:httpd i386 2.2.3-43.el5.centos.3 updates 1.2Mjava-1.6.0-openjdk i386 1:1.6.0.0-1.16.b17.el5 updates 37Mxen i386 3.0.3-105.el5_5.5 updates 1.9MInstalling for dependencies:libibverbs i386 1.1.3-2.el5 base 45klibrdmacm i386 1.0.10-1.el5 base 23kopenib noarch 1.4.1-5.el5 base 20kperl-Config-General noarch 2.40-1.el5 base 68ktzdata-java i386 2010l-1.el5 updates 177kUpdating for dependencies:httpd-manual i386 2.2.3-43.el5.centos.3 updates 814

    kmod_ssl i386 1:2.2.3-43.el5.centos.3 updates 91kxen-libs i386 3.0.3-105.el5_5.5 updates 159k

    Transaction Summary================================================================================Install 9 Package(s)Upgrade 6 Package(s)

    Total size: 45 MTotal download size: 37 M... .. .

    Updating : xen6/21

    Installing : dhcp7/21

    Installing : openib8/21

    Installing : perl-Config-General9/21

    Installing : tzdata-java10/21

    Updating : httpd-manual

    11/21Installing : libibverbs

    12/21Installing : librdmacm

    13/21Updating : java-1.6.0-openjdk

    14/21Installing : scsi-target-utils

    15/21

  • 7/27/2019 eucaimp8

    3/4

    Cleanup : httpd-manual16/21

    Cleanup : httpd17/21

    Cleanup : xen-libs18/21

    Cleanup : mod_ssl19/21

    Cleanup : java-1.6.0-openjdk20/21

    Cleanup : xen21/21

    Installed:ant.i386 0:1.6.5-2jpp.2ant-nodeps.i386 0:1.6.5-2jpp.2dhcp.i386 12:3.0.5-23.el5_5.2scsi-target-utils.i386 0:0.0-6.20091205snap.el5_5.3

    Dependency Installed:

    libibverbs.i386 0:1.1.3-2.el5 librdmacm.i386 0:1.0.10-1.el5openib.noarch 0:1.4.1-5.el5 perl-Config-General.noarch 0:2.40-1.el5tzdata-java.i386 0:2010l-1.el5

    Updated:httpd.i386 0:2.2.3-43.el5.centos.3java-1.6.0-openjdk.i386 1:1.6.0.0-1.16.b17.el5xen.i386 0:3.0.3-105.el5_5.5

    Dependency Updated:httpd-manual.i386 0:2.2.3-43.el5.centos.3mod_ssl.i386 1:2.2.3-43.el5.centos.3xen-libs.i386 0:3.0.3-105.el5_5.5

    Complete!

    Before going further do yourself a favor and update!

    ]# yum -y upgrade

    Now per the docs were going to disable a few things on Xen..

    sed --in-place 's/#(xend-http-server no)/(xend-http-server yes)/'/etc/xen/xend-config.sxpsed --in-place 's/#(xend-address localhost)/(xend-address localhost)/'/etc/xen/xend-config.sxp/etc/init.d/xend restart

    Also we need to make a few security changes, system-config-security-tui can help or just modify thefiles and reboot..SELinux, (really we all need to learn how to make SELinux work for us but I'm with the Euca folksdisable it for now.)

    ]# grep disable /etc/sysconfig/selinux# disabled - SELinux is fully disabled.SELINUX=disabled

  • 7/27/2019 eucaimp8

    4/4

    And firewall, for peets sake just make em all the same.. If you really want each one to be different itsup to you.

    ]# egrep "8443|8773|8774|9001|8775" /etc/sysconfig/iptables-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 8443 -jACCEPT-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 8773 -jACCEPT-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 8774 -jACCEPT-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 9001 -jACCEPT-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 8775 -jACCEPT

    Now here they say use export version.. I say write the darn version into the repo file..

    ]# cat /etc/yum.repos.d/euca.repo[euca]name=Eucalyptusbaseurl=http://www.eucalyptussoftware.com/downloads/repo/eucalyptus/2.0.2/yum

    /centos/enabled=1

    Now again I divert from the doc, just because you install it doesn't mean it must be enabled.. Mynodes will have everything but only one will be configured as a lead node.

    yum install eucalyptus-cloud eucalyptus-cc eucalyptus-walrus eucalyptus-sceucalyptus-nc --nogpgcheck

    Ok,For now my node controller is an Ubuntu machine for this first attempt I'm going to just try the defaultpackages..

    # apt-get install eucalyptus-cc eucalyptus-cloud# sudo apt-get install bittorrent-gui bittorrent

    This should trigger a rather large installation including all of the suggested packages from Euca'sdocs. Also apt/dpkgconf will ask alot of configuration questions..(I'll go over them later in a reinstall) Igave it a range from 100-150 of my local sub-net..

    On the node you will also need this in both cases it was not installed by default and in the case ofCentOS the quickest repository with it was rpmforge..

    rpm -Uhv http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpmyum install bittorrent

    I'll pick this backup / finish it shortly.. publishing it for now..