Skip to main content

Command Palette

Search for a command to run...

OpenStack for DevOps Beginners

Hands-On with MicroStack

Published
3 min read
P

As a associate system administrator I worked on Redhat Linux servers, including user management, permissions, services, and performance monitoring Automated routine administrative tasks using Bash scripting and cron jobs, reducing manual effort by ~30% I am aws certified sysops administrator and Google Certified Cloud Engineer. Determined to transition my career into cloud architect /Cloud Support role

This guide is designed for DevOps and DevSecOps beginners who want to understand how cloud platforms work under the hood. If you’ve used AWS or Azure but never built a cloud yourself, this is your starting point.

You’ll learn:

What OpenStack really is

Why MicroStack makes it beginner-friendly

How to run a mini private cloud on your laptop for labs and learning

Why OpenStack Matters:

Most engineers interact daily with public clouds like AWS, Azure, or GCP. But behind the scenes, many enterprises and telecom providers run their own clouds.

That’s where OpenStack comes in.

OpenStack is an open-source cloud platform that lets you manage:

Compute (virtual machines via Nova)

Networking (virtual networks via Neutron)

Storage (block and object storage via Cinder and Swift)

Identity & access (via Keystone)

It’s widely used in:

Telecom and 5G infrastructure

Research and high-performance computing

Private enterprise clouds

Think of OpenStack as “AWS you control yourself.”

Why OpenStack Feels Intimidating

Traditional OpenStack deployments are big:

Multiple services

Multiple nodes

Complex networking

High hardware requirements

For beginners, it feels

“This is super… but impossible to run locally.”

Enter MicroStack: OpenStack Without the Pain

MicroStack solves this problem by packaging OpenStack into a single-node, lightweight installation.

Why MicroStack is ideal for beginners:

✅ Runs on a single Ubuntu machine

✅ Installed via Snap in minutes

✅ Minimal configuration required

✅ Real OpenStack APIs and behavior

You get a real cloud platform, not a simulator.

Installing MicroStack:

1️⃣ Install and Initialize

 sudo snap install microstack --classic 
sudo microstack init --auto

The --auto flag accepts all defaults, making it perfect for labs and testing. Within minutes, your local OpenStack cloud is ready.

2️⃣ Check Service Health :

microstack status

You should see core services running, including:

Nova (compute)

Neutron (networking)

Keystone (identity)

This confirms your cloud is operational.

3️⃣ Access the Horizon Dashboard

OpenStack includes a web UI called Horizon.

echo "http://$(hostname -I | awk '{print $1}')/horizon"

Login details:

Username: admin

Password:

sudo cat /var/snap/microstack/common/etc/keystone/admin-password

Horizon is useful, but real DevOps engineers rely on the CLI—so don’t stop here.

4️⃣ Launch Your First Virtual Machine Upload an Image:

wget https://cloud-images.ubuntu.com/focal/current/focal-server-cloudimg-amd64.img

microstack.openstack image create "Ubuntu-20.04" 
--file focal-server-cloudimg-amd64.img 
--disk-format qcow2 
--container-format bare 
--public

Create a Flavor (VM Size) :

microstack.openstack flavor create --ram 1024 --disk 10 --vcpus 1 small

Create SSH Keypair microstack.openstack keypair create mykey > mykey.pem chmod 600 mykey.pem

Launch the VM microstack.openstack server create :
--flavor small 
--image "Ubuntu-20.04" 
--key-name mykey 
myfirstvm

🎉 You now have a VM running in your own private cloud.

5️⃣ Understanding Networking:

List networks and subnets:

microstack.openstack network list

microstack.openstack subnet list

Neutron handles all networking, similar to VPCs and subnets in AWS. In real setups, you’d separate traffic into web, app, and database tiers.

6️⃣ Managing Storage:

Create and attach a volume:

microstack.openstack volume create --size 5
 myvolume microstack.openstack server add volume myfirstvm myvolume

This mirrors how block storage works in production clouds.

Key Lessons for Beginners

Start small: One VM teaches more than ten broken ones

Use the CLI: Automation starts here

Expect errors: Debugging builds real cloud skills

Think like a cloud architect: Networks, storage, and compute always interact

Final Thoughts:

MicroStack turns OpenStack from an intimidating enterprise platform into a hands-on learning tool.

For DevOps beginners, it’s one of the best ways to understand how clouds really work—without needing a data center.

If you can run OpenStack locally, public clouds suddenly make a lot more sense.