OpenStack完整安装手册作者:yz联系方式:Mail:atkisc@gmail.comQQ:949587200日期:2012-4-6版本:Essex最终版目录实验环境...................................................................................................................3架构部署...................................................................................................................4服务器系统安装........................................................................................................5控制节点安装............................................................................................................6前提工作............................................................................................................6NTP时钟服务安装..............................................................................................6MYSQL数据库服务安装......................................................................................7RABBITMQ消息队列服务安装............................................................................7PYTHON-NOVACLIENT库安装..............................................................................7KEYSTONE身份认证服务安装..............................................................................8PYTHON-KEYSTONECLIENT库安装........................................................................8SWIFT对象存储服务安装....................................................................................8GLANCE镜像存储服务安装.................................................................................9NOVA计算服务安装...........................................................................................9HORIZON管理面板安装......................................................................................9NOVNCWEB访问安装........................................................................................9KEYSTONE身份认证服务配置............................................................................10GLANCE镜像存储服务配置...............................................................................18NOVA计算服务配置.........................................................................................29SWIFT对象存储服务配置..................................................................................52HORIZON管理面板配置....................................................................................68NOVNCWEB访问配置......................................................................................72计算节点安装..........................................................................................................78前提工作..........................................................................................................78NTP时钟同步配置............................................................................................78PYTHON-NOVACLIENT库安装............................................................................78GLANCE镜像存储服务安装...............................................................................79NOVA计算服务安装.........................................................................................79NOVA计算服务配置.........................................................................................80实验环境硬件:DELLR710(1台)CPU:Intel(R)Xeon(R)CPUE5620@2.40GHz*2内存:48GB硬盘:300GB网卡:BroadcomCorporationNetXtremeIIBCM5716GigabitEthernet*4DELLR410(1台)CPU:Intel(R)Xeon(R)CPUE5606@2.13GHz*2内存:8GB硬盘:1T*4网卡:BroadcomCorporationNetXtremeIIBCM5709GigabitEthernet*4系统:CentOS6.2x64Openstack版本:Essexrelease(2012.1)架构部署机器型号/主机名外网IP内网IP作用DELLR410/Control60.12.206.105192.168.1.2控制节点DELLR710/Compute60.12.206.99192.168.1.3计算节点实例网段为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.所有服务均监听0.0.0.0控制节点安装前提工作1.导入第三方软件源rpm-Uvh://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm2.安装依赖包yum-yinstallswiglibvirt-pythonlibvirtqemu-kvmpython-pipgccmakegcc-c++patchm4python-devellibxml2-devellibxslt-devellibgsasl-developenldap-develsqlite-developenssl-develwgettelnetgpxe-bootimgsgpxe-romsgpxe-roms-qemudmidecodegitscsi-target-utilskpartxsocatvconfigaoetoolsrpm-Uvh://veillard.com/libvirt/6.3/x86_64/dnsmasq-utils-2.48-6.el6.x86_64.rpmln-sv/usr/bin/pip-python/usr/bin/pipNTP时钟服务安装1.安装NTP时钟同步服务器yuminstall-yntp2.编辑/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/keys3.重启ntp服务/etc/init.d/ntpdstartMYSQL数据库服务安装1.安装MYSQL数据库服务yuminstall-ymysql-server2.更改MYSQL数据库服务监听内网网卡IPsed-i'/symbolic-links=0/abind-address=192.168.1.2'/etc/my.cnf3.启动MYSQL数据库服务/etc/init.d/mysqldstart4.设置MYSQL的root用户密码为openstackmysqladmin-urootpassword'openstack';history-c5.检测服务是否正常启动通过netstat-ltunp查看是否有tcp3306端口监听如果没有正常启动请查看/var/log/mysqld.log文件排错RABBITMQ消息队列服务安装1.安装RABBITMQ消息队列服务yum-yi