付費(fèi)下載
下載本文檔
版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡介
Openstack安裝編寫人部門名:審核人:審核時(shí)1安裝介 安裝模 準(zhǔn)備系 安裝UBUNTU 設(shè)置網(wǎng) 控制節(jié)點(diǎn)安 安 安裝RabbitMQ、Memcache、KVM、 計(jì)算節(jié)點(diǎn)安 安RIDGE和ISCSI相 設(shè)置 Openstack遷移部 各節(jié)點(diǎn)設(shè) 計(jì)算節(jié)點(diǎn)NFS配 計(jì)算節(jié)點(diǎn)libvirt配 參考及文 節(jié)點(diǎn)安裝的openstack版本為Openstack網(wǎng)絡(luò)模式為VLAN此次安裝支持虛擬機(jī)動(dòng)態(tài)遷移,動(dòng)態(tài)遷移選用的是共享方式(備注:Blocklivemigration方式IPEth0接Eth1網(wǎng)接口沒有IPEth0接Eth1網(wǎng)接口沒有IPEth0接Eth1網(wǎng)接口沒有IP安裝ubuntusshserver#apt-getupdate&&apt-get-ydist- IPIP 設(shè)置如下:autoifaceloinetloopbackautoeth0ifaceeth0inetstaticaddress4netmasknetworkgatewaydns-nameserversautoifaceeth1inetmanualupifconfigeth1upNTP#apt-get-yinstall方法一:編輯/etc/ntp.conf,在 serverfudgestratum#sed-i's/server \nserver\nfudgestratum10/g'/etc/ntp.confNTP#servicentp說明:上面設(shè)置server pute/starter/conten 安Openstack的網(wǎng)絡(luò)是通過linuxbridgeiptables安#apt-get-yinstallbridge-utilsdnsmasq-#apt-getinstall-yrabbitmq-servermemcachedpython-memcachekvmlibvirt-bin你可以根據(jù)你的實(shí)際情況修改admin的和mysql的。下面文檔和數(shù)據(jù)庫相關(guān)的都是相同,你只需要修改novarc就可以。此次安裝用的統(tǒng)一為password。運(yùn)行完下面令生成novarc文#cat>/root/novarcexportOS_TENANT_NAME=adminexportOS_USERNAME=adminexportOS_PASSWORD=passwordexportMYSQL_PASS=passwordexportSERVICE_PASSWORD=passwordexportFIXED_RANGE=/24exportFLOATING_RANGE=$(/sbin/ifconfigeth0|awk'/inetaddr/{print$2}'|cut-f2-d":"|-F"."'{printexportOS_AUTH_URL="exportSERVICE_ENDPOINT="exportSERVICE_TOKEN=$(opensslrand-hexexportMASTER="$(/sbin/ifconfigeth0|awk'/inetaddr/{print$2}'|cut-f2-d":")"#catexportOS_TENANT_NAME=adminexportOS_USERNAME=adminexportOS_PASSWORD=passwordexportMYSQL_PASS=exportSERVICE_PASSWORD=passwordexportFIXED_RANGE=/28exportOS_AUTH_URL="exportSERVICE_ENDPOINT="exportSERVICE_TOKEN=d5d892e6de00a922f9fbexportMASTER="4"#source#echo"source在Openstack組件里,Nova,Keystone,Glance,都需要用到數(shù)據(jù)庫。所以我們需要?jiǎng)?chuàng)建相關(guān)的數(shù)據(jù)mysql安mysqlmysql-server-5.5mysql-server/root_passwordpassword$MYSQL_PASSmysql-server-5.5mysql-server/root_password_againpassword$MYSQL_PASSmysql-server-5.5mysql-server/start_on_bootbooleantrue #apt-getinstall-ymysql-serverpython-mysql配mysql f,允許網(wǎng)絡(luò)mysql = =#sed-i mysql#servicemysqlGRANTALLPRIVILEGESONnova.*TO'nova'@'%'IDENTIFIEDBY'$MYSQL_PASS';CREATEDATABASEglance;GRANTALLPRIVILEGESONglance.*TO'glance'@'%'IDENTIFIEDBYGRANTALLPRIVILEGESONkeystone.*TO'keystone'@'%'IDENTIFIEDBYGRANTALLPRIVILEGESON*.*TO'root'@'%'IDENTIFIEDBY'$MYSQL_PASS'WITHGRANTOPTION;FLUSHPRIVILEGES;特別說明:在以后的openstackBUG就是Keystone是Openstack的,所有的組件,都需要通過keystone進(jìn)行認(rèn)證和租戶keystone安#apt-getinstall-ykeystonepython-keystonepython-keystone配keystonetokenADMINnovarc采用連接,我們需要改成mysql#bind_host=public_port=admin_port=35357#admin_token=ADMINadmin_token=d5d892e6de00a922f9fb#connection=:////var/lib/keystone/keystone.dbconnection=mysql://keystone:password@4/keystone#sed-i-e"s/admin_token=ADMIN/admin_token=$SERVICE_TOKEN/g"#sed-i'/connection=.*/{s|#servicekeystoneKeystone#wgethttp:/ #mvkeystone_data.sh_.txtkeystone_data.sh#bash#echo#wgethttp:/ #mvendpoints.sh_.txtendpoints.sh#bashkeystone測#keystoneuser-list#keystonetenant-list#keystoneuser-list#keystonerole-listGlance是提供鏡像管理服務(wù),可以理解成一個(gè)中間件,后面的可以是本地,也可以使用。Glance安 Glance配編輯/etc/glance/glance-api-paste.ini,/etc/glance/glance-registry-paste.ini都是修改文檔最后3行#admin_tenant_name=%SERVICE_TENANT_NAME%#admin_user=%SERVICE_USER%#admin_password=%SERVICE_PASSWORD%admin_tenant_name=serviceadmin_user=glanceadmin_password=password s/%SERVICE_PASSWORD%/$SERVICE_PASSWORD/g;"/etc/glance/glance-api-paste.ini s/%SERVICE_PASSWORD%/$SERVICE_PASSWORD/g;"/etc/glance/glance-registry-paste.ini#sql_connection=:////var/lib/glance/glance.sql_connection=#sed-i'/sql_connection=.*/{s|編輯/etc/glance/glance-registry.conf和/etc/glance/glance-flavor=keystone#cat<<EOF>>/etc/glance/glance-api.confflavor=keystone#cat<<EOF>>/etc/glance/glance-registry.confflavor=keystoneglance#serviceglance-apirestart&&serviceglance-registryglance#glance-manageversion_control0#glance-managedb_syncSADeprecationWarning:useexistingisdeprecated.Useextend_existing.useexisting=True)glance#serviceglance-api serviceglance-registryGlance測Ubuntuimage#wget/precise/current/precise-server-cloudimg-amd64-#glanceaddname="Ubuntu12.04cloudimgamd64"is_public=truecontainer_format=ovf\disk_format=qcow2</root/precise-server-cloudimg-amd64-disk1.img說明:此image為ubuntu官網(wǎng)提供,登陸用戶名為ubuntu,為使用密鑰登陸,也可以自己#glancedebhttp /ubuntu/precisemainuniverserestrictedmultiversedeb-srchttp /ubuntu/precisemainuniverserestrictedmultiversedebhttp /ubuntu/precise-securityuniversemainmultiverserestricteddeb-srchttp /ubuntu/precise-securityuniversemainmultiverserestricteddebhttp /ubuntu/precise-updatesuniversemainmultiverserestricteddebhttp /ubuntu/precise-proposeduniversemainmultiverserestricteddeb-srchttp /ubuntu/precise-proposeduniversemainmultiverserestricteddebhttp /ubuntu/precise-backportsuniversemainmultiverserestricteddeb-srchttp /ubuntu/precise-backportsuniversemainmultiverserestricteddeb-srchttp /ubuntu/precise-updatesuniversemainmultiverserestrictedapt-getinstall-ynova-apinova- monnova-objectstorenova-schedulernova-volumenova-consoleauthnovncpython-novapython-novaclient\ pute-kvmnova-network編輯/etc/nova/api-paste.ini3#admin_tenant_name=%SERVICE_TENANT_NAME%#admin_user=%SERVICE_USER%#admin_password=%SERVICE_PASSWORD%admin_tenant_name=serviceadmin_user=novaadmin_password=password s/%SERVICE_PASSWORD%/$SERVICE_PASSWORD/g;"/etc/nova/api-paste.ini編輯/etc/nova/nova.conf文件cat>/etc/nova/nova.conf<<EOF########################################## ########################NOVNCnovncproxy_base_url=http://$MASTER:6080/vnc_auto.htmlroot_helper=sudonova-rootwrapcopyVLAN安裝,你需要吧libvirt_type=kvm改成bvirt_type=qemu。vlan#apt-getinstall#modprobe8021q#lsmod|grep8021q設(shè) #chown-Rnova:novacat>restart.sh<<EOFforainrabbitmq-serverlibvirt-binnova-networknova-cert\nova-apinova-objectstorenova-schedulernova-volume\novncnova-consoleauth;doservice"$a"stop;doneforainrabbitmq-serverlibvirt-binnova-networknova-cert\nova-apinova-objectstorenova-schedulernova-volume\novncnova-consoleauth;doservice"$a"start;done說明:建此的目的為了重啟服務(wù)方便,不創(chuàng)建單獨(dú)運(yùn)行命令也可以,在這個(gè)中控制節(jié) pute計(jì)算服務(wù)沒有啟動(dòng).#bash#nova-managedb2012-07-1918:43:34WARNINGnova.utils[-]/usr/lib/python2.7/dist-packages/sqlalchemy/pool.py:639:The'listeners'argumenttoPool(andcreate_engine())isdeprecated.Use
2012-07-1918:43:34WARNINGnova.utils[-]/usr/lib/python2.7/dist-packages/sqlalchemy/pool.py:145:SADeprecationWarning:Pool.add_listenerisdeprecated.Useevent.listen()2012-07-1918:43:34AUDITnova.db.sqlalchemy.fix_dns_s[-]ApplyingdatabasefixforEssexdns_sVLAN及Fix運(yùn)行下面命令,vlanFIXIP#nova-managenetworkcreate--label=vlan104--fixed_range_v4=/24----bridge=br104-- 說明:FIXIP,就是分配給虛擬機(jī)的實(shí)際IPvlan號、網(wǎng)橋名稱、FIXIPID(tenant\project)。指定的VLAN號在連接的交換機(jī)上必須真floating運(yùn)行下面命令$FLOATING_RANGENovac據(jù)IP和掩碼,例如:28/28#nova-managefloatingcreate--類似,做一個(gè)。實(shí)際上是通過iptables來實(shí)現(xiàn).nova#bash#nova-manageservicenovanovaimage-novafloating-ip-createnovaflavor-listnovasecgroup-add-ruledefaulttcp2222/0novasecgroup-add-ruledefaulticmp-1-/0novasecgroup-listnovasecgroup-list-rulesnovaboot--flavor2--key_nameoskey--imageea3ffba1-065e-483f-bfe2-c84184ee76beDashobard安novaDashobard測http://安裝地址IP4)點(diǎn)都需要安裝nova-api。安ridge和iscsi相#apt-get-yinstallopen-iscsiopen-iscsi-utilsbridge-#cat>/root/novarcexportexportMASTER="$(/sbin/ifconfigeth0|awk'/inetaddr/{print$2}'|cut-f2-d":")"exportCONTROLLER_IP=4exportMASTER=""#source#echo"source#apt-get-yinstall編輯/etc/ntp.confntp#UseUbuntu'sntpserverasafallback.server#sed-i-e" /server$CONTROLLER_IP/g"安裝計(jì)算節(jié)點(diǎn)debhttp /ubuntu/precisemainuniverserestrictedmultiversedeb-srchttp /ubuntu/precisemainuniverserestrictedmultiversedebhttp /ubuntu/precise-securityuniversemainmultiverserestricteddeb-srchttp /ubuntu/precise-securityuniversemainmultiverserestricteddebhttp /ubuntu/precise-updatesuniversemainmultiverserestricteddebhttp /ubuntu/precise-proposeduniversemainmultiverserestricteddeb-srchttp /ubuntu/precise-proposeduniversemainmultiverserestricteddebhttp /ubuntu/precise-backportsuniversemainmultiverserestricteddeb-srchttp /ubuntu/precise-backportsuniversemainmultiverserestricteddeb-srchttp /ubuntu/precise-updatesuniversemainmultiverserestricted計(jì)算節(jié)點(diǎn)至少是需要安裝nova-apinova-network pute#apt-getinstall-ynova-api pute\ python-novapython-novaclient\python-keystonepython-keystoneclient編輯/etc/nova/api-paste.ini3#admin_tenant_name=#admin_user=%SERVICE_USER%#admin_password=%SERVICE_PASSWORD%admin_tenant_name=serviceadmin_user=novaadmin_password=password編輯/etc/nova/nova.confvncvncserver_proxyclient_addressvncserver_listen######
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲(chǔ)空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 健美操的解答題目及答案
- 養(yǎng)老院老人生活設(shè)施改造升級制度
- 導(dǎo)數(shù)大題目思路及答案高一
- 門診入院檢查登記制度
- 銷售的獎(jiǎng)罰制度
- 造價(jià)人員的廉政自律制度
- 農(nóng)耕作品題目集及答案
- 編程框架選擇要點(diǎn)
- 基因與遺傳?。航】当O(jiān)測課件
- 教育百科知識(shí)內(nèi)訓(xùn)
- 2025年湖北煙草專賣局筆試試題及答案
- 2026年開工第一課復(fù)工復(fù)產(chǎn)安全專題培訓(xùn)
- 中西醫(yī)結(jié)合治療腫瘤的進(jìn)展
- 特殊人群(老人、兒童)安全護(hù)理要點(diǎn)
- 多維度解析黃河河源區(qū)徑流模擬與動(dòng)態(tài)演變
- 《煤礦安全規(guī)程(2025)》防治水部分解讀課件
- 2025至2030中國新癸酸縮水甘油酯行業(yè)項(xiàng)目調(diào)研及市場前景預(yù)測評估報(bào)告
- 2025年保安員職業(yè)技能考試筆試試題(100題)含答案
- 尾礦庫閉庫綜合治理工程項(xiàng)目可行性研究報(bào)告
- 員工自互檢培訓(xùn)
- 視頻網(wǎng)絡(luò)傳輸協(xié)議書
評論
0/150
提交評論