![成果openstack安裝部署版vlanv_第1頁](http://file4.renrendoc.com/view/5b54b2e0addbd5057879948b952f8e80/5b54b2e0addbd5057879948b952f8e801.gif)
![成果openstack安裝部署版vlanv_第2頁](http://file4.renrendoc.com/view/5b54b2e0addbd5057879948b952f8e80/5b54b2e0addbd5057879948b952f8e802.gif)
![成果openstack安裝部署版vlanv_第3頁](http://file4.renrendoc.com/view/5b54b2e0addbd5057879948b952f8e80/5b54b2e0addbd5057879948b952f8e803.gif)
![成果openstack安裝部署版vlanv_第4頁](http://file4.renrendoc.com/view/5b54b2e0addbd5057879948b952f8e80/5b54b2e0addbd5057879948b952f8e804.gif)
![成果openstack安裝部署版vlanv_第5頁](http://file4.renrendoc.com/view/5b54b2e0addbd5057879948b952f8e80/5b54b2e0addbd5057879948b952f8e805.gif)
下載本文檔
版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領
文檔簡介
Openstack安裝編寫人部門名:審核人:審核時1安裝介 安裝模 準備系 安裝UBUNTU 設置網 控制節(jié)點安 安 安裝RabbitMQ、Memcache、KVM、 計算節(jié)點安 安RIDGE和ISCSI相 設置 Openstack遷移部 各節(jié)點設 計算節(jié)點NFS配 計算節(jié)點libvirt配 參考及文 節(jié)點安裝的openstack版本為Openstack網絡模式為VLAN此次安裝支持虛擬機動態(tài)遷移,動態(tài)遷移選用的是共享方式(備注:Blocklivemigration方式IPEth0接Eth1網接口沒有IPEth0接Eth1網接口沒有IPEth0接Eth1網接口沒有IP安裝ubuntusshserver#apt-getupdate&&apt-get-ydist- IPIP 設置如下:autoifaceloinetloopbackautoeth0ifaceeth0inetstaticaddress4netmasknetworkgatewaydns-nameserversautoifaceeth1inetmanualupifconfigeth1upNTP#apt-get-yinstall方法一:編輯/etc/ntp.conf,在 serverfudgestratum#sed-i's/server \nserver\nfudgestratum10/g'/etc/ntp.confNTP#servicentp說明:上面設置server pute/starter/conten 安Openstack的網絡是通過linuxbridgeiptables安#apt-get-yinstallbridge-utilsdnsmasq-#apt-getinstall-yrabbitmq-servermemcachedpython-memcachekvmlibvirt-bin你可以根據(jù)你的實際情況修改admin的和mysql的。下面文檔和數(shù)據(jù)庫相關的都是相同,你只需要修改novarc就可以。此次安裝用的統(tǒng)一為password。運行完下面令生成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ù)庫。所以我們需要創(chuàng)建相關的數(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,允許網絡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進行認證和租戶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是提供鏡像管理服務,可以理解成一個中間件,后面的可以是本地,也可以使用。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官網提供,登陸用戶名為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設 #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說明:建此的目的為了重啟服務方便,不創(chuàng)建單獨運行命令也可以,在這個中控制節(jié) pute計算服務沒有啟動.#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運行下面命令,vlanFIXIP#nova-managenetworkcreate--label=vlan104--fixed_range_v4=/24----bridge=br104-- 說明:FIXIP,就是分配給虛擬機的實際IPvlan號、網橋名稱、FIXIPID(tenant\project)。指定的VLAN號在連接的交換機上必須真floating運行下面命令$FLOATING_RANGENovac據(jù)IP和掩碼,例如:28/28#nova-managefloatingcreate--類似,做一個。實際上是通過iptables來實現(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)點都需要安裝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"安裝計算節(jié)點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計算節(jié)點至少是需要安裝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)系上傳者。文件的所有權益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網頁內容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經權益所有人同意不得將文件中的內容挪作商業(yè)或盈利用途。
- 5. 人人文庫網僅提供信息存儲空間,僅對用戶上傳內容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
- 6. 下載文件中如有侵權或不適當內容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 現(xiàn)代辦公環(huán)境的網絡安全培訓
- 未來學習模式基于網絡教育平臺的思考
- 現(xiàn)代辦公空間中的綠色環(huán)保用品設計思考
- 2024年四年級品德與社會上冊 第三單元 生活在這里真好 第11課《我家來了新鄰居》說課稿 粵教版001
- 2024-2025學年高中物理 第十二章 機械波 4 波的衍射和干涉說課稿4 新人教版選修3-4001
- Module 1 Unit 1 She's a nice teacher(說課稿)-2023-2024學年外研版(三起)英語四年級下冊
- 2023九年級化學上冊 第一章 大家都來學化學1.2 化學實驗室之旅說課稿(新版)粵教版001
- 2025農村養(yǎng)殖場場地租地合同
- 2025國際專利技術許可合同模板版
- Unit 5 Nature and Culture(說課稿)2023-2024學年人教新起點版英語六年級下冊
- 電動汽車用驅動電機系統(tǒng)-編制說明
- 江蘇卷2024年高三3月份模擬考試化學試題含解析
- (正式版)JTT 1497-2024 公路橋梁塔柱施工平臺及通道安全技術要求
- 2024年四川省成都市新都區(qū)中考英語一診試卷(含解析)
- 醫(yī)療器械物價收費申請流程
- 招聘專員轉正述職報告
- “一帶一路”背景下的西安市文化旅游外宣翻譯研究-基于生態(tài)翻譯學理論
- 2024年江蘇省昆山市六校中考聯(lián)考(一模)化學試題
- 大學生文學常識知識競賽考試題庫500題(含答案)
- 國家電網智能化規(guī)劃總報告
- 邢臺市橋西區(qū)2024年事業(yè)單位考試《公共基礎知識》全真模擬試題含解析
評論
0/150
提交評論