Installing Cloud-init on Linux and AIX - Coursera

文章推薦指數: 80 %
投票人數:10人

此課程. 視頻腳本. IBM PowerVC, an Infrastructure as a Service (IaaS) enabling software, provides a self-service cloud console for managing IBM Power Systems ... ListInstallingCloud-initonLinuxandAIXLoading...PrivateCloudManagementonIBMPowerSystemsIBMFilledStarFilledStarFilledStarFilledStarFilledStar4.9(39個評分) | 1.3K名學生已註冊課程3(共3門,LinuxandPrivateCloudAdministrationonIBMPowerSystems專項課程)免費註冊此課程視頻腳本IBMPowerVC,anInfrastructureasaService(IaaS)enablingsoftware,providesaself-servicecloudconsoleformanagingIBMPowerSystems.ItisbuiltonOpenStack.OpenStackisacollectionofopen-sourcesoftwareprojectsthatenterprisescanusetoruntheirownprivatecloudinfrastructure. Thiscourseexplainsmostcloudmanagementfeatures,startingwithsettingupaprivatecloudenvironmentfromthegroundup.Itthencoversplanning,sizingandotheradvancedadministrativetasksyoucanperformtobecomeanefficientsystemadministrator.查看授課大綱您將學習的技能IBMPowerVC,infrastructureasaservice,Openstack,CloudComputing,IBMCloud審閱FilledStarFilledStarFilledStarFilledStarFilledStar4.9(39個評分)5stars89.74%4stars7.69%3stars2.56%從本節課中ImagesandvirtualmachinesIntroductiontocloudimages8:23Cloud-initconcepts5:45InstallingCloud-initonLinuxandAIX11:43Creatinganimage9:29教學方BillMillerITManagementConsultantUpendraRajanITManagementConsultant以免費的價格試聽課程Inthislesson,I'llcovertheinstallationofcloud-initonbothLinuxandAIX.Nowbearwithmeasthisvideoisalittlelongerthanusual,butIwantedtokeeptheinstallationconceptsinthesamevideogiventhattherearecommontaskstoperform.Youmightaswellseeitallhereinoneplaceatonetime.Let'sgetcloud-initinstalledsowecancaptureanimage.Let'shavealookatwhat'snecessarytoinstallcloud-initonLinuxfirst.Thisgraphicillustratesthehigh-levelprocessforinstallingcloud-initontoavirtualmachinebeforecapturing.Installthedependencies,andthenthecloud-initcode,andthenyoumodifytheCloudconfigfile.I'vementionedthatearlierandI'mgoingtoprovidemoredetailsonthatinlatervideos,possiblyinthisvideo,Ithink.We'llsee.Thereareacriticalentriesthatmustbemadeforcloud-inittofunctionproperlysothattheCloudconfigfileupdateisreallyimportant.We'llalsodiscussoperatingsystemspecificsettingsthathavetobemadeinordertoallowforcloud-inittodowhatitdoes.Letmestartwiththedependencies.AsImentioned,cloud-inithassomesoftwaredependencies.DependingonthedistributionandtheversionofLinux,differentstepsmustbetaken.ForRHEL,IrecommendusingyumorsomeotherpackagemanagerlikeDNFmaybe.ForRHEL7,asofthisrecording,youaddtheepelyumrepositoryasshowninthegraphictogetthemostrecentlevelofthedependentRPMsandthenyouinstallthose.NowforSLEsandUbuntudependencies,youseeinthegraphic,SLEshasspecificlocationswhereyougetthedependencysimilartowhatIjustsaidwithrespecttotheepelrepositoryforyum.ThenforUbuntu,I'llbehonest,wayIhandlethislittledifferent.Iinstallthedistributionversionofcloud-initfirst.That'snottheoneIwanttouse,butwhatthatdoesisitinstallsalltheprerequisites.SoIcheatalittlebit,andthenIuninstallthatversionandIinstallthePowerVCversion.Thatmaynotworkallthetimebutthathasworkedformeinthepast.Nowspeakingofgettingtherightversionofcloud-init,IjustsaidIuninstallandreinstallthecustomversion.Well,it'simportanttounderstandthatyouneedthecustomizedversionofcloud-init.Butjustsayingwhy,wouldIneedsomethingspecial?Well,becauseIBMhasmadesomechangesthatallowthedeployedVMtofunctioncorrectlyinaPowerVMenvironment.Becausecloud-initwasoriginallywrittenforLinuxdeploysandforKVMordeploymentsnottoPowerVM.Hereyougo.Makesureyou'reloggedinthePowerVCserver,navigatetothedirectorythat'snotedinthegraphic,andthendowntothesubdirectoryforthedesiredoperatingsystemandyou'regoingtofindthedistributionspecificversionofcloud-init.RedHat'sdirectoryhaspackagesforRHEL6andRHEL7.ThosearetheversionsthatPowerVCcanbeinstalledonandSLEshasdifferentpackagesforbigandlittleendianbecauseofthedifferentversionsofSLEsandtheirendianness.SoyoucopythecorrectpackagetotheVMtobecaptured,manipulatedthereonthePowerVCserver,yougetitfromthere.SoSCPitover.Thenextstepisinstallingcloud-init.Youwoulduseanoperatingsystemspecificcommandtoinstallthepackage.Thisisjustinstallinganotherpackage.It'snotgoingtotakelongfortheinstallationtorun.Oncethecodeisinstalled,it'stimetoconfigureitandthere'sreallynotmuchtothateither.You'regoingtoupdateafewfieldsinthecloud.configfileandyou'rereadytogo.WhatyouseeinthegraphiciswhatyouwanttomodifyintheCloudconfigfileonaRHELoronUbuntusystem.Makenoteofthesemodifications.Therearekeytothesuccessfulfunctionofcloud-initinthedeployment.TheconfigDrivedatasource,I'vementionedthismultipletimes,it'sextremelyimportant.Youwanttosetthedisablerootdirectiveasshownunlessyouknowexactlywhatyou'redoing.Why?Well,ifyousetthattoone,youwon'tbeabletologintothedeployedVMasroot.Inotherwords,youbetterhaveanotheradministrativeuserdefinedinthatVMthatyou'recapturingsothatyoucanusethatinthedeployment.Thenfinally,youenableandstartthecloud-initrelatedservicesbyrunningthecommandsthatyouseeinthisgraphic.NowthisgraphicdescribestheadditionalsettingsthatmustbedoneonaRHELsystem.Insummary,SELinuxgetsettopermissiveordisabledifyoucangetawaywiththat,ensurethatthenetworkmanagerisinstalledandenabledandthatnet-toolisinstalled.Thenfinally,youturnoffnetworkmanagementcontroloftheinterfacesbyupdatingtheNM_CONTROLLEDvariabletonointheifcfg-eth*filesthatareintheetcsysconfigdirectory.Youseeitallonthescreenthere,butthat'stheprocess.Now,movingon,whatyouseeismodificationrecommendationsforcloudconfigonSLEs.Makenoteofthesemodifications.Theyarekeytotheproperfunctioningcloud-initinPowerVC.Again,configDrivedatasourceisextremelyimportant.Anotherkeystepinconfiguringcloud-initonLinuxonPowerVirtualMachineistoremovetheMACaddress,themediaaccesscontroladdress,fromcertainconfigurationfiles.Youmustremovethenetworkpersistencerulesintheimagebecausetheycausethenetworkinterfaceintheinstancetocomeupasaninterfaceotherthaneth0.ThisisbecauseyourimagehasarecordoftheMACaddressofthenetworkinterfacecardwhenitwasfirstinstalledandthisMACaddressisdifferenteachtimetheinstanceboots.Notethatifyoudeletethenetworkpersistentrulesfiles,youmightgetakernelwarning,youdevkernelwarningatboottime.Therefore,youshouldclearthecontentsorreplacedthemwithemptyfiles.Now,formoredetailsabouthowtoremovetheMACaddressinformation,youcangotothenohard-codedMACaddressinformationsectionintheOpenStackVirtualMachineImageGuideatdocs.openstack.org.Now,Cloud-inithandlestheIPaddressassignment.ButwhataboutthehostnamedRMSEandthebootlist?Thisisreallyanimportantpointhere.Cloud-inithandlestheIPaddressassignment.ThisisthewaythatthisnewlydeployedVMtakesonanetworkidentitythat'sdifferentthantheidentitythatwasinthecapturedVM.That'sreallyimportantbecauseyoudon'twantduplicateIPaddresses.Thenthere'stheissueofhostname.There'stheissueofensuringthatRMCisreadytogoandalsothebootlistissetupright.Let'sstartwiththehostname.Itcanbemanagedafterdeploymentifyouwant,manuallyorbyusingsomeothermechanismlikesay,Ansible.ButCloud-inithasoptionsactually.IthastheoptiontosetthehostnametotheVMnamegiveninPowerVC,ortotheresolutionoftheIPaddress,theprimaryIPaddressisassigned.Now,theDNSresolutionsettingisagoodoption,andI'veuseditalotoftimes,butyouwanttokeeponethinginmind.ThismostlikelywillresultinthehostnameandtheVMnamebeingdifferentandthatmightnotbewhatyouwant.TheRMCsetting,RMCiscriticaltothepropermanagementofaVMinPowerVM.We'vebeenoverthatanumberoftimesinanumberofdifferentvideos.It'shighlyrecommended.BackI'dsayit'snearlymandatorythatyouenableresetRMC.Finally,updatingbootlistisagoodideasothatthetemporaryVirtualopticaldevicethatCloud-initconfigdriveprocessingisbasedonisremovedfromthebootlist.We'llcloseupherewiththis.TheCloud-initlogscontainmanygooddebuglogentriesfromtheCloud-initprocessing,andtheyalsocontainsomePythonstacksifCloud-initfails.NowtheCloud-initfileloglocationsaredifferentdependinguponthedistributionbeingused.ForrelevantUbuntu,itmightbenecessarytoedittheloggingconfigurationfoundnotedinthegraphicandchangethelevelfromwarningtodebugtogetlogentrieswrittentovar/log/messages.LikeIsaidearlier,I'mgoingtokeepgoing.Socatchyourbreath,it'stimetoswitchgearsnowanddiscussCloud-initinstallationandconfigurationonAIX.First,it'skeytosayCloud-initisfullysupportedonAIX,andunderstanditsgenesiswasonLinux.Thatmakessense.It'sbeenportedandfullysupportedonAIX.WiththeAIX7No.1,TLS3P5,andAX6TL9SP5,soolderversions.There'sanewdeviceattributeorthere'sadeviceattributeonSYS0calledCloudDev.Nowifyou'reanAIXguy,youunderstandthisstuff.Ifyou'renot,youmightrollwithmeandmaybereferencebacktothislaterifyougetintoquestionsaboutCloudDevandgostep,theroleofCloudDevistoreplacetheGhostDevattribute,whichwasusedinthepasttoresetODMcustomizationswhenaVirtualMachinewasbootedonanotherhostorwithadifferentLPRID.Inotherwords,youwe'recloning.WhenanewversionofAIXthatsupportsCloudDev,whichismostlikelygoingtobewhatyou'reworkingon.Whenyou'reusingoneofthose,therecommendationthat'ssetCloudDevtooneandGhostDevtozero.TheCloudDevattributeisautomaticallyresettozerobyCloud-inittoensurethattheODMisnotresetonsubsequentboots.Sokeepallofthatinmind.Maybereferencebacktothatlater.TheCloud-initinstallationonAIX,now,it'salittlebitmorecomplexthanwhatwesawonLinux.Itrequiresthegatheringandinstallationofprerequisites.Inthisgraphic,youseethattoenablePythonandAIX,remember,wesaidCloud-initiswritteninPython.Youneedtoinstalltheseprerequisites.Makenoteofthislist,pausethescreen,makenotesomeway,doascreencaptureorwhatever,andthenaccessthosepackagesplacingtheminadirectorythat'saccessibletotheVMtobecaptured.ThenyouinstallthePythonpackagesyouseeinthegraphic.Ifyouhavetoinstallthosepythonprerequisitesaheadoftimeordrawfromthem.Nowthere'sreallynogoodwaytopresentthisotherthantojustshowyouthepackages.Havealook.Thosearethethingsyouneed.Now,thisgraphtoillustratethehighlevelprocessforinstallingCloud-initontoanAIXVirtualMachinebeforecapturing.NoticethatyouwillhavetogetaninstallYUM.Youdon'thaveto,butthat'sthewaytodothis.GettinginstallYUMonAIXifyoudon'talreadyhaveitthere.YoucaninstallYUMfromtheAIXtoolbox.Thismakestheinstallationreallystraightforward.SimplyrunYUMinstallCloud-init.It'sverymuchlikeLinux.ThenextstepistoconfiguretheCloudconfigfile.ThisgraphicshowsthemodificationsonanAIXoperatingsystem.Nowthesearevery,verysimilartowhatwecoveredintheLinuxsection.BacktothesethostnamefromDNSmodulethatallowsyoutogetyourVirtualMachineshostnamebyusingthehosthostnamevaluethatyou'veconfiguredinyourDNSserver.Ifit'snotused,thehostnamethendefaultstothenamespecifiedinPowerVC.LikeImentionedwithLinux,resetRMC,it'sautomaticallysetsothatRMCisgoingtobehandledright.ThatwrapsupthelessononinstallingCloudconfig,andthatwasalottotakein.Soyoumightwanttotakeaquickbreakhere,andthenwe'llcontinueonwiththelessononcapturinganimagefromaVM.探索我們的目錄免費加入並獲得個性化推薦、更新和優惠。

開始 CourseraFooter開拓職業生涯或促進職業發展Google數據分析師Google項目管理GoogleUX設計GoogleIT支持IBM數據科學IBM數據分析師使用Excel和R的IBM數據分析IBMCybersecurityAnalystIBM數據工程IBM全棧雲開發人員Facebook社交媒體營銷Facebook市場營銷分析Salesforce銷售發展代表Salesforce銷售運營直覺簿記備考GoogleCloud認證:雲架構師備考GoogleCloud認證:雲數據工程師開啟您的職業生涯準備證書開拓職業生涯瀏覽熱門主題免費課程學習語言pythonJava網頁設計SQLCursosGratisMicrosoftExcel項目管理網絡安全人力資源數據科學免費課程說英語內容寫作全棧網絡開發人工智能C語言程序設計溝通技能區塊鏈查看全部課程熱門課程和文章適用於數據科學團隊的技能數據驅動的決策軟件工程技能工程團隊所需的軟技能管理技能營銷技能銷售團隊所需的技能產品經理技能財務技能英國的熱門數據科學課程BeliebteTechnologiekurseinDeutschland熱門網絡安全證書熱門IT證書熱門SQL證書營銷經理職業指南項目經理職業指南Python程序設計技能Web開發者職業指南數據分析師技能用戶體驗設計師方面的技能在線獲得學位或證書MasterTrack®證書專業證書大學證書MBA和商學學位DataScienceDegreesComputerScienceDegrees數據分析師學位公共衛生學位社會科學學位管理學位歐洲頂級大學學位碩士學位學士學位具有成績錄取途徑的學位學士學位課程什麼是學士學位?取得碩士學位需要多長時間?在線獲取MBA有什麼價值?報名研究生院的7種付費方式查看所有證書Coursera關於我們提供的內容管理團隊工作機會目錄CourseraPlus專業證書MasterTrack®證書學位企業版政府版面向校園成為合作夥伴新冠疫情響應社區學生合作夥伴開發者Beta測試人員專業譯員博客技術博客教學中心更多媒體投資者條款隱私幫助內容訪問聯繫我們文章目錄附屬公司ModernSlaveryStatement隨時隨地學習©2022CourseraInc.保留所有權利。



請為這篇文章評分?