Openstack is a free and opensource IaaS cloud platform that handles cloud compute, storage and network resources. It comes with an intuitive dashboard that enables systems administrators to provide and monitor these resources.

Openstack是一个免费的开源IaaS云平台,可处理云计算,存储和网络资源。 它带有直观的仪表板,使系统管理员可以提供和监视这些资源。

You can seamlessly install OpenStack locally on your Ubuntu 18.04 instance for learning and testing purposes using Devstack.

您可以在Ubuntu 18.04实例上本地无缝安装OpenStack,以使用Devstack进行学习和测试。

Devstack is a set of extensible scripts that facilitate OpenStack deployment. In this guide, you will learn how to deploy OpenStack on Ubuntu 18.04 with devstack.

Devstack是一组有助于OpenStack部署的可扩展脚本。 在本指南中,您将学习如何使用devstack在Ubuntu 18.04上部署OpenStack。

最低要求 (Minimum Requirements)

Before we begin, ensure you have the following minimum prerequisites

在我们开始之前,请确保您具有以下最低先决条件

  1. A fresh Ubuntu 18.04 installation全新的Ubuntu 18.04安装
  2. User with sudo privileges具有sudo特权的用户
  3. 4 GB RAM4 GB内存
  4. 2 vCPUs2个vCPU
  5. Hard disk capacity of 10 GB硬盘容量10 GB
  6. Internet connection网络连接

With the minimum requirements satisfied, we can now proceed.

在满足最低要求的情况下,我们现在可以继续进行。

步骤1:更新和升级系统 (Step 1: Update and Upgrade the System)

To start off, log into your Ubuntu 18.04 system using SSH protocol and update & upgrade system repositories using the following command.

首先,使用SSH协议登录到Ubuntu 18.04系统,并使用以下命令更新和升级系统存储库。

apt update -y && apt upgrade -y

Sample Output

样本输出

Next reboot the system using the command.

接下来,使用命令重新引导系统。

sudo reboot

OR

要么

init 6

步骤2:创建Stack用户并分配sudo权限 (Step 2: Create Stack user and assign sudo priviledge)

Best practice demands that devstack should be run as a regular user with sudo privileges.

最佳实践要求devstack应该以具有sudo特权的普通用户身份运行。

With that in mind, we are going to add a new user called “stack” and assign sudo privileges.

考虑到这一点,我们将添加一个名为“ stack”的新用户并分配sudo特权。

To create stack user execute

创建堆栈用户执行

sudo adduser -s /bin/bash -d /opt/stack -m stack

Next, run the command below to assign sudo privileges to the user

接下来,运行以下命令为用户分配sudo特权

echo "stack ALL=(ALL) NOPASSWD: ALL" | sudo tee /etc/sudoers.d/stack

Sample Output

样本输出

步骤3:安装git并下载DevStack (Step 3: Install git and download DevStack)

Once you have successfully created the user ‘stack’ and assigned sudo privileges, switch to the user using the command.

成功创建用户“堆栈”并分配sudo特权后,请使用以下命令切换到该用户。

su - stack

In most Ubuntu 18.04 systems, git comes already installed. If by any chance git is missing, install it by running the following command.

在大多数Ubuntu 18.04系统中,已经安装了git。 如果git丢失,请通过运行以下命令进行安装。

sudo apt install git -y

Sample output

样品输出

Using git, clone devstack’s git repository as shown.

如图所示,使用git克隆devstack的git仓库。

git clone https://git.openstack.org/openstack-dev/devstack

Sample output

样品输出

步骤4:创建devstack配置文件 (Step 4: Create devstack configuration file)

In this step, navigate to the devstack directory.

在此步骤中,导航到devstack目录。

cd devstack

Then create a local.conf configuration file.

然后创建一个local.conf配置文件。

vim local.conf

Paste the following content

粘贴以下内容

[[local|localrc]]# Password for KeyStone, Database, RabbitMQ and Service
ADMIN_PASSWORD=StrongAdminSecret
DATABASE_PASSWORD=$ADMIN_PASSWORD
RABBIT_PASSWORD=$ADMIN_PASSWORD
SERVICE_PASSWORD=$ADMIN_PASSWORD# Host IP - get your Server/VM IP address from ip addr command
HOST_IP=10.208.0.10

Save and exit the text editor.

保存并退出文本编辑器。

NOTE:

注意:

  1. The ADMIN_PASSWORD is the password that you will use to log in to the OpenStack login page. The default username is admin.ADMIN_PASSWORD是用于登录OpenStack登录页面的密码。 默认用户名是admin
  2. The HOST_IP is your system’s IP address that is obtained by running ifconfig or ip addr commands.HOST_IP是通过运行ifconfigip addr命令获得的系统IP地址。

步骤5:使用Devstack安装OpenStack (Step 5: Install OpenStack with Devstack)

To commence the installation of OpenStack on Ubuntu 18.04, run the script below contained in devstack directory.

要在Ubuntu 18.04上开始安装OpenStack,请运行devstack目录中包含的以下脚本。

./stack.sh

The following features will be installed:

将安装以下功能:

  • Horizon – OpenStack DashboardHorizo​​n – OpenStack仪表板
  • Nova – Compute ServiceNova –计算服务
  • Glance – Image Service概览–图片服务
  • Neutron – Network Service中子–网络服务
  • Keystone – Identity ServiceKeystone –身份服务
  • Cinder – Block Storage Service煤渣–块存储服务
  • Placement – Placement API展示位置–展示位置API

The deployment takes about 10 to 15 minutes depending on the speed of your system and internet connection. In our case, it took roughly 12 minutes.

部署大约需要10到15分钟,具体取决于您的系统和Internet连接的速度。 在我们的案例中,大约花费了12分钟。

At the very end, you should see output similar to what we have below.

最后,您应该看到类似于下面的输出。

This confirms that all went well and that we can proceed to access OpenStack via a web browser.

这确认一切正常,我们可以继续通过网络浏览器访问OpenStack。

步骤6:在网络浏览器上访问OpenStack (Step 6: Accessing OpenStack on a web browser)

To access OpenStack via a web browser browse your Ubuntu’s IP address as shown.

要通过Web浏览器访问OpenStack,请如图所示浏览Ubuntu的IP地址。

https://server-ip/dashboard

https://server-ip/dashboard

This directs you to a login page as shown.

如图所示,这会将您定向到登录页面。

Enter the credentials and hit “Sign In

输入凭据,然后点击“ 登录

You should be able to see the Management console dashboard as shown below.

您应该能够看到管理控制台仪表板,如下所示。

For more on Devstack’s customization, check out their system configuration guide.

有关Devstack定制的更多信息,请查看其系统配置指南 。

Additionally, check out the Openstack documentation for administration guide.

此外,请查看《 Openstack文档管理指南》。

翻译自: https://www.journaldev.com/30037/install-openstack-ubuntu-devstack

如何使用DevStack在Ubuntu 18.04上安装OpenStack相关推荐

  1. skype linux 安装,如何在Ubuntu 18.04上安装Skype

    Skype是世界上最流行的通信应用程序之一,它使您可以拨打免费的在线音频和视频电话,以及可负担得起的拨打全球移动电话和固定电话的国际电话. Skype不是开源应用程序,也不包含在Ubuntu存储库中. ...

  2. 在Ubuntu 18.04上安装和使用Tesseract 4

    量子指南 (QUANTRIUM GUIDES) Today, the extraction of information from scanned documents such as letters, ...

  3. ubuntu memcached php,如何在 Ubuntu 18.04 上安装 Memcached

    Memcached 是一个免费的开源高性能内存中键值数据存储. 它最常用于通过从数据库调用的结果缓存各种对象来加速应用程序. 在本教程中,我们将介绍在 Ubuntu 18.04 上安装和配置最新版 M ...

  4. ubuntu19 安装git_在Ubuntu 18.04上安装Git

    步骤1.首先,通过运行以下命令确保您的系统和apt包列表完全更新: apt-get update -y apt-get upgrade -y 第2步.在Ubuntu 18.04上安装Git. 现在让我 ...

  5. ubuntu18.04安装python3_如何在 Ubuntu 18.04上安装 Python3.7

    Python 是世界上最流行的编程语言之一,凭借其简单易学的语法,Python是初学者和经验丰富的开发人员的绝佳选择.随着近几年人工智能和大数据的火热,Python流行度更是进一步飙升,有冲顶编程语言 ...

  6. 如何在Ubuntu 18.04上安装Django

    Django是一个免费的开源高级Python Web框架,旨在帮助开发人员构建安全,可扩展和可维护的Web应用程序. 根据您的需要,有不同的方法来安装Django.它可以使用pip在系统范围内安装或在 ...

  7. webmin安装_如何在Ubuntu 18.04上安装Webmin

    webmin安装 Are you averse to running commands on a terminal and instead prefer managing your Linux sys ...

  8. 如何在Ubuntu 18.04上安装/卸载NodeJS

    NodeJS is a JavaScript framework that allows you to build fast network applications with ease. In th ...

  9. 在Ubuntu 18.04上安装Nginx

    NGINX pronounced as engine-x is an open source and popular HTTP server and can be configured to act ...

最新文章

  1. 11.3 人工合成数据-机器学习笔记-斯坦福吴恩达教授
  2. 学习鸟哥的Linux私房菜笔记(4)——文件
  3. C里面的scanf那个功能在matlab中实现
  4. 谈判如何在博弈中获得更多_读后感--《谈判--如何在博弈中获得更多》
  5. S/4HANA生产订单增强WORKORDER_UPDATE方法BEFORE_UPDATE参数分析 1
  6. 目标检测回归损失函数总结
  7. 在Oracle中查询表的大小、表的占用情况和表空间的大小
  8. linux fortran 大数组,fortran动态数组大小分配问题(allocatable)? - 程序语言 - 小木虫 - 学术 科研 互动社区...
  9. Spring源码的学习方法和知识地图
  10. Mendeley Destop引用格式自定义调整
  11. 一篇文章简单入门SpringCloud服务网关
  12. 搭建srs流媒体服务器
  13. 新版TCGA的突变SNP数据添加临床信息
  14. 115CSS3+JS:胶卷式放映
  15. odoo使用word中的MERGEFIELD合并域和python包mailmerge来生成word文档
  16. 接近开关编码器脉冲信号计数器NPN/PNP转485信号采集Modbus模块
  17. Rocketmq简介及部署、原理和使用介绍
  18. ue4导入倾斜摄影_一种高精度倾斜摄影建模方法与流程
  19. MySQL批量修改库、表、列的排序规则
  20. 蓝桥杯单片机-动态数码管

热门文章

  1. Time complexity analysis of algorithms
  2. android style 与theme的区别
  3. [转载] python中set怎么循环_Python Set集合操作
  4. [转载] 五、字符串类的实现及子串查找算法
  5. springboot 全局捕获异常
  6. 项目Beta冲刺Day4
  7. finally中关闭资源
  8. 性能强悍的开源关系数据库PostgreSQL
  9. item 12: 把重写函数声明为“override”的
  10. golang语言os.Stat()用法及功能