Sitemap

Openstack Installation on AWS (Packstack)

2 min readAug 16, 2022

--

This guide will walk you through the installation of OpenStack in CentOS 7 on AWS using packstack.

Step 1: Log in to your AWS account and create an EC2 instance with the following configuration.

  1. AMI - CentOS 7 (x86_64)
  2. Instance Type - t2.xlarge
  3. Instance Configuration - Default
  4. Storage - 55GB or more
  5. Tags - [Name: My CentOS Server] (You can skip this if you want).
  6. Security Group - All traffic
  7. Keypair - Create a new keypair or Proceed with the existing one.

Step 2: Connect to your VM using WinSCP and copy the following 3 files to VM.

File#1- https://drive.google.com/file/d/1yJic7aVBKEWuZSxDvslRZOiuu70-DaAd/view?usp=sharing

File#2- https://drive.google.com/file/d/1iQKT5M4LduQxHjZPZlqydI2A7Z0bFicy/view?usp=sharing

File#3- https://drive.google.com/file/d/15cKJFDij4Ecp1J1q5UeVbEEEYz8yT82U/view?usp=sharing

Step 3: Connect to the instance via putty and execute the following commands as root.

Get Jal P’s stories in your inbox

Join Medium for free to get updates from this writer.

The following commands will extract the above three files into the software folder.

# cd /home/centos
# mkdir iso
# mkdir iso1
# mkdir iso2
# mount RHEL7OSP-13.0-20180628.2-x86_64.iso iso/
# mkdir software
# cp -rfv iso/* software/
# mount rhel-7.5-server-updates-20180628.iso iso1/
# cp -rfv iso1/* software/
# mount rhel-7-server-additional-20180628.iso iso2/
# cp -rfv iso2/* software/

Now write the following commands to disable the network manager and firewalld.

# systemctl disable firewalld
# systemctl stop firewalld
# systemctl disable networkmanager
# systemctl stop NetworkManager
# systemctl enable network
# systemctl start network

Write the below commands to configure the yum repo.

# cd /etc/yum.repos.d
# vi osp.repo

Content in osp.repo

[osp]
baseurl=file://home/centos/software
gpgcheck=0

Commands to install packstack.

# cd
# yum update -y
# yum install -y centos-release-openstack-train
# yum update -y
# yum install -y openstack-packstack
# packstack --allinone

One last step…

# source keystonerc_admin
# cd /etc/httpd/conf.d
# vim 15-horizon-vhost.conf

Add “ServerAlias your_aws_public_ip” in 15-horizon-vhost.conf just above other “ServerAlias”.

# systemctl restart httpd

Step 4: Go to the AUTH_URL given in the keystonerc_admin file and log in with the credentials given in that file.

All Done!

--

--