practical! ! Openstack one-click deployment steps

1. Environmental requirements

CentOS 7.6 system
CPU: dual-core dual-threaded/virtualization enabled
memory: 4G
hard disk: 30G+300G
network card: NAT mode
option: (press the Tab key on the installation interface to enter the interface editing, enter the content behind) net.ifnames=0 biosdevname= 0 (can be modified to eth0 network card when created)
Insert picture description here

Two, environment configuration

1. Configure static address and host name

vi /etc/sysconfig/network-scripts/ifcfg-eth0
......
BOOTPROTO=static
ONBOOT=yes
IPADDR=192.168.200.50
NETMASK=255.255.255.0
GATEWAY=192.168.200.2
DNS1=192.168.200.2
DNS2=8.8.8.8

#在/etc/resolv.conf中添加:
vi /etc/resolv.conf
nameserver 114.114.114.114
#重启网卡
systmectl restart network

Insert picture description here

2. Turn off (set not to start after booting) firewall, core protection, NetworkManager

systemctl stop firewalld
systemctl disable firewalld
systemctl stop NetworkManager
setenforce 0

3. Install the time synchronization service, synchronize the Alibaba Cloud clock server (ntp1, ntp2...), set up periodic tasks, and set up automatic startup

yum install -y ntpdate
ntpdate ntp.aliyun.com >>/var/log/ntpdate.log
crontab -e
....

4. Configure yum source

[root@openstack ~]# cd /etc/yum.repos.d/
[root@openstack yum.repos.d]# mkdir bak
[root@openstack yum.repos.d]# mv C* bak/
[root@openstack yum.repos.d]# curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
[root@openstack yum.repos.d]# yum -y install centos-release-openstack-train
[root@openstack yum.repos.d]# yum clean all
[root@openstack yum.repos.d]# yum makecache (fast)		#()部分可选择添加

5. Restart and view service status

reboot

6. Download the OpenStack management toolkit and deploy OpenStack online

yum -y install openstack-packstack
packstack --allinone

 **** Installation completed successfully ******

Additional information:
 * Parameter CONFIG_NEUTRON_L2_AGENT: You have chosen OVN Neutron backend. Note that this backend does not support the VPNaaS or FWaaS services. Geneve will be used as the encapsulation method for tenant networks
 * A new answerfile was created in: /root/packstack-answers-20201018-191715.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 192.168.226.150. To use the command line tools you need to source the file.
 * To access the OpenStack Dashboard browse to http://192.168.226.150/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/20201018-191715-BH2Wcy/openstack-setup.log
 * The generated manifests are available at: /var/tmp/packstack/20201018-191715-BH2Wcy/manifests

#创建br-ex网卡配置文件

cd /etc/sysconfig/network-scripts/
cp ifcfg-eth0 ifcfg-br-ex
sed -i "100d" ifcfg-br-ex
cat <<EOF >> ifcfg-br-ex
TYPE=Ethernet
BOOTPROTO=none
NAME=br-ex
DEVICE=br-ex
ONBOOT=yes
IPADDR=172.24.4.1
PREFIX=24
EOF

systemctl restart network

#ifconfig 查看

7. View user information

cd /root && cat keystonerc_admin

8. Web page login

Block device mapping —> Incubation —>

#Upload mirroring, two ways The
first one-command line

openstack image create "cirros"   --file cirros-0.3.5-x86_64-disk.img  --disk-format qcow2 --container-format bare  --public

The second type-console
# The first type is recommended

Guess you like

Origin blog.csdn.net/Gengchenchen/article/details/114376083