試驗(yàn)二自動(dòng)化安裝mitaka版本Openstack——計(jì)算節(jié)點(diǎn)的安裝及虛擬機(jī)的創(chuàng)建_第1頁(yè)
試驗(yàn)二自動(dòng)化安裝mitaka版本Openstack——計(jì)算節(jié)點(diǎn)的安裝及虛擬機(jī)的創(chuàng)建_第2頁(yè)
試驗(yàn)二自動(dòng)化安裝mitaka版本Openstack——計(jì)算節(jié)點(diǎn)的安裝及虛擬機(jī)的創(chuàng)建_第3頁(yè)
試驗(yàn)二自動(dòng)化安裝mitaka版本Openstack——計(jì)算節(jié)點(diǎn)的安裝及虛擬機(jī)的創(chuàng)建_第4頁(yè)
試驗(yàn)二自動(dòng)化安裝mitaka版本Openstack——計(jì)算節(jié)點(diǎn)的安裝及虛擬機(jī)的創(chuàng)建_第5頁(yè)
已閱讀5頁(yè),還剩11頁(yè)未讀 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡(jiǎn)介

1、實(shí)驗(yàn)二自動(dòng)化安裝部署OpenstacQ計(jì)算節(jié)點(diǎn)i將腳本文件從控制節(jié)點(diǎn)復(fù)制到計(jì)算節(jié)點(diǎn)- scp -rimf 11 - mI.s 力 na.WatThof ht *1 ISd. 1M.1H I L. 1U. IM. fa c*nt ba aatabliohadEB kr fingarprint is M:羯:&c上冷二函;“:力;弧;十】;如門(mén)由M:*由* TQU HUM yOU xMt tO- COAtifM* CWWCtlftJ腦 ywtrninq PrwnartlY x日F 1S2-L&S !LW W才 IKWE to W list of krtuwn hests. raotunigz 16

2、B 100.262,5 password:cfimf ig-k-eyiTCihe/51111K011.OK0/3依 r-Ahwm24KB23 6KB/Jr. sh1Q0V21KB10.7KB/SirHtAll_djishbeird.3i-i血30的3.GKB/Sirrat a1 1dine4. ah100%“MBU.90/Sirwtaill_hMt ah10G%11KBU.ZMBs10GVM-2K071AMM403 flKB/virkstal 1 neut ron_two sh17KB17-3KB/Sinrstall_nova sh10lUiJJ9.3HS/Sru tikd-bl ock_in

3、a til I shisnwie配 KB / 5rti taka - bl oc k=itfi tteih. shion47334.6KB/Sintake - coitput* r_ma tall. aJhim14KS13.aKS/SrL Tlklcrutftrr shwm4 6KB/1we%妁9】*.器8,等retain-op*nreh加3 4- tfiak imgi13HBli.dano-Qpvnrc . sht屯g而G.2KB/S26KB25 6KB/sjapzn3rt 醍幾1則MB曲 1MBT2配置 Openstack本地yum源有兩種方法,方法1直接將Openstack的源包導(dǎo)入計(jì)算

4、節(jié)點(diǎn),可以使用scp命令從控制節(jié)點(diǎn)將源包復(fù)制到計(jì)算節(jié)點(diǎn),或者使用xftp服務(wù)將源包從 windows上傳到計(jì)算節(jié)點(diǎn)方法2在控制節(jié)點(diǎn)安裝并啟動(dòng) ftp服務(wù),將openstack的源包放在ftp服務(wù)的根目錄下,然 后計(jì)算節(jié)點(diǎn)的 yum源配置成ftp方式y(tǒng)um源來(lái)獲取openstack安裝包。下面就是采用方法 2,優(yōu)點(diǎn)時(shí),控制節(jié)點(diǎn)的openstack源包可以多個(gè)節(jié)點(diǎn)共享,不用將源包拷貝到其他節(jié)點(diǎn)多次,節(jié)省時(shí)間和空間。但是首先要在控制節(jié)點(diǎn)安裝ftp服務(wù)器,需要centos的本地源包,所以需要修改yum源文件,另外建一個(gè)倉(cāng)庫(kù),存放centos系統(tǒng)源包。首先在控制節(jié)點(diǎn)上安裝 ftp服務(wù),需要導(dǎo)入 cent

5、os7系統(tǒng)源包,利用虛擬光驅(qū)加載centos鏡像文件,然后使用 mount命令掛載光驅(qū)文件到指定目錄,然后再用cp命令將掛載后的文件拷貝到另外一個(gè)指定目錄,yum源指向該目錄,這樣以免一旦光驅(qū)文件不加載,centos系統(tǒng)源找不到的情況出現(xiàn)。處歸北巡(O:靖二I如控制邪王胤道演樂(lè)性址心第,一更型: 容S大小:使用;分杷到;映學(xué)4.03 GBP : VliMinStbdcXiiltaka -mjra 1 Lanenitsk b 自 * eentcrs7_ 2-dt t Bka-c-ZintrOJ 1 er用戶界店礙定近消centos7.2-mitaka-controller 設(shè)首在/mnt 下建立

6、兩個(gè)目錄 c, centos,root Pm I takd ml t?ika_lnsta 11 -UL 號(hào).51RIrootPinl ml11 41.勺51 尊 mkd ir zwnt/c zMntzcentos將光驅(qū)centos鏡像包掛載到 /mnt/c目錄下ruutnltdkd mELdkaJii&Ui 11 -V1 9,5IrootOmiLlakA iwitka_inst4i 11-M1 fc9,5 口nt =。 uup drv/cdram為了防止總是加載光驅(qū),可以將/mnt/c目錄內(nèi)容拷貝到 /mnt/centos下,這樣yum拷貝到本地,比較穩(wěn)定。LruulWvii (akd mi

7、takA_iL L Ul .0L| -ar /miiixc /nm tzceTitu修改 yum 源 repo.repo 文件rootpcontrol1er yum.repos,d cat repo.repo repoJ narre=repobaseurl=flie:/opt/Mitaka-Centos7,2-043Q/ gpgcheck=Q enabled=lcentos7name=centos7ba3eurl= HYPERLINK file:/mnt/cent05 file:/mnt/cent05gpgcnecK=0 enabled=l rootpcontroller yum repos.

8、dl# |驗(yàn)證yum源的變化,發(fā)現(xiàn)多了 centos7這個(gè)倉(cāng)庫(kù)roct(controller yum, repos.djf yum repolistLoached pllugins: fastestwirror langpacksLoadinig mirraspeeds f rcww cached hostfile re pc idrepo naiwstatuscentos?cntos73r 723raperepoS94rspoliati 4r4U_ rOCTficontroller yum. repos.d)# j然后在控制節(jié)點(diǎn)開(kāi)始安裝即服務(wù)root(acontroHer j(um. rep

9、os, d# yum install u5ftpcILoaded plugins ; fastestmirrorlangpacksLoading mirror speeds irom cached hostfileResolving DependenciesRunning transaction check Package vsftpd X06 64 6t3.0.2-lD.el7 will be installedInstall 1 PackageTotal download size: 16? k Installed sire: 347 k li this ok /d/N! y Pqwnl

10、Hding packages t Running tidns*ctior)chick Runnirg transaction test Transaction test succeeded Running transactionInstalling ! vsf tpd-3 . Q. 3-1917. kS6_64J/IVerifying : vsf tpd-3. 0.2-10 elT.icSB1/1Installd:3ftpd.X06 &4 313.G 2-10.*1?Complttt! roDtffcontroller apt* |設(shè)置ftp的根目錄Wtien listen* directiv

11、e is enabled, vsftpd runs in standalone mode andlistens on IPv4 sockets. This d:i rective cannot be us ad in conj unctionwith the 1istenipwfi directive, listeniHO*This directive enables li?teiu.ng on IPv6 sockets. By default, listeningon the IPv6 any 3ddrw與與 f:JU xill accept connections from both IP

12、6“ and iPg clients, It 口 net neceiaary to listen on both * IP4 and IPvSsockets. If /ou ant that (perlips because you /白nt to listen on spetific # addresses) then you must run two copies of vsftpd with two configuration # files.Hake sure, that ona of the listen options 15 ccnmented ! listen_ipvS=YESp

13、am_service_name75ftpdsarlistcnabXaVES tcp_wrappers=ES jinon- rc a t=/opt|-INStKI -重啟即服務(wù)器root(icontroller opt# service vs+tpd restart Redirecting to /bin/systamctl restart vsftpd.service設(shè)置ftp服務(wù)器開(kāi)機(jī)自動(dòng)啟動(dòng)rcwtcontroller cpt4 chkccnfiq v51tpeI onNotei Forwarding request to systeinctl enable vsltpd.service.

14、Created 箏 ymlinit from /etc/systtiiid/syMein/nijltiiJ5er . target, wants/nsf tfKl. service to /usr/l ib/s steind/systwn/vsftpd.service(rootcontroller opt J# |計(jì)算節(jié)點(diǎn)yum源的配置j cwnputcir mitaJkamhao-curlrcltfcr-.Qlacall naBBHtacAlIM IM. Wl/Mlttka Cvt7 2 OW gpgch4ck=o/ftte/yun. d/repo. rfe0*- GL, 94C開(kāi)始在計(jì)算節(jié)

15、點(diǎn)執(zhí)行 openstack安裝腳本,rootconputer fiita*cecinstall -1,9.5 ts etc lib main.shroot9conputtr Hitakft.instaUVl.S,51* tush ivain.-shli Instill CortrpUflr Hod# S#rviaInstall Computer Node Service.Diitall BlockCircler j .0? Quitpl54 input on* nwnbr for install : 2L) Configure Sjsten Envirorrent.2) Zhstall Cod

16、jutar Service.5 Quitplawf input ons number for install :1 |輸入1配置系統(tǒng)環(huán)境,這一步耗時(shí)比較長(zhǎng),下圖是成功回顯* 2 mrtijk-3 -oonirdlier-nl Inui -policy -tar9at wl r nrch13.1-64. V7j3. 3i-i&Arch G; 3.2- 2S.el7ttfthtD3.3科yd-tliM,xM.M G: 13*4。_.17.工?SUdQi. KW.64 0S1. &p7 -17 . el7_2制款則通國(guó)迪:219-1?.*7_2 7Sjstand-libs. G 219-19.17_

17、2 7Sy 4tnd -沖 1tx NT九 *T7_2 7,Ejrstmd-sysv nf06_6 7teanc.D:l17-Gtunvd.nairch 0:25-l *.*17.2.3tulita. march 配 2tMmrutiV-llnUJi. sW 64。門(mén)鎮(zhèn)32部CofnpUt*begxn to reboot, system to enf口 1匚 kernel.輸入2安裝nova和neutron-agent服務(wù),需要手動(dòng)輸入computer節(jié)點(diǎn)的第二塊網(wǎng)卡名稱(chēng)用于走虛擬機(jī)流量,如圖所示root conipliter2 liber ty_i.nsta I 1 L. 6 = bash

18、(hb in. shInstall Controller Kode Service.Install Computer Sode Service,3J Install Block Node Service (Cinder).0) Suitplease input 0門(mén)已 nuttiber far in&taLl j 2CoEif Lnie Sj LCek Etiv iiohinit.Install Computer Service.0) Quitinput ons number for Tiffsll ;2please input the local host nt work interface

19、 name g: rt hS : etipOsSfl計(jì)算服務(wù)安裝成功回顯示;H1 corn puterm itaka* 2 mitaka ontrall er-.*I | b61e45II | fc6907f6-M1 n-|1| 05-42c4-b5a1 ta-11 | 3-5G34ecdf911 | Mb11 iLJI| Metadata| centrotter| agent|11L1111I11Tl Te電| netro1111netada1111aent1111_ aL $ JLJ- r 9-mm7Configurt Sstn Envirorwient21 InstiU Computer

20、 Service或 Quit inpvt on早 number fqr in手tall ;1在云平臺(tái)上創(chuàng)建虛擬機(jī)實(shí)例1登錄云平臺(tái),用戶名 demo ,密碼12345,默認(rèn)域defaultG Q 192J 隗 1KL2M -.他一二,KJt 心openstack際就dTj蝴E32創(chuàng)建云主機(jī)助醞主機(jī)HlHtOCt N *TQUHQv|Cowt .云力Lfi計(jì)(伯武卜10%*當(dāng)曲陽(yáng)I I P%(Q。面(占選擇鏡像源,如下圖二用帔云主8可以用己E云制DftR 卻IlMimMCHIMni8 事屏. Ldf情向 中th dEfiLN/nil陪為收洋也A4U 由強(qiáng)用C1M丈作nv圮 crra*加調(diào)1丁$醯PV1t47MaewoJI-* 一周口AA 4Q 宜看世變品才SW -A+fl*MS!,即 手一才選擇虛擬機(jī)的類(lèi)型創(chuàng)灌云手機(jī)Ba,:選擇虛擬機(jī)從哪個(gè)網(wǎng)絡(luò)啟動(dòng)的*9城W磁外計(jì)W卻有 E1 gk1413 M 自1 GAi 3ba-*町田。逸耀一Q行的11a過(guò)彳S*MMIMMms有 *1 tmti13GI葡國(guó)ae e*OGO+ rn1 vneduni2JIGS40 Gfl4CG go + ml Hw4g依10 QB時(shí)我。網(wǎng)i* 時(shí) 1 ilftnl-a1幀就ittoaUMWr-E-等嗜管錄云三幫祈計(jì) R懺用戶W有聆泡”

溫馨提示

  • 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

評(píng)論

0/150

提交評(píng)論