This is the 12th day of my participation in the August Challenge

Online to find a few one-key deployment scripts, installation process all kinds of problems, so no longer use script installation, such as time to write a. Scripts are limited by time and environment. For example, although both centos7 systems are used, your system environment may be different from that of the other party, so you cannot use scripts.

The following is our deployment of openstack in Linux system, all steps have been verified

Environment to prepare

The website requires at least 16GB of RAM, so my environment is:

System: centos7 and RHEL7 kernel: uname -a

First let’s change it to UTF-8 and make sure it’s Chinese.

LANG=en_US.utf-8
LC_ALL=en_US.utf-8
Copy the code

Centos system:

Turn off selinux: sed -i'/^SELINUX/s/enforcing/disabled/'/etc/selinux/config To disable the firewall, run the systemctl stop firewalld && systemctl commanddisableFirewalld Disable network management: systemctl stop NetworkManager && systemctldisableNetworkManager install yum install centos-release-openstack-stein -y yum update -yCopy the code

For RHEL:

$sudo yum update -y $sudo yum install -y centos-release-openstack-stein $sudo yum update -y $sudo yum update -y $sudo yum install -y centos-release-openstack-stein Install -y openstack-packstack install openStack0packStack $sudo packstack -- Allinone starts online installationCopy the code

Start installation:

yum install openstack-packstack -y packstack --allinone# # allinone mode
Copy the code

Packstack –gen-answer-file=## Generate the deployment configuration file packstack –answer-file= ## Select an answer file The installation parameter file is generated after the installation is complete, and you can edit the file into an answer file

If the compilation fails, simply delete the following files and reinstall

[root@localhost ~]# ls anaconda-ks. CFG cirros-0.4.0-x86_64-disk.img keystonerc_admin packstack-answers-20191213-171803.txt

The login user name and password are in the /root/keystonerc_admin file of the CentOS system.

Remark:

For installation parameters, refer to the following:

Github.com/redhat-open…

Packstack documents:

www.rdoproject.org/install/pac…

Wiki.openstack.org/wiki/Packst…

Summary: openstack installation is simple, the best way to learn is to follow through.