資源描述:
《Openstack部署手冊》由會(huì)員上傳分享,免費(fèi)在線閱讀,更多相關(guān)內(nèi)容在教育資源-天天文庫。
1、目錄一、服務(wù)器配置2二、組件安裝3三、數(shù)據(jù)庫安裝配置4四、Keystone配置4五、glance配置7六、nova配置8七、dashboard配置11八、鏡像制作11附件一:配置文件11附件二:安裝錯(cuò)誤處理18一、服務(wù)器配置1、下載ubuntu12.04.服務(wù)器版本。地址:http://releases.ubuntu.com//precise/ubuntu-12.04-beta2-server-amd64.iso2、安裝OS操作系統(tǒng)最小化安裝,只需要安裝sshserver,其他組件不需要。操作系統(tǒng)安裝好需要更新源里的包、系統(tǒng)。確保裝
2、的是最新版本的包。命令如下:apt-getupdateapt-getupgrade注:更新時(shí)網(wǎng)絡(luò)代理配置如下:root@ubuntu:/opt#cat/etc/apt/apt.confAcquire::http::Proxy"http://133.64.81.236:8080/";3、root權(quán)限zhang@ubuntu:~$sudopasswd[sudo]passwordforzhang:EnternewUNIXpassword:RetypenewUNIXpassword:passwd:passwordupdatedsuccess
3、fully4、網(wǎng)絡(luò)配置root@ubuntu:/opt#cat/etc/network/interfaces#Thisfiledescribesthenetworkinterfacesavailableonyoursystem#andhowtoactivatethem.Formoreinformation,seeinterfaces(5).#Theloopbacknetworkinterfaceautoloifaceloinetloopback#Theprimarynetworkinterfaceautoeth0ifaceeth0i
4、netstaticaddress133.64.96.26netmask255.255.255.128network133.64.96.0broadcast133.64.96.127gateway133.64.96.1#dns-*optionsareimplementedbytheresolvconfpackage,ifinstalleddns-nameservers133.64.96.1autoeth1ifaceeth1inetstaticaddress192.168.3.130netmask255.255.255.128netwo
5、rk192.168.3.128broadcast192.168.3.255二、組件安裝1、bridge配置使用apt-get安裝如下:apt-getinstallbridge-utils/etc/init.d/networkingrestart2、NTP配置apt-getinstallntp編輯/etc/ntp.conf在末尾添加下面3行serverntp.ubuntu.comiburstserver127.127.1.0fudge127.127.1.0stratum10重啟服務(wù)servicentprestart3、iscsi配置a
6、pt-getinstalltgt/etc/init.d/tgtstartapt-getinstallopen-iscsiopen-iscsi-utils4、rabbitmq配置apt-getinstallrabbitmq-servermemcachedpython-memcacheapt-getinstallkvmlibvirt-bin三、數(shù)據(jù)庫安裝配置1、安裝數(shù)據(jù)庫apt-getinstallmysql-serverpython-mysqldb編輯/etc/mysql/my.cnf,允許網(wǎng)絡(luò)訪問mysql#bind-address
7、=127.0.0.1bind-address=0.0.0.0重啟mysql服務(wù)/etc/init.d/mysqlrestart2、創(chuàng)建相關(guān)數(shù)據(jù)庫mysql-uroot-p123456CREATEDATABASEnova;GRANTALLPRIVILEGESONnova.*TO'nova'@'%'IDENTIFIEDBY'123456';CREATEDATABASEglance;GRANTALLPRIVILEGESONglance.*TO'glance'@'%'IDENTIFIEDBY'123456';CREATEDATABASEke
8、ystone;GRANTALLPRIVILEGESONkeystone.*TO'keystone'@'%'IDENTIFIEDBY'123456';quit四、Keystone配置1、keystone的安裝apt-getinstall