How into install OpenStack
OpenStack is a fantastic open source cloud computing platform that allows you to create your own scalable infrastructure-as-as-service (IAAS) solution.
This is a guide of how to install the OpenStack virtual cloud platform on the CentOS7 Operating system. It will work on Red Hat (RHEL), SUSE and Ubuntu. As CentOS7 is essentially the free version of Red Hat, it also works on Centos.
I will be using Centos 7 core which is the minimal installation of CentOS.
This guide will show you how to provision 3 OpenStack Hosts, install and build an OpenStack private cloud. It will also show you the basics of using OpenStack and the initial configuration tasks needed to get it working.
How to create your OpenStack Hosts (x3)
In this guide, I will be using Hyper-V to create the host.
How to create the Hosts in Hyper-V
As this isn’t a guide of how to use Hyper-V I will assume you know how to create a VM in Hyper-V. It is unlikely you would be looking into OpenStack if you were unsure how to provision a VM.
My Hosts have the following Configuration
- Host1, 4vCPU, 8GB RAM
- Host2, 8vCPU, 8GB RAM
- Host3, 8vCPU, 8GB RAM
All hosts have 50GB SSD System drives and host 2 and 3 have 500GB HDD storage each
This guide will focus on installing Host3 as the primary openstack node. In later blogs I will add host 1 and host 2 to the Openstack farm.
How to Install CentOS 7
Again, I will assume you already have experience of deploying your Operating System. However, if you need help please see this page on my website.
How to Install OpenStack on Linux
Preparing the Operating System
There are a number of changes that need to be made to prepare the hosts. You cannot simply install OpenStack it will fail.
First prep NetworkManager
systemctl stop postfix firewalld NetworkManager
systemctl disable postfix firewalld NetworkManager
systemctl mask NetworkManager
yum remove postfix NetworkManager NetworkManager-libnm
Next we need to configure SELINUX settings
navigate to the SELINUX= Section and change to disabled
Next install NTP
yum install ntpdate -y
Now add the repo for OpenStack
yum install https://www.rdoproject.org/repos/rdo-release.rpm
Next Install Openstack-Rocky
yum install -y centos-release-openstack-rocky -y
Now update Yum
yum -y update
Next Prepare packstack – This does puppet, ssh connections -builds openstack
yum install openstack–packstack
Once completed you need to Generate an answer file
(replace XXXXX with whatever you want to call your answer file)
Now we need to edit the answer file
You do this by
Locate the CONFIG_KEYSTONE_ADMIN_PW and change it to a password of your choice
Next choose your NTP server. I am using UK
Next Edit the MARIADB configuration
Locate CONFIG_MARIADB_PW and create your own password
Next Permit root logins
Permit root logins by uncommenting the hashtag
systemctl restart sshd
Now use packstack to build OpenStack
packstack –answer-file turbogeek-answer-file.conf
Puppet takes a long time to build Openstack.
Openstack is a vast product which has a huge amount options, this blog will show you how to set up an Openstack host which is the first step needed to create your own Cloud solution.
All your Openstack configuration files are stored in cat /root/keystonerc_admin