阿里云-云小站(无限量代金券发放中)
【腾讯云】云服务器、云数据库、COS、CDN、短信等热卖云产品特惠抢购

CentOS 6.5 x64bit 快速安装OpenStack

196次阅读
没有评论

共计 8390 个字符,预计需要花费 21 分钟才能阅读完成。

OpenStack 是一个美国国家航空航天局和 Rackspace 合作研发的,以 Apache 许可证授权,并且是一个自由软件和开放源代码项目。

OpenStack 是一个云平台管理的项目,它不是一个软件。这个项目由几个主要的组件组合起来完成一些具体的工作。

OpenStack 是一个旨在为公共及私有云的建设与管理提供软件的开源项目。它的社区拥有超过 130 家企业及 1350 位开发者,这些机构与个人都将 OpenStack 作为基础设施即服务(简称 IaaS)资源的通用前端。

OpenStack 项目的首要任务是简化云的部署过程并为其带来良好的可扩展性。本文希望通过提供必要的指导信息,帮助大家利用 OpenStack 前端来设置及管理自己的公共云或私有云。

OpenStack 是由 Rackspace 和 NASA 共同开发的云计算平台,帮助服务商和企业内部实现类似于 Amazon EC2 和 S3 的云基础架构服务 (Infrastructure as a Service, IaaS)。OpenStack 包含两个主要模块:Nova 和 Swift,前者是 NASA 开发的虚拟服务器部署和业务计算模块;后者是 Rackspace 开发的分布式云存储模块,两者可以一起用,也可以分开单独用。OpenStack 是开源项目,除了有 Rackspace 和 NASA 的大力支持外,后面还有包括 Dell、Citrix、Cisco、Canonical 这些重量级公司的贡献和支持,发展速度非常快,有取代另一个业界领先开源云平台 Eucalyptus 的态势。

在 Ubuntu 12.10 上安装部署 Openstack http://www.linuxidc.com/Linux/2013-08/88184.htm

Ubuntu 12.04 OpenStack Swift 单节点部署手册 http://www.linuxidc.com/Linux/2013-08/88182.htm

OpenStack 云计算快速入门教程 http://www.linuxidc.com/Linux/2013-08/88186.htm

企业部署 OpenStack:该做与不该做的事 http://www.linuxidc.com/Linux/2013-09/90428.htm

1.[root@localhost ~]# yum install -y http://rdo.Fedorapeople.org/openstack/openstack-grizzly/rdo-release-grizzly-1.noarch.rpm
Loaded plugins: fastestmirror, security
base                                                    | 3.7 kB    00:00   
base/primary_db                                          | 4.4 MB    00:05   
extras                                                  | 3.4 kB    00:00   
extras/primary_db                                        |  19 kB    00:00   
updates                                                  | 3.4 kB    00:00   
updates/primary_db                                      | 3.7 MB    00:03   
Setting up Install Process
rdo-release-grizzly-1.noarch.rpm                        | 7.1 kB    00:03   
Examining /var/tmp/yum-root-tkysSj/rdo-release-grizzly-1.noarch.rpm: rdo-release-grizzly-1.noarch
Marking /var/tmp/yum-root-tkysSj/rdo-release-grizzly-1.noarch.rpm to be installed
Resolving Dependencies
–> Running transaction check
—> Package rdo-release.noarch 0:grizzly-1 will be installed
–> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package        Arch      Version        Repository                        Size
================================================================================
Installing:
 rdo-release    noarch    grizzly-1      /rdo-release-grizzly-1.noarch    3.2 k

Transaction Summary
================================================================================
Install      1 Package(s)

Total size: 3.2 k
Installed size: 3.2 k
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : rdo-release-grizzly-1.noarch                                1/1
  Verifying  : rdo-release-grizzly-1.noarch                                1/1

Installed:
  rdo-release.noarch 0:grizzly-1                                             

Complete!

2.[root@localhost ~]# yum install -y openstack-packstack

Loaded plugins: fastestmirror, security
Determining fastest mirrors
 * base: mirrors.163.com
 * extras: mirrors.163.com
 * updates: mirrors.163.com
openstack-grizzly                                        | 2.9 kB    00:00   
openstack-grizzly/primary_db                            | 992 kB    00:02   
Setting up Install Process
Resolving Dependencies
–> Running transaction check
—> Package openstack-packstack.noarch 0:2013.1.1-0.31.dev696.el6 will be installed
–> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package            Arch  Version                    Repository        Size
================================================================================
Installing:
 openstack-packstack noarch 2013.1.1-0.31.dev696.el6    openstack-grizzly 605 k

Transaction Summary
================================================================================
Install      1 Package(s)

Total download size: 605 k
Installed size: 1.9 M
Downloading Packages:
openstack-packstack-2013.1.1-0.31.dev696.el6.noarch.rpm  | 605 kB    00:01   
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : openstack-packstack-2013.1.1-0.31.dev696.el6.noarch          1/1
  Verifying  : openstack-packstack-2013.1.1-0.31.dev696.el6.noarch          1/1

Installed:
  openstack-packstack.noarch 0:2013.1.1-0.31.dev696.el6                       

Complete!

3.[root@localhost ~]# packstack –allinone

Welcome to Installer setup utility
Packstack changed given value  to required value /root/.ssh/id_rsa.pub

Installing:
Clean Up…                                            [DONE]
Setting up ssh keys…root@192.168.200.180’s password:
                                [DONE]
Adding pre install manifest entries…                [DONE]
Adding MySQL manifest entries…                      [DONE]
Adding QPID manifest entries…                        [DONE]
Adding Keystone manifest entries…                    [DONE]
Adding Glance Keystone manifest entries…            [DONE]
Adding Glance manifest entries…                      [DONE]
Adding Cinder Keystone manifest entries…            [DONE]
Installing dependencies for Cinder…                  [DONE]
Checking if the Cinder server has a cinder-volumes vg…[DONE]
Adding Cinder manifest entries…                      [DONE]
Adding Nova API manifest entries…                    [DONE]
Adding Nova Keystone manifest entries…              [DONE]
Adding Nova Cert manifest entries…                  [DONE]
Adding Nova Conductor manifest entries…              [DONE]
Adding Nova Compute manifest entries…                [DONE]
Adding Nova Scheduler manifest entries…              [DONE]
Adding Nova VNC Proxy manifest entries…              [DONE]
Adding Nova Common manifest entries…                [DONE]
Adding Openstack Network-related Nova manifest entries…[DONE]
Adding Quantum API manifest entries…                [DONE]
Adding Quantum Keystone manifest entries…            [DONE]
Adding Quantum L3 manifest entries…                  [DONE]
Adding Quantum L2 Agent manifest entries…            [DONE]
Adding Quantum DHCP Agent manifest entries…          [DONE]
Adding Quantum Metadata Agent manifest entries…      [DONE]
Adding OpenStack Client manifest entries…            [DONE]
Adding Horizon manifest entries…                    [DONE]
Adding Swift Keystone manifest entries…              [DONE]
Adding Swift builder manifest entries…              [DONE]
Adding Swift proxy manifest entries…                [DONE]
Adding Swift storage manifest entries…              [DONE]
Adding Swift common manifest entries…                [DONE]
Adding Provisioning manifest entries…                [DONE]
Preparing servers…                                  [DONE]
Adding Nagios server manifest entries…              [DONE]
Adding Nagios host manifest entries…                [DONE]
Adding post install manifest entries…                [DONE]
Installing Dependencies…                            [DONE]
Copying Puppet modules and manifests…                [DONE]
Applying Puppet manifests…
Applying 192.168.200.180_prescript.pp
192.168.200.180_prescript.pp :                                      [DONE]
Applying 192.168.200.180_mysql.pp
Applying 192.168.200.180_qpid.pp
192.168.200.180_mysql.pp :                                          [DONE]
192.168.200.180_qpid.pp :                                            [DONE]
Applying 192.168.200.180_keystone.pp
Applying 192.168.200.180_glance.pp
Applying 192.168.200.180_cinder.pp
192.168.200.180_keystone.pp :                                        [DONE]
192.168.200.180_glance.pp :                                          [DONE]
192.168.200.180_cinder.pp :                                          [DONE]
Applying 192.168.200.180_api_nova.pp
192.168.200.180_api_nova.pp :                                        [DONE]
Applying 192.168.200.180_nova.pp
192.168.200.180_nova.pp :                                            [DONE]
Applying 192.168.200.180_quantum.pp
192.168.200.180_quantum.pp :                                        [DONE]
Applying 192.168.200.180_osclient.pp
Applying 192.168.200.180_horizon.pp
192.168.200.180_osclient.pp :                                        [DONE]
192.168.200.180_horizon.pp :                                        [DONE]
Applying 192.168.200.180_ring_swift.pp
192.168.200.180_ring_swift.pp :                                      [DONE]
Applying 192.168.200.180_swift.pp
Applying 192.168.200.180_provision.pp
Applying 192.168.200.180_nagios.pp
Applying 192.168.200.180_nagios_nrpe.pp
192.168.200.180_swift.pp :                                          [DONE]
192.168.200.180_provision.pp :                                      [DONE]
192.168.200.180_nagios.pp :                                          [DONE]
192.168.200.180_nagios_nrpe.pp :                                    [DONE]
Applying 192.168.200.180_postscript.pp
192.168.200.180_postscript.pp :                                      [DONE]
                          [DONE]
Finalizing…                                          [DONE]

 **** Installation completed successfully ******

Additional information:
 * A new answerfile was created in: /root/packstack-answers-20140626-162910.txt
 * Time synchronization installation was skipped. Please note that unsynchronized time on server instances might be problem for some OpenStack components.
 * To use the command line tools you need to source the file /root/keystonerc_admin created on 192.168.200.180
 * To use the console, browse to http://192.168.200.180/dashboard
 * To use Nagios, browse to http://192.168.200.180/nagios username : nagiosadmin, password : 0e2abdb9d2914cce
 * The RDO kernel that includes network namespace (netns) support has been installed on host 192.168.200.180.
 * The installation log file is available at: /var/tmp/packstack/20140626-162910-yqzZnu/openstack-setup.log

更多 CentOS 相关信息见 CentOS 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=14

正文完
星哥玩云-微信公众号
post-qrcode
 0
星锅
版权声明:本站原创文章,由 星锅 于2022-01-20发表,共计8390字。
转载说明:除特殊说明外本站文章皆由CC-4.0协议发布,转载请注明出处。
【腾讯云】推广者专属福利,新客户无门槛领取总价值高达2860元代金券,每种代金券限量500张,先到先得。
阿里云-最新活动爆款每日限量供应
评论(没有评论)
验证码
【腾讯云】云服务器、云数据库、COS、CDN、短信等云产品特惠热卖中