OpenStack完整安装手册(CentOS6.2)_by_yz

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

OpenStack完整安装手册(CentOS6.2)TableofContents1实验环境2架构部署3控制节点安装o3.1前提工作o3.2NTP时钟服务安装o3.3MYSQL数据库服务安装o3.4RABBITMQ消息队列服务安装o3.5PYTHON-NOVACLIENT库安装o3.6KEYSTONE身份认证服务安装o3.7PYTHON-KEYSTONECLIENT库安装o3.8SWIFT对象存储服务安装o3.9GLANCE镜像存储服务安装o3.10NOVA计算服务安装o3.11HORIZON管理面板安装o3.12NOVNCWEB访问安装o3.13KEYSTONE身份认证服务配置o3.14GLANCE镜像存储服务配置o3.15建立GLANCE服务数据库o3.16NOVA计算服务配置o3.17SWIFT对象存储服务配置o3.18HORIZON管理面板配置o3.19NOVNCWEB访问配置4计算节点安装o4.1前提工作o4.2NTP时钟同步配置o4.3PYTHON-NOVACLIENT库安装o4.4GLANCE镜像存储服务安装o4.5NOVA计算服务安装o4.6NOVA计算服务配置1实验环境硬件:DELLR710(1台)|------+--------------------------------------------------------||CPU|Intel(R)Xeon(R)CPUE5620@2.40GHz*2||------+--------------------------------------------------------||MEM|48GB||------+--------------------------------------------------------||DISK|300GB||------+--------------------------------------------------------||NIC|BroadcomCorporationNetXtremeIIBCM5716GigabitEthernet*4||------+--------------------------------------------------------|DELLR410(1台)|------+--------------------------------------------------------||CPU|Intel(R)Xeon(R)CPUE5606@2.13GHz*2||------+--------------------------------------------------------||MEM|8GB||------+--------------------------------------------------------||DISK|1T*4||------+--------------------------------------------------------||NIC|BroadcomCorporationNetXtremeIIBCM5709GigabitEthernet*4||------+--------------------------------------------------------|系统:CentOS6.2x64Openstack版本:Essexrelease(2012.1)2架构部署配置信息|-------------------+---------------+-------------+-------------||Machine/Hostname|ExternalIP|InternalIP|Usedfor||-------------------+---------------+-------------+-------------||DELLR410/Control|60.12.206.105|192.168.1.2|ControlNode||DELLR710/Compute|60.12.206.99|192.168.1.3|ComputeNode||-------------------+---------------+-------------+-------------|实例网段为10.0.0.0/24,FloatingIP为60.12.206.110,实例网段桥接在内网网卡上,网络模式采用FlatDHCP控制节点/dev/sda为系统盘,/dev/sdb为nova-volume盘,/dev/sdc、/dev/sdd为swift存储用服务器系统安装1.CentOS6.2x64使用最小化安装方式2.服务器外网使用eth03.服务器内网使用eth14.所有服务均监听3控制节点安装3.1前提工作导入第三方软件源rpm-Uvh://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm安装依赖包yum-yinstallswiglibvirt-pythonlibvirtqemu-kvmpython-pipgccmakegcc-c++patchm4python-devellibxml2-devellibxslt-devellibgsasl-developenldap-develsqlite-developenssl-develwgettelnetgpxe-bootimgsgpxe-romsgpxe-roms-qemudmidecodegitscsi-target-utilskpartxsocatvconfigaoetoolsrpm-Uvh更新内核通过uname-r查看原内核版本,应如下:2.6.32-220.el6.x86_64yum-yinstallkernelkernel-develinit6通过uname-r查看更新后内核版本,应如下:2.6.32-220.7.1.el6.x86_643.2NTP时钟服务安装安装NTP时钟同步服务器yuminstall-yntp编辑/etc/ntp.conf,将文件内容替换为如下:restrictdefaultignorerestrict127.0.0.1restrict192.168.1.0mask255.255.255.0nomodifynotrapserverntp.api.bzserver127.127.1.0fudge127.127.1.0stratum10driftfile/var/lib/ntp/driftkeys/etc/ntp/keys重启ntp服务/etc/init.d/ntpdstart3.3MYSQL数据库服务安装安装MYSQL数据库服务yuminstall-ymysql-server更改MYSQL数据库服务监听内网网卡IPsed-i'/symbolic-links=0/abind-address=192.168.1.2'/etc/my.cnf启动MYSQL数据库服务/etc/init.d/mysqldstart设置MYSQL的root用户密码为openstackmysqladmin-urootpassword'openstack';history-c检测服务是否正常启动通过netstat-ltunp查看是否有tcp3306端口监听如果没有正常启动请查看/var/log/mysqld.log文件排错3.4RABBITMQ消息队列服务安装安装RABBITMQ消息队列服务yum-yinstallrabbitmq-server启动RABBITMQ消息队列服务/etc/init.d/rabbitmq-serverstart更改RABBITMQ消息队列服务guest用户默认密码为openstackrabbitmqctlchange_passwordguestopenstack3.5PYTHON-NOVACLIENT库安装下载源码包wget安装依赖包yum-yinstallpython-simplejsonpython-prettytablepython-argparsepython-nose1.1python-httplib2python-virtualenvMySQL-python解压并安装PYTHON-NOVACLIENT库cd/opttarxfpython-novaclient-2012.1.tar.gzcdpython-novaclient-2012.1pythonsetup.pyinstallrm-f../python-novaclient-2012.1.tar.gz3.6KEYSTONE身份认证服务安装下载源码包wget安装依赖包yuminstall-ypython-eventletpython-greenletpython-pastepython-passlibpipinstallroutes==1.12.3lxml==2.3pam==0.1.4passlibsqlalchemy-migrate==0.7.2PasteDeploy==1.5.0SQLAlchemy==0.7.3WebOb==1.0.8解压并安装KEYSTONE身份认证服务cd/opttarxfkeystone-2012.1.tar.gzcdkeystone-2012.1pythonsetup.pyinstallrm-f../keystone-2012.1.tar.gz3.7PYTHON-KEYSTONECLIENT库安装下载源码包wget解压并安装PYTHON-KEYSTONECLIENT库cd/opttarxfpython-keystoneclient-2012.1.tar.gzcdpython-keystoneclient-2012.1pythonsetup.pyinstallrm-f../python-keystoneclient-2012.1.tar.gz3.8SWIFT对象存储服务安装下载源码包wget安装依赖包pipinstallconfigobj==4.7.1netifaces==0.6解压并安装SWIFT对象存储服务cd/opttarxfswift-1.4.8.tar.gzcdswift-1.4.8pythonsetup.pyinstallrm-f../swift-1.4.8.tar.gz3.9GLANCE镜像存储服务安装下载源码包wget

1 / 160
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功