Eucalyptus - HTML: Centos 5.5 Mini Cloud Using Eucalyptus
Eucalyptus - HTML: Centos 5.5 Mini Cloud Using Eucalyptus
html
Depending on your base install this list will be larger or smaller.. First lets make sure somethings are installed. This install actually had the kvm and virtualizaiton groups installed already. However the Euca folks have some specific recommendations soo..
yum install -y ntp java-1.6.0-openjdk ant ant-nodeps dhcp bridge-utils perlConvert-ASN1.noarch scsi-target-utils httpd xen Loaded plugins: fastestmirror Loading 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.0 M ant-nodeps i386 1.6.5-2jpp.2 base 794 k dhcp i386 12:3.0.5-23.el5_5.2 updates 868 k scsi-target-utils i386 0.0-6.20091205snap.el5_5.3 updates 142 k
Updating: httpd i386 M java-1.6.0-openjdk i386 M xen i386 M Installing for dependencies: libibverbs i386 k librdmacm i386 k openib noarch k perl-Config-General noarch k tzdata-java i386 k Updating for dependencies: httpd-manual i386 k mod_ssl i386 k xen-libs i386 k
2.2.3-43.el5.centos.3 1:1.6.0.0-1.16.b17.el5 3.0.3-105.el5_5.5 1.1.3-2.el5 1.0.10-1.el5 1.4.1-5.el5 2.40-1.el5 2010l-1.el5 2.2.3-43.el5.centos.3 1:2.2.3-43.el5.centos.3 3.0.3-105.el5_5.5
updates updates updates base base base base updates updates updates updates
Transaction Summary ============================================================================= === Install 9 Package(s) Upgrade 6 Package(s) Total size: 45 M Total download size: 37 M ... .. . Updating 6/21 Installing 7/21 Installing 8/21 Installing 9/21 Installing 10/21 Updating 11/21 Installing 12/21 Installing 13/21 Updating 14/21 Installing 15/21 : : : : : : : : : : xen dhcp openib
Cleanup 16/21 Cleanup 17/21 Cleanup 18/21 Cleanup 19/21 Cleanup 20/21 Cleanup 21/21 Installed: ant.i386 0:1.6.5-2jpp.2 ant-nodeps.i386 0:1.6.5-2jpp.2 dhcp.i386 12:3.0.5-23.el5_5.2 scsi-target-utils.i386 0:0.0-6.20091205snap.el5_5.3 Dependency Installed: libibverbs.i386 0:1.1.3-2.el5 openib.noarch 0:1.4.1-5.el5 tzdata-java.i386 0:2010l-1.el5
java-1.6.0-openjdk : xen
Updated: httpd.i386 0:2.2.3-43.el5.centos.3 java-1.6.0-openjdk.i386 1:1.6.0.0-1.16.b17.el5 xen.i386 0:3.0.3-105.el5_5.5 Dependency Updated: httpd-manual.i386 0:2.2.3-43.el5.centos.3 mod_ssl.i386 1:2.2.3-43.el5.centos.3 xen-libs.i386 0:3.0.3-105.el5_5.5 Complete!
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.sxp sed --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 the files and reboot.. SELinux, (really we all need to learn how to make SELinux work for us but I'm with the Euca folks disable it for now.)
]# grep disable /etc/sysconfig/selinux # disabled - SELinux is fully disabled. SELINUX=disabled
And firewall, for peets sake just make em all the same.. If you really want each one to be different its up to you.
]# egrep "8443|8773|8774|9001|8775" /etc/sysconfig/iptables -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp ACCEPT -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp ACCEPT -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp ACCEPT -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp ACCEPT -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp ACCEPT --dport 8443 -j --dport 8773 -j --dport 8774 -j --dport 9001 -j --dport 8775 -j
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=Eucalyptus baseurl=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.. My nodes will have everything but only one will be configured as a lead node.
yum install eucalyptus-cloud eucalyptus-nc --nogpgcheck eucalyptus-cc eucalyptus-walrus eucalyptus-sc
Ok, For now my node controller is an Ubuntu machine for this first attempt I'm going to just try the default packages..
# 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's docs. Also apt/dpkgconf will ask alot of configuration questions..(I'll go over them later in a reinstall) I gave 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 of CentOS the quickest repository with it was rpmforge..
rpm -Uhv http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release0.3.6-1.el5.rf.i386.rpm yum install bittorrent