您好,欢迎访问三七文档
当前位置:首页 > 商业/管理/HR > 销售管理 > OpenStack完整安装手册(CentOS6.2) by yz
OpenStack完整安装手册(CentOS6.2)TableofContents1实验环境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.2x64Openstack版本: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
本文标题:OpenStack完整安装手册(CentOS6.2) by yz
链接地址:https://www.777doc.com/doc-4962699 .html