首先确保物理机能正常联网,可以通过ping www.baidu.com 进行测试更改hostnamehostnamectl set-hostname ‘名称’配置host文件vi /etc/hosts添加 IP hostname我们将源换为阿里云yum install -y net-tools wgetcurl -o /etc/yum.repos.d/Centos-7.repo http://mirrors.aliyun.com/repo/Centos-7.repocurl -o /etc/yum.repos.d/epel-7.repo http://mirrors.aliyun.com/repo/epel-7.repo 安装openstack stein版本vi /etc/yum.repos.d/openstack-stein.repo[stein]name=openstack steinbaseurl=https://mirrors.aliyun.com/centos/7/cloud/x86_64/openstack-stein/failovermethod=priorityenabled=1gpgcheck=0 更新系统软件yum clean all && yum makecache设置环境变量: vi /etc/environment添加内容:LANG=en_US.utf-8LC_ALL=en_US.utf-81 禁用各种安全机制systemctl stop firewalld systemctl disable firewalldsystemctl stop NetworkManagersystemctl disable NetworkManagervim /etc/selinux/config修改SELINUX= permissivesetenforce 0 getenforce 设置回购vi /etc/yum.repos.d/CentOS-Base.repo[cloud]name=CentOS-$releasever -Cloudbaseurl=http://mirror.centos.org/centos/$releasever/cloud/$basearch/openstack-stein/gpgcheck=0enabled=1 [virt]name=CentOS-$releasever - Virtbaseurl=http://mirror.centos.org/centos/$releasever/virt/$basearch/kvm-common/gpgcheck=0enabled=1 进行安装yum install -y openstack-packstack 回退lrman rpm包版本yum downgrade leatherman packstack --allinone # 持续一小时左右,会报错,报错之后服务器部署好了,但还不能访问面板# 我们需要使用报错生成的应答文件再次安装packstack --answer-file packstack-answers-这里的时间随你的安装时间而变化.txt 通过cat keystonerc_admin 获取用户名和密码,浏览器使用 IP/dashboard 参考文档:OpenStack:01---通过packstack在CentOS7上安装OpenStack(不限版本)_运维_TriAlley的博客-CSDN博客