




版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認領(lǐng)
文檔簡介
1、Ubuntu13.04安裝 Grizzly 版 OpenStack1.計劃Control NodeethO (10,0,0.2), ethl (32)MetworkNodeethd (), ethl (191168.1.233)Compute ModeetiiO ()r ethl (192.1S8.1.234)I.Control Node1.1 前期準備1.1.1 Ubuntu系統(tǒng)準備切換用戶sudosu增加Grizzly源5 pt -get install -y ubunt u -cloud -keyringecho deb http:/
2、ubuntu-precise-updates/grizzly main » /etc/apt/sources.list.d/grizzly.list升級系統(tǒng):apt -get updateapt -get upgradeapt-get diet-upgrade1.1.2網(wǎng)絡(luò)設(shè)置編輯/etc/network/interfaces#For Exposing OpenStack API over the int erne!auto eth0i-face ethQinet st at£caddress 32netmask gatewa
3、y dns -nameservers 8.8. 8.8#Nct internet connected (used -for OpenSt ack management) auto ethl i-Face ethlinet static address 10.0. 0.2 netmask 設(shè)置好后重啟網(wǎng)絡(luò):service networking restartUbuntul3.04桌面版不要用上面的命令重啟網(wǎng)絡(luò),不然金書死! 可以用ifdown和ifup來啟動和停止網(wǎng)卡安裝MySQL:apt-駝士 install -y tnysql -server
4、python-mysqldb配置并重啟MySQL,sed -i 's//0. 0. 0.3/g' /etc/mysql/my. cn-Fser vice ql r o I ar L創(chuàng)建表;mysql -u root -p# KeystoneCREATE DATABASE keystone;6FWNT ALL ON keystone.* TO ' keystoneUser IDENTIFIED BY "keystonePass#GlanceCREATE DATABASE glance;GRANT ALL ON glance.* TO 1glan
5、ceUser1 IDENTIFIED BY 'glancePass1;#QLarrtumCREATE DATABASE quantum;GRANT ALL ON quantum.* TO 1 quantumUserIDENTIFIED BY ' quantumPass 1;#HcvaCREATE DATABASE nova;GRNT ALL ON nova. * TO 'novaUser'%' IDENTIFIED BY ' novaPass ,;*CinderCREATE DATABASE cinder;GR/iNT ALL ON cinder
6、.* TO 1 cinderUser '0'X* IDENTIFIED ET 1 cinder Pass 1;quM;安裝 RabbltMQ:apt -get install -y rabbitmq-server安裝NTP:apt -get install -y ntp配置NTP:#Com me nt the ubuntu NTP serverssed -i 's/server 0. ubuntu, pool, /tserver 0./g, /etc/ntp.Gonf53 -i 's/server 1. ubu
7、ntu, pool, /fserver /g, /etc/ntp.confsed -i ls/server 2. ubuntu.pool, 'server 2./g1 /et c/ntp.conf sed -i *s/serven 3. ubuntu.pool. ,;serven B./g1/et c/ntp.conf#Set the network node to follow up your conroller node
8、sed -i gs/server nt p. 10.0. 0.2/g' /etc/ntp. conservice nt p restart1.1.4其他apt -get install -y ulan bridge -utils配 置/etc/sysctl.confsed -i 's/#net.ipv4.ip_-Forward=l/net.ipv4.ip_Forward=l/ 1 /etc/sysctl.con-F1.2 Keystone安裝并檢查狀態(tài):apt -get install -y keystoneservice keystone stat usetc/keys to
9、n e/key stone, conf 中的數(shù)據(jù)庫連接connection = mysql:/keystonells er: keystonePassiOlO. C.0. 2/kejstone重啟并同步數(shù)據(jù)庫:service keystone restartkeystone-nanage db_sync用下面兩個腳本去填充keystone數(shù)據(jù)庫,也就是溜加user, tunant, ro厄和 service 以及 service 的 endpointHodify the HOST_IP and HOST_IP_EXT variables before executing the scripts
10、xgethttps : /raw. github. com/m5eknibilel/OpenStack-<3rizzly-Inst all-Guide/OVS_SingLeNode/KeystoneScripts/keys tone_bas ic. sh*igethttps : /raw. github. com/mseknibilel/OpenStack-GrizzLy-Inst all-Guide/OVS_Sing leNode/KeystoneScripts/keystone_endpoints_basic.shchmod keys!one_bas ic.shchmod +x ke
11、ystone_endpoints_bas ic.sh /key st one-basic. sh./keystone_endpoint$_basic. sh修改 keystone_basic.sh 中的 HOSTJP 為自己的 EthO 的 IP, ADMIN_PASSWORD和SERVICE_PASSWORD可改可不詼BOST IP-ADMIN-PASSWORD-S ADMIS-FASSWORD: adalnS£RVICE_PASSWO?servicepessexport &RV工CE_TCKEN-export SERVICE二ENDPOIKT,.r : $
12、(HOST_TP) :SERVICE TEXMTT-NAME- 一二: 一:-service修改 keystone_endpoints_basic.sh 中的 HOSTJP 和 EXT_bOSTJP,同時將通妾 key或o ne數(shù)據(jù)庫的的用戶省和密碼進行修改:0ST_IP-10.0.O.2 XT_BO3I_IF-10YSQL-USER-keystoneysql2hcst-c :icsT_i r編輯文件creds* Paste the following:export OS_TE NAfiT_NAHE =adminexport OS_USERRAHE=admin expor
13、t OS_PASS10RD-admin_pas sexport OS.AUTH.URL htt p: /32:5000/v2.0/H引入環(huán)蟠量中;source creds或者可以直接加入root (cat creds»/root/.bashrc)的環(huán)境變量,這樣重啟后就無需再次引入了查看創(chuàng)建的userkeystone user-list同樣有命令 keystone tenant-list 和 keystone role-list1.3 Glance安裝并查看狀態(tài):apt -get install -y glanceservice glance-api statu
14、sservice glance-registry statusjlgfc/etc/glance/gl ance-api-paste.ini0/etc/gl ance/glance-r egistry-paste.ini注;紅色為必須要修改(核對)的地方,建議把提到的這幾項都核對一下:Filtersauthtokenp aste. flit er_fact ory = keystoneclient, middleware. auth_toKen;filter_factorydelay_auth_decision - trueauth_host = auth_port , 3535
15、7auth_protocol = httpadmin_tenant_nanie = serviceadmin_user = glanceadmin_pa$sword - service_pass編輯/etc/glance/glance-api.conf n/etc/glance/glance-registry.conft修改數(shù)據(jù)庫連接:sql_connection = mysql:/glanceUser:glancePass/glance并且在paste_deploy下力口上 flavor = keystonepaste_deployflavor = keystone重啟服務(wù)s
16、ervice glance-api restart; service glance-registry restart同步數(shù)據(jù)摩;glance-manage db_sync再次重啟服務(wù)service glance-registry restart; service glance-api restart上傳鏡像測試glance的安裝情況:glance image-create -name myFirstlmage -is-public true -container-format bare -disk-format qcow2 -locationhttps: /launchpad. net/cir
17、ros/trunk/0.3. QAdownload/cirros -0.3.0-x86_64-disk img查看鏡像:glance image-list1.4 Quantum安裝 quantum-server:apt -get install -y quantum-server編輯。vs插件配置文件/etc/quantijm/plugins/openvswitch/ovs_quantum_plugin.ini#Under the database sectionDATABASE sql_conrection = mysql: /quantumllser :quarrtumPass10.0.
18、0.2/quant urn#Under the OVS sectionOVSt enant _net work_t ype = gretunnel_id_ranges 1:1000enable_tunneling = True編輯 /etc/quantum/api-paste.iniFilterzauthtokenpaste, -flit er_factory - keystoneclie nt. middle war e.auth_token:filter_Factoryauth_host = auth_port = 35357 auth_prot ocol = http ad nin-t en ant -nam e = service adBin.user = quanturn dnin-pas suord = service_pass編輯 /etc/quantijrTi/quanturn.confkeys tone_authto kenuth_hnct = 10.0.0.?auth_port 35357auth_prot ocol = httpadnin_tenant_nanie - serviceadain-user = quantumadBin_passuord = £ervice_pass$ igning_dir = /var/lib/
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責。
- 6. 下載文件中如有侵權(quán)或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 課題申報立項書怎么寫
- 課題結(jié)題申報書范文
- 籃球課題申報書
- 產(chǎn)權(quán)保護合同范本
- 法醫(yī)類的課題申報書
- 教學課題項目申報書樣板
- 合同范本搜索平臺
- 五金標準件合同范本
- 德育研究課題申報書模板
- 醫(yī)院廚房外包合同范本
- 山東省義務(wù)教育地方課程安全教育課程實施指導(dǎo)意見
- DL-T 736-2021 農(nóng)村電網(wǎng)剩余電流動作保護器安裝運行規(guī)程
- SB/T 10439-2007醬腌菜
- GB/T 33644-2017數(shù)控板料折彎機精度
- GB/T 32434-2015塑料管材和管件燃氣和給水輸配系統(tǒng)用聚乙烯(PE)管材及管件的熱熔對接程序
- GB/T 17888.3-2020機械安全接近機械的固定設(shè)施第3部分:樓梯、階梯和護欄
- 產(chǎn)品質(zhì)量承諾及保障措施-產(chǎn)品質(zhì)量承諾
- 高考語文文化常識之天文歷法課件
- 長短樁組合樁基礎(chǔ)的分析
- 《英語閱讀4》課程教案(下)
- 金壇區(qū)蘇科版二年級心理健康教育第1課《我喜歡我自己》課件(定稿)
評論
0/150
提交評論