Professional Documents
Culture Documents
https://help.ubuntu.com/community/UEC/PackageI...
LogintoEdit UbuntuDocumentation>CommunityDocumentation>UECPackageInstall
UECPackageInstall
Overview
Contents 1. Overview 2. Objective 3. Tutorial 1. STEP1:Prerequisites 2. STEP2:InstalltheCloud/Cluster /Storage/WalrusFrontEndServer(s) 3. STEP3:InstallandConfiguretheNode Controller(s) 4. STEP4:RegistertheWalrus,Cluster, Storage,andNodeControllers 5. STEP5:ObtainCredentials 6. STEP6:Installanimagefromthestore 7. STEP7:RunanImage 4. MoreInformation 5. Glossary
Objective
Fromthistutorial,youwilllearnhowtoinstall,configure,registerand performseveraloperationsonabasicUECsetupthatresultsinacloudwith aonecontroller"front-end"andonenodeforrunningVirtualMachine (VM)instances.
Tutorial
STEP1:Prerequisites
Todeployaminimalcloudinfrastructure,youllneedatleasttwodedicatedsystems: aFrontEnd oneormoreNode(s) Thefollowingarerecommendations,ratherthanfixedrequirements.However,ourexperienceindevelopingthisdocumentation indicatedthefollowingsuggestions. FrontEnd Usethefollowingtableforasystemthatwillrunoneormoreof: thecloudcontroller(clc) theclustercontroller(cc) walrus(theS3-likestorageservice) thestoragecontroller(sc) Hardware Minimum CPU Memory Disk 1GHz 2GB 5400rpm IDE Suggested 2x2GHz 4GB 7200rpm SATA 200GB 1000Mbps Notes foranall-in-onefrontend,ithelpstohaveatleastadualcoreprocessor theJavawebfrontendbenefitsfromlotsofavailablememory slowerdiskswillwork,butwillyieldmuchlongerinstancestartuptimes 40GBisonlyenoughspaceforonlyasingleimage,cache,etc.,Eucalyptusdoesnot liketorunoutofdiskspace machineimagesarehundredsofMB,andneedtobecopiedoverthenetworkto nodes
1 of 9
02/02/2011 04:33 PM
https://help.ubuntu.com/community/UEC/PackageI...
Thesesystemswillactuallyruntheinstances.Youwillneedoneormoresystemswith: Hardware Minimum CPU Memory Disk VT extensions 1GB 5400rpm IDE Suggested VT,64-bit, Multicore 4GB Notes 64-bitcanrunbothi386,andamd64instances;bydefault,Eucalyptuswillonly run1VMperCPUcoreonaNode additionalmemorymeansmore,andlargerguests
STEP2:InstalltheCloud/Cluster/Storage/WalrusFrontEndServer(s)
1. InstallUbuntu10.04Server 2. UpdatetothemostcurrentstateintheUbuntuarchive:
sudoapt-getupdate sudoapt-getdist-upgrade
3. Installtheeucalyptus-cloudandeucalyptus-ccpackagesontheFrontEnd:
sudoapt-getinstalleucalyptus-cloudeucalyptus-cceucalyptus-walruseucalyptus-sc
STEP3:InstallandConfiguretheNodeController(s)
InstallingtheEucalyptusNodeServiceonarunningUbuntusystemconsistsofdoingthefollowingononeormoresystems: 1. InstallUbuntu10.04Server 2. UpdatetothemostcurrentstateintheUbuntuarchive:
sudoapt-getupdate sudoapt-getdist-upgrade
3. Installtheeucalyptus-ncpackage
sudoapt-getinstalleucalyptus-nc
2 of 9
02/02/2011 04:33 PM
https://help.ubuntu.com/community/UEC/PackageI...
Fordetailsonconfiguringabridge,see:http://doc.ubuntu.com/ubuntu/serverguide/C/network-configuration.html Thefollowingscriptshouldconfigureyourbridgecorrectlyinmostsetups:
interface=eth0 bridge=br0 sudosed-i"s/^iface$interfaceinet\(.*\)$/iface$interfaceinetmanual\n\nauto br0\niface$bridgeinet\1/"/etc/network/interfaces sudotee-a/etc/network/interfaces<<EOF bridge_ports$interface bridge_fd9 bridge_hello2 bridge_maxage12 bridge_stpoff EOF sudo/etc/init.d/networkingrestart
5. Configure/etc/eucalyptus/eucalyptus.confwiththenameofthebridge,andrestartthenodecontroller:
sudosed-i"s/^VNET_BRIDGE=.*$/VNET_BRIDGE=$bridge/"/etc/eucalyptus/eucalyptus.conf sudo/etc/init.d/eucalyptus-ncrestart
Then,ontheCloudController:
sudo-ueucalyptusssh-copy-id-i~eucalyptus/.ssh/id_rsa.pubeucalyptus@<IP_OF_NODE>
YoucannowremovethepasswordoftheeucalyptusaccountontheNode:
sudopasswd-deucalyptus
Thefollowingdiagramdepictswhatyoursetupshouldnowresemble:http://pompone.cs.ucsb.edu/~nurmi/images/euca-topo.png
STEP4:RegistertheWalrus,Cluster,Storage,andNodeControllers
AsofUbuntu10.04LTS,allcomponentregistrationshouldbeautomatic,assuming: a. b. c. d. e. PublicSSHkeyshavebeenexchangedproperly Theservicesareconfiguredproperly Theservicesarepublishingtheirexistence Theappropriateuec-component-listenerisrunning VerifyRegistration.
3 of 9
02/02/2011 04:33 PM
https://help.ubuntu.com/community/UEC/PackageI...
sudopasswdeucalyptus
Then,ontheCloudController:
sudo-ueucalyptusssh-copy-id-i/var/lib/eucalyptus/.ssh/id_rsa.pubeucalyptus@<IP_OF_NODE>
Youcannowremovethepasswordoftheeucalyptusaccountonthetargetcontroller,ifyouwish:
sudopasswd-deucalyptus
b. ConfiguretheServices OntheCloudController: FortheClusterControllerRegistration: DefinetheshellvariableCC_NAMEin/etc/eucalyptus/eucalyptus-cc.conf DefinetheshellvariableCC_IP_ADDRin/etc/eucalyptus/eucalyptus-ipaddr.conf,asaspace separatedlistofoneormoreIPaddresses. FortheWalrusControllerRegistration: DefinetheshellvariableWALRUS_IP_ADDRin/etc/eucalyptus/eucalyptus-ipaddr.conf,asa singleIPaddress. OntheClusterController: ForStorageControllerRegistration: DefinetheclusternameintheshellvariableCC_NAMEin/etc/eucalyptus/eucalyptus-cc.conf DefinetheshellvariableSC_IP_ADDRin/etc/eucalyptus/eucalyptus-ipaddr.conf,asaspace separatedlistofoneormoreIPaddresses. c. Publish Nowstartthepublicationservices. WalrusController:
sudostarteucalyptus-walrus-publication
ClusterController:
sudostarteucalyptus-cc-publication
StorageController:
sudostarteucalyptus-sc-publication
NodeController
sudostarteucalyptus-nc-publication
d. StarttheListener OntheCloudControllerandtheClusterController(s),run:
4 of 9
02/02/2011 04:33 PM
https://help.ubuntu.com/community/UEC/PackageI...
sudostartuec-component-listener
e. VerifyRegistration
cat/var/log/eucalyptus/registration.log 2010-04-0815:46:36-05:00|24243->Callingnodecluster1node10.1.1.75 2010-04-0815:46:36-05:00|24243->euca_conf--register-nodesreturned0 2010-04-0815:48:47-05:00|25858->CallingwalrusWalrus10.1.1.71 2010-04-0815:48:51-05:00|25858->euca_conf--register-walrusreturned0 2010-04-0815:49:04-05:00|26237->Callingclustercluster110.1.1.71 2010-04-0815:49:08-05:00|26237->euca_conf--register-clusterreturned0 2010-04-0815:49:17-05:00|26644->Callingstoragecluster1storage10.1.1.71 2010-04-0815:49:18-05:00|26644->euca_conf--register-screturned0
STEP5:ObtainCredentials
AfterinstallingandbootingtheCloudController,usersofthecloudwillneedtoretrievetheircredentials.Thiscanbedoneeither throughawebbrowser,oratthecommandline. FromaWebBrowser 1. Fromyourwebbrowser(eitherremotelyoronyourUbuntuserver)accessthefollowingURL:
https://<cloud-controller-ip-address>:8443/
FromaCommandLine 1. Alternatively,ifyouareonthecommandlineoftheCloudController,youcanrun:
mkdir-p~/.euca chmod700~/.euca cd~/.euca sudoeuca_conf--get-credentialsmycreds.zip unzipmycreds.zip ln-s~/.euca/eucarc~/.eucarc cd-
2. Tovalidatethateverythingisworkingcorrectly,getthelocalclusteravailabilitydetails:
.~/.euca/eucarc
5 of 9
02/02/2011 04:33 PM
https://help.ubuntu.com/community/UEC/PackageI...
STEP6:Installanimagefromthestore
Thefollowingisbyfarthesimplestwaytoinstallanimage.However,advancedusersmaybeinterestedinlearninghowtoBundle theirownimage. ThesimplestwaytoaddanimagetoUECistoinstallitfromtheImageStoreontheUECwebinterface. 1. AccessthewebinterfaceatthefollowingURL(Makesureyouspecifyhttps):
https://<cloud-controller-ip-address>:8443/
2. Enteryourloginandpassword(ifrequested,asyoumaystillbeloggedinfromearlier) 3. ClickontheStoretab
6 of 9
02/02/2011 04:33 PM
https://help.ubuntu.com/community/UEC/PackageI...
4. Next,youcancreateinstancesofyourregisteredimage:
euca-run-instances$EMI-kmykey-tm1.small
7. Andwhenyouaredonewiththisinstance,exityourSSHconnection,thenterminateyourinstance:
INSTANCEID=$(euca-describe-instances|grep$EMI|greprunning|tail-n1|awk'{print$2}') euca-terminate-instances$INSTANCEID
YourUECcloudshouldnowlooksimilartothefollowinglogicaldiagram: http://pompone.cs.ucsb.edu/~nurmi/images/euca-topo-withinst.png
MoreInformation
7 of 9
02/02/2011 04:33 PM
https://help.ubuntu.com/community/UEC/PackageI...
sudoserviceeucalyptus[start|stop|restart](ontheCLC/CC/SC/Walrusside) sudoserviceeucalyptus-nc[start|stop|restart](ontheNodeside) Locationsofsomeimportantfiles: Logfiles: /var/log/eucalyptus Configurationfiles: /etc/eucalyptus Database: /var/lib/eucalyptus/db Keys /var/lib/eucalyptus /var/lib/eucalyptus/.ssh Notes: Don'tforgettosourceyour~/.euca/eucarcbeforerunningtheclienttools. Links: EucalyptusProjectSite(forums,documentation,downloads) EucalyptusonLaunchpad(bugs,code) EucalyptusTroubleshooting(1.5) RegisteryourcloudwithRightScale
Glossary
TheUbuntuEnterpriseClouddocumentationusesterminologythatmightbeunfamiliartosomereaders.Thispageisintendedto provideaglossaryofsuchtermsandacronyms. Cloud-Afederatedsetofphysicalmachinesthatoffercomputingresourcesthroughvirtualmachines,provisionedand recollecteddynamically. CloudController(CLC)-EucalyptuscomponentthatprovidesthewebUI(anhttpsserveronport8443),andimplements theAmazonEC2API.ThereshouldbeonlyoneCloudControllerinaninstallationofUEC.Thisserviceisprovidedbythe Ubuntueucalyptus-cloudpackage. Cluster-Acollectionofnodes,associatedwithaClusterController.TherecanbemorethanoneClusterinaninstallationof UEC.Clustersaresometimesphysicallyseparatesetsofnodes.(e.g.floor1,floor2,floor2). ClusterController(CC)-Eucalyptuscomponentthatmanagescollectionsofnoderesources.Thisserviceisprovidedby theUbuntueucalyptus-ccpackage. EBS-ElasticBlockStorage.http://aws.amazon.com/ebs/ EC2-ElasticComputeCloud.Amazon'spay-by-the-hour,pay-by-the-gigabytepubliccloudcomputingoffering. EKI-EucalyptusKernelImage. EMI-EucalyptusMachineImage. ERI-EucalyptusRamdiskImage. Eucalyptus-ElasticUtilityComputingArchitectureforLinkingYourProgramsToUsefulSystems.Anopensource projectoriginallyfromtheUniversityofCaliforniaatSantaBarbara,nowsupportedbyEucalyptusSystems,aCanonical Partner. Front-end-Physicalmachinehostingone(ormore)ofthehighlevelEucalyptuscomponents(cloud,walrus,storage controller,clustercontroller). Node-Anodeisaphysicalmachinethat'scapableofrunningvirtualmachines,runninganodecontroller.WithinUbuntu,
8 of 9
02/02/2011 04:33 PM
https://help.ubuntu.com/community/UEC/PackageI...
thisgenerallymeansthattheCPUhasVTextensions,andcanruntheKVMhypervisor. NodeController(NC)-Eucalyptuscomponentthatrunsonnodeswhichhostthevirtualmachinesthatcomprisethecloud. ThisserviceisprovidedbytheUbuntupackageeucalyptus-nc. S3-SimpleStorageService.Amazon'spay-by-the-gigabytepersistentstoragesolutionforEC2.http://aws.amazon.com/s3/ StorageController(SC)-Eucalyptuscomponentthatmanagesdynamicblockstorageservices(EBS).Each'cluster'ina EucalyptusinstallationcanhaveitsownStorageController.Thiscomponentisprovidedbythe'eucalyptus-sc'package. UEC-UbuntuEnterpriseCloud.Ubuntu'scloudcomputingsolution,basedonEucalyptus. VM-VirtualMachine. VT-VirtualizationTechnology.AnoptionalfeatureofsomemodernCPUs,allowingforacceleratedvirtualmachine hosting. Walrus-EucalyptuscomponentthatimplementstheAmazonS3API,usedforstoringVMimagesanduserstorageusing S3bucketput/getabstractions.
UEC/PackageInstall(lastedited2010-04-0822:11:30byhttps://login.launchpad.net/+id/stJytmk@ cpe-66-69-226-228.austin.res.rr.com[66.69.226.228]:DustinKirkland)
ParentPage PageHistory
9 of 9
02/02/2011 04:33 PM