cd /etc/yum.repos.d/ #备份 cp -a CentOS-OpenStack-stein.repo CentOS-OpenStack-stein.repo.bak #修改配置文件 vim CentOS-OpenStack-stein.repo [centos-openstack-stein] baseurl=http://mirrors.aliyun.com/$contentdir/$releasever/cloud/$basearch/openstack-stein/ #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=cloud-openstack-stein ... #清除本地yum索引缓存,然后再重建索引缓存 yum clean all && yum makecache
15.安装packstack工具
1
yum -y install openstack-packstack
16.安装OpenStack allinone
1
packstack --allinone
自动化安装时间很长,静静等待,直到出现如下信息,表示成功安装。
1 2 3 4 5 6 7 8 9 10 11
**** Installation completed successfully ******
Additional information: * Parameter CONFIG_NEUTRON_L2_AGENT: You have choosen OVN neutron backend. Note that this backend does not support LBaaS, VPNaaS or FWaaS services. Geneve will be used as encapsulation method for tenant networks * A new answerfile was created in: /root/packstack-answers-20220222-171022.txt * Time synchronization installation was skipped. Please note that unsynchronized time on server instances might be problem for some OpenStack components. * File /root/keystonerc_admin has been created on OpenStack client host 172.17.2.60. To use the command line tools you need to source the file. * To access the OpenStack Dashboard browse to http://172.17.2.60/dashboard . Please, find your login credentials stored in the keystonerc_admin in your home directory. * The installation log file is available at: /var/tmp/packstack/20220222-171021-YFXtB3/openstack-setup.log * The generated manifests are available at: /var/tmp/packstack/20220222-171021-YFXtB3/manifests