How To Install OpenStack On CentOS 8 With Packstack
How To Install OpenStack On CentOS 8 With Packstack
How To Install OpenStack On CentOS 8 With Packstack
Openstack is a free and open-source private cloud software through which we can manage compute, network
and storage resources of our data center with an ease using a single dashboard and via openstack cli commands.
In this article we will demonstrate on how to install Openstack on a CentOS 8 system with packstack. Packstack
is a command line utility which deploy different components of openstack using puppet modules.
Openstack deployment with packstack is generally used for POC (proof of concept) purpose, so it is not
recommended to use packstack for production deployment. Use TripleO method to deploy openstack in
production environment.
Hostname – openstack.example.com
IP – 192.168.1.8
Flat Network – 192.168.1.0/24
Let’s deep dive into the openstack installation steps,
Once the network-scripts package is installed then we can manage networking (ifcfg-* files) using
native network.service
Now let’s configure IP address in ifcfg-enp0s3 file and start network service
Save and exit the file and then start network service using following command,
or
Now installed all the available updates and reboot your system,
Once the system is available after the reboot, execute following dnf command to install packstack utility
Once the answer file is generated, edit the following parameters using vi editor,
..............
CONFIG_HEAT_INSTALL=y
CONFIG_PROVISION_DEMO=n
[email protected]
CONFIG_NEUTRON_OVN_BRIDGE_IFACES=br-ex:enp0s3
..............
Note: Default Tenant network type drive is set as “geneve” and default neutron type driver is set as
“geneve and flat”. If wish to change these default parameters, then update following lines in answer file. In this
demonstration i am not going to update these parameters.
CONFIG_NEUTRON_ML2_TYPE_DRIVERS=geneve,flat
CONFIG_NEUTRON_ML2_TENANT_NETWORK_TYPES=geneve
Run the following command to initiate the openstack deployment using answer file.
Deployment will take around 20 to 30 minutes depending on your system’s hardware and internet speed. Once it
is installed successfully, we will get the following:
Now verify whether IP from enp03 interface is assigned to bridge br-ex and also confirm whether interface
enp0s3 is added as a port in ovs-bridge.
Now add a subnet of your flat network to external network by running following neutron command.
Create a router by executing the following neutron command and set its gateway using external network
Create private network and attach a subnet to it. Run the following neutron command,
Now head back to horizon dashboard and verify the network topology
Perfect, above confirms that private and external network have been setup correctly along with the router.
One final step before creating a vm, update the default security group, add icmp and ssh ingress rules, click on
“Security Groups” under the network Tab, Click on Manage Rules and then click on “Add rule”
Similarly add rule for ssh
Click on Add
Now all the requirements for launching an openstack instance are fullfilled. Click on Compute Tab and then
Choose Instances option and click on “Launch Instance”
Now Choose IP or Click on + sign to get floating IP from external network and then associate it
Once IP is associated to the VM then floating IP will be displayed for under ‘IP Address‘ option, example is
shown below
Now try to access this demo_vm using the floating ip, use cirros as a user and ‘gocubsgo’ as password
Great, above output confirms that we can access our instance via floating ip. This concludes the article; I hope
this tutorial helps to deploy openstack on CentOS 8 system. Please don’t hesitate to share your feedback and
comments.