Installing OpenStack on Fedora CoreOS

OpenStack is a free and open-source cloud computing platform, used for building private and public clouds. In this tutorial, we will guide you through the process of installing OpenStack on Fedora CoreOS Latest.

Prerequisites

Before starting the installation process, you will need to meet the following prerequisites:

Step 1: Update and Upgrade System

Before starting to install any software, it is a good idea to ensure that your system is up-to-date.

sudo dnf update -y

Step 2: Install OpenStack Dependencies

To install OpenStack, we need to install some packages and dependencies.

sudo dnf install -y python3-openstackclient python3-oslo-db python3-keystoneauth1 python3-keystoneclient python3-glanceclient python3-cinderclient python3-novaclient python3-neutronclient python3-heatclient python3-octaviaclient screen

Step 3: Install OpenStack Services

There are many OpenStack services available, but for this tutorial, we will install Keystone (Identity service), Glance (Images service), and Nova (Compute service).

Keystone installation

To install the Keystone service, run the following command:

sudo dnf install -y openstack-keystone

After the installation is complete, configure the Keystone service by editing the /etc/keystone/keystone.conf file.

Find the connection option under the [database] section and replace the current value with:

connection = sqlite:////var/lib/keystone/keystone.db

Now create the Keystone database tables:

sudo su -s /bin/sh -c "keystone-manage db_sync" keystone

Finally, restart the Keystone service:

sudo systemctl enable openstack-keystone.service
sudo systemctl start openstack-keystone.service

Glance installation

To install the Glance service, run the following command:

sudo dnf install -y openstack-glance

After the installation is complete, configure the Glance service by editing the /etc/glance/glance-api.conf and /etc/glance/glance-registry.conf files.

Find the connection option under the [database] section and replace the current value with:

connection = sqlite:////var/lib/glance/glance.sqlite

Create the Glance database tables:

sudo su -s /bin/sh -c "glance-manage db_sync" glance

Finally, start the Glance services:

sudo systemctl enable openstack-glance-api.service
sudo systemctl enable openstack-glance-registry.service

sudo systemctl start openstack-glance-api.service
sudo systemctl start openstack-glance-registry.service

Nova installation

To install the Nova service, run the following command:

sudo dnf install -y openstack-nova-api openstack-nova-conductor openstack-nova-console openstack-nova-novncproxy openstack-nova-scheduler openstack-nova-placement-api

After the installation is complete, configure the Nova service by editing the /etc/nova/nova.conf file.

Find the connection option under the [database] section and replace the current value with:

connection = sqlite:////var/lib/nova/nova_api.sqlite

Create the Nova database tables:

sudo su -s /bin/sh -c "nova-manage api_db sync" nova
sudo su -s /bin/sh -c "nova-manage db sync" nova

Finally, start the Nova services:

sudo systemctl enable openstack-nova-api.service
sudo systemctl enable openstack-nova-consoleauth.service
sudo systemctl enable openstack-nova-scheduler.service
sudo systemctl enable openstack-nova-conductor.service
sudo systemctl enable openstack-nova-novncproxy.service
sudo systemctl enable openstack-nova-placement-api.service

sudo systemctl start openstack-nova-api.service
sudo systemctl start openstack-nova-consoleauth.service
sudo systemctl start openstack-nova-scheduler.service
sudo systemctl start openstack-nova-conductor.service
sudo systemctl start openstack-nova-novncproxy.service
sudo systemctl start openstack-nova-placement-api.service

Step 4: Verify OpenStack Installation

To verify that OpenStack is installed correctly, we can use some command-line tools.

Verify Keystone

Run the following command to list the Keystone service:

openstack service list

And you should get a list of the installed services:

+----------------------------------+------------+--------------------+
| ID                               | Name       | Type               |
+----------------------------------+------------+--------------------+
| 232978a404c44a4a89e3bf4f6e7a6dda | keystone   | identity           |
| 6ebb50bee6e14b1582b2716a2956bde7 | glance     | image              |
| 8d1e8318351b4c869491ff2d041dc01f | placement  | placement          |
| 8d1e8318351b4c869491ff2d041dc01f | nova       | compute            |
+----------------------------------+------------+--------------------+

Verify Glance

Run the following command to list the Glance images:

openstack image list

And you should get an empty list because we have not added any images yet.

Verify Nova

Run the following command to list the Nova servers:

openstack server list

And you should get an empty list because we have not created any servers yet.

Congratulations! You have successfully installed OpenStack on Fedora CoreOS Latest.

Conclusion

In this tutorial, we have shown you how to install OpenStack on Fedora CoreOS Latest. Now you can start using OpenStack to manage your cloud infrastructure.

If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!

Alternatively, for the best virtual desktop, try Shells!