工
程
项
目
设
计
结
题
报
告
项目名称:
OpenStack 快速部署
项目负责人:
纪松江
项目成员:
王欢 陈姣 李俊城
2019 年 5 月制
摘 要
摘 要
云计算已成为 IT 业界出现频率最高的热门词语之一。短短几年间,云计算已
经从一个概念渐渐形成产品融入我们的日常生活中,让人不得不感慨这一波云计
算浪潮的来势凶猛。OpenStack 在过去一段时间以及可预测的未来一段时间,都会
是云计算领域和开源世界的热门话题,引起全球 IT 界的广泛关注。在 2012 年的
第四届中国云计算大会上,OpenStack 技术的分会场被观众挤爆,可见其火热程度。
这从一个侧面印证人们对云计算与 OpenStack 的热情。
云计算是一种计算模型,它将诸如运算能力、存储、网络和软件等资源抽象
成为服务,以便让用户通过互联网远程享用,付费的形式也如同传统公共服务设
施一样。因需而定、提供方便、动态改变和无限的虚拟化扩展能力是云计算的几
个重要特征,云计算的特点:超大规模、虚拟化、高可靠性、通用性、高可扩展
性、按需服务、极其廉价。
OpenStack 既是一个社区,也是一个项目和一个开源软件,提供开放源码软件,
建立公共和私有云,它提供了一个部署云的操作平台或工具集,其宗旨在于:帮
助组织运行为虚拟计算或存储服务的云,为公有云、私有云,也为大云、小云提
供可扩展的、灵活的云计算。OpenStack 开源项目由社区维护,包括 OpenStack 计
算(代号为 Nova),OpenStack 对象存储(代号为 Swift),并 OpenStack 镜像服
务(代号 Glance)的集合。OpenStack 提供了一个操作平台,或工具包,用于编排
云。
关键词:云计算、云主机、Vmware、Openstack
I
ABSTRACT
ABSTRACT
Cloud computing has become one of the most frequently used hot words in IT
industry. In just a few years, cloud computing has gradually formed products from a
concept into our daily life, people have to lament the ferocity of this wave of cloud
computing. OpenStack has been a hot topic in cloud computing and the open source
world for some time in the past and in the foreseeable future, which has attracted wide
attention from the global IT community. At the 4th China Cloud Computing Congress in
2012, OpenStack Technology Branch was crowded by the audience, which shows its hot
degree. This reflects people's enthusiasm for cloud computing and OpenStack from one
side.
Cloud computing is a computing model, which abstracts resources such as
computing power, storage, network and software into services, so that users can enjoy
them remotely through the Internet. The form of payment is the same as traditional
public service facilities. The characteristics of cloud computing are: super-large scale,
virtualization, high reliability, versatility, high scalability, on-demand service and
extremely cheap.
OpenStack is not only a community, but also a project and an open source software.
It provides open source software to build public and private clouds. It provides an
operating platform or toolset for deploying clouds. Its purpose is to help organizations
run clouds for virtual computing or storage services, to provide scalable and flexible
cloud computing for public and private clouds, as well as for big and small clouds.
OpenStack open source projects are maintained by the community, including OpenStack
Computing (code Nova), OpenStack Object Storage (code Swift), and OpenStack
Mirror Service (code Glance). OpenStack provides an operating platform, or toolkit, for
orchestrating clouds.
Keywords: cloud computing ; Cloud host; Vmware; OpenStack
II
目 录
目 录
第 1 章 绪论 .......................................................................................................................................... 1
1.1 研究背景 ................................................................................................................................ 1
1.2 研究意义 ................................................................................................................................ 1
1.3 国内外发展现状 .................................................................................................................... 1
1.4 研究内容 ................................................................................................................................ 2
第 2 章 OpenStack 关键技术综述 ........................................................................................................4
2.1 OpenStack 技术简介 ..............................................................................................................4
2.2 Openstack 核心项目 ..............................................................................................................4
第 3 章 开源平台 OpenStack................................................................................................................7
3.1 OpenStack 架构 ......................................................................................................................7
3.2 OpenStack 重要组件介绍 ......................................................................................................9
第 4 章 OpenStack 的搭建与部署 ......................................................................................................11
4.1 OpenStack 整体前期准备 ....................................................................................................11
4.2 安装 Vmware Workstation 12 ..............................................................................................11
4.3 Ubuntu 14.04 Server 的安装............................................................................................... 15
4.4 换源准备 .............................................................................................................................. 26
4.5 下载 DevStack...................................................................................................................... 28
4.6 创建专门的用户.................................................................................................................. 28
4.7 授权 ...................................................................................................................................... 29
4.8 创建文件 .............................................................................................................................. 30
4.9 运行脚本 .............................................................................................................................. 33
第 5 章 搭建 OpenStack 错误整理 .....................................................................................................37
5.1 整理错误并解决.................................................................................................................. 37
第 6 章 总结与展望............................................................................................................................ 41
参考文献 .............................................................................................................................................. 42
致谢 ...................................................................................................................................................... 43
III
第 1 章 绪论
第 1 章 绪论
1.1 研究背景
OpenStack 是一个由 NASA(美国国家航空航天局)和 Rackspace 合作研发并
发起的,以 Apache 许可证授权的自由软件和开放源代码项目。
1.2 研究意义
OpenStack 是一个开源的云计算管理平台项目,由几个主要的组件组合起来完
成具体工作。OpenStack 支持几乎所有类型的云环境,项目目标是提供实施简单、
可大规模扩展、丰富、标准统一的云计算管理平台。OpenStack 通过各种互补的服
务提供了基础设施即服务(IaaS)的解决方案,每个服务提供 API 以进行集成。
1.3 国内外发展现状
国内发展---增长迅速:
中国云计算市场与全球云计算市场有很大的距离,只相当于全球 900 亿美元
云计算市场的 3%。中国的云计算由政府主导,作为发展经济的龙头得到了高度的
重视,并会被应用到政府机构,教育机构,以及医疗,金融,和石化等传统行业。
作为中国云计算的先行者阿里云,Baidu 等公司在技术上和经营都取得了想当的成
功的经验。与此同时,大量的传统 IT 企业(联想,华为等)也利用了自身的优势
加入团队。
国外发展---覆盖面大:
云计算在全球范围来说市场规模其中 IaaS 和 SaaS 各自占用了 24.4%和 26.4%。
而开源云平台的部署中 OpenStack 就占到了一半以上。
1
电子科技大学成都学院工程项目设计结题报告
1.4 研究内容
根据如 1-1 OpenStack 的组件所示,根据原理我们准备自己的努力搭建一个快
速部署的 OpenStack 平台。
如图 1-1 所示,OpenStack 系统分为 7 个模块:分别是运算套件 Nova、对象储
存套件 Swift、区块储存套件 Cinder、网通套件 Quantum、身分识别套件 Keystone、
镜像檔管理套件 Glance 仪表板套件 Horizon,此图为 OpenStack 的架构图,简述了
套件之间是如何运作的。
1. 第一个模块:运算套件 Nova:Nova 套件主要提供部署与管理虚拟机器的
功能。工程师可利用 API 开发云端应用程序,而 IT 管理人员则可透过网页式的接
口查看或管理硬件资源运作的状况,并可重起、暂停、调整,甚至直接关闭虚拟
机器。
2. 第二个模块:对象储存套件 Swift:Swift 套件提供可扩展的分布式储存平
台,以防止单点故障的情况产生。使用者可透过 API 进行存取,可存放非结构化
的数据,像是图像、网页、网志等,并可作为应用程序数据备份、归档以及保留
之用。
2