RDO一体化部署OpenStack

RDO一体化部署OpenStack

环境准备

安装centos7

[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-J785hZvT-1677578418769)(C:\Users\HONOR\AppData\Roaming\Typora\typora-user-images\image-20230228171254675.png)]

使用vmware安装安装centos7(安装时最好选择nat网络进行安装)

配置网络文件

配置网络文件

vi /etc/sysconfig/network-scripts/ifcfg-ens33

更改为:(将ONBOOT改为ONBOOT=“yes”)

TYPE="Ethernet"
PROXY_METHOD="none"
BROWSER_ONLY="no"
BOOTPROTO="dhcp"
DEFROUTE="yes"
IPV4_FAILURE_FATAL="no"
IPV6INIT="yes"
IPV6_AUTOCONF="yes"
IPV6_DEFROUTE="yes"
IPV6_FAILURE_FATAL="no"
IPV6_ADDR_GEN_MODE="stable-privacy"
NAME="ens33"
UUID="96d58a37-970d-4459-b854-beedac528cb7"
DEVICE="ens33"
ONBOOT="yes"

保存退出并且重启网卡:

service network restart

RDO一体化部署OpenStack_第1张图片

更改主机名:

hostnamectl set-hostname controller

验证主机名:

hostname

配置域名解析:

vi /etc/hosts

将服务器IP地址和主句名添加到/etc/hosts文件

关闭防火墙和SELinux:

# 临时关闭防火墙
systemctl stop firewalld
# 永久关闭防火墙
systemctl disable firewalld
# 查看SELinux状态
getenforce sestatus /usr/sbin/sestatus -v
# 关闭SELinux
vim /etc/selinux/config #SELINUX=enforcing 改成 SELINUX=disabled
# 查看NetworkManager和network状态
systemctl status NetworkManager和
systemctl status network
# 停止禁用NetworkManager
systemctl stop NetworkManager
systemctl disable NetworkManager
# 启用启动network
systemctl enable network
systemctl restart network

更新系统

yum update -y

下载所需的软件库

下载openstack-packstack及其依赖包

yum install -y centos-release-openstack-queens

下载安装个i命令

yum install -y yum-utils

安装openstack-packstack及其依赖包

packstack --allinone

启用Open Stack Queens资源库

yum-config-manager --enable centos-openstack-queens

进入源文件夹

cd /etc/yum.repos.d/

下载源文件

curl -O https://trunk.rdoproject.org/centos7/delorean-deps.repo
curl -O https://trunk.rdoproject.org/centos7/current-passed-ci/delorean.repo

升级软件包

yum update -y

下载所需要的软件和依赖库

yum install -y openstack-packstack

Packstack部署OpenStack

packstack --allinone

如果出现报错在后卖面接受上报错log

packstack --answer-file=

查看账号密码

cat ./keystonerc_admin 

Packstack部署OpenStack

packstack --allinone

如果出现报错在后卖面接受上报错log

packstack --answer-file=

查看账号密码

cat ./keystonerc_admin 

你可能感兴趣的:(openstack,linux,centos)