Skip to content

Kypo OpenStack

Published: at 12:22 PM
Description of GIF

Requirement

Let’s Start…

First of all, you need to configure your VMware according to the following screenshot.

kypo

I set RAM to 32 GB but you set it to 8 GB minimum, depending upon your RAM size, and Processor set to 32.

Add 5 hard drives, 100 GB for CentOS, which is already available starting from 20 GB. Additionally, we need 4 local hard drives for installing various VMs on Open Stack. The sizes of these local hard drives range from 30 GB to 50 GB.

Add 3 network adapters to the CentOS VM configuration in VMware settings. One adapter is already available, and you need to add 2 more.

Your cent OS Network Adapter should be at NAT settings

Make sure to match the configuration with the first screenshot at the top of this article. Name your VM and set the username and password for your CentOS login screen. Leave the other settings as they are. Close the settings and then turn on your VM. The installation process of CentOS is fully automated.

Please ensure that your internet is working properly and that all adapters are functioning correctly. You can check them from the VMware Status bar or the Network panel of CentOS. Currently, ens224 is turned off.

Kypo-Openstack

CentOS

On your terminal, and get root access. Now use this Command for OpenStack local hostname.

su
hostnamectl set-hostname openstackio --static

openstackio is the name. You can use any name of your choice. This execution of the command will set the local hostname only.

Kypo-Openstack

To configure your IP with your local host. I use an ens160 IP address. Use the command to map your IP to the local host. The name for the local host should be the same as set in the previous command. Then use the cat command with directories to verify your mapping:

echo "192.168.186.131 openstackio" >> /etc/hosts
cat /etc/hosts
Kypo-Openstack

Now use these Commands:

setenforce 0 
sed -i 's/^SELINUX=.*/SELINUX=disabled/g' /etc/selinux/config
Kypo-Openstack

Now use following command the following command to install network

scripts dnf install network-scripts -y
Kypo-Openstack

Upon completing this, the following output will be displayed.

Kypo-Openstack

Now use the following back-to-back commands.

systemctl disable --now firewalld NetworkManager 
systemctl enable --now network 
dnf -y install lvm2
Kypo-Openstack Kypo-Openstack

Upon completing this, the following output will be displayed.

Kypo-Openstack

Now use the following command to check the size and space of the hard drive you added in your VM configuration.

fdisk -l
Kypo-Openstack

Now use these commands for more configuration making tables and groups in free space.

pvcreate -f /dev/nvme0n2
pvs 
vgcreate -f cinder-volumes /dev/nvme0n2 
vgs 
mkfs.ext4 /dev/nvme0n3 
mkfs.ext4 /dev/nvme0n4
Kypo-Openstack Kypo-Openstack

Now use this Command:

yum install dnf-plugins-core
Kypo-Openstack

Upon completing this, the following output will be displayed.

Kypo-Openstack

Then use the following command to enable some power tools etc.

yum config-manager --set-enabled powertools
dnf install -y centos-release-openstack-train
Kypo-Openstack Kypo-Openstack

After this, we will utilize the following command to install the necessary and additional packages, which will take some time.

dnf update –y
Kypo-Openstack

Upon completing this, the following output will be displayed.

Kypo-Openstack

Now it’s time to install OpenStack. Use the following command to install OpenStack. It will also take some time to download and install packages. Also you need some changes in the configuration file in yum.repos.d

dnf install -y openstack-packstack
Kypo-Openstack

Upon completing this, the following output will be displayed.

Kypo-Openstack

Now use these commands to allow access to file of Configuration.

packstack --gen-answer-file=answer.txt
Kypo-Openstack

Now, use nano to edit the configuration file answer.txt. Search and make changes to the following lines. Use ctrl+w to search and arrows to move the cursor.

admin123 is a sample password. You can use a password of your choice. Press Ctrl+X to save and quit the file, then press Y to ensure that the file is written successfully and saved. After that, use this command. It will take a bit longer to complete the configuration we have just done.

packstack --answer-file=answer.txt
Kypo-Openstack

Upon completing this, the following output will be displayed.

Kypo-Openstack

Run the final command.

dnf install -y wget
Kypo-Openstack

You can access your OpenStack on your browser using:

https://192.168.186.131/dashboard

Note:

Please make sure to use your own IP to access your OpenStack Dashboard. When prompted for login credentials at the OpenStack login screen, use the following: