# Easy Steps to Install OpenStack/DevStack All-in-One

Hi!👋 I'm excited to share how I set up OpenStack using **DevStack** on local machine. If you’re just getting started with OpenStack, this guide might help you spin up your own testing environment.

> ⚠️ **Disclaimer**: This is a **minimal, all-in-one installation** intended for development and testing purposes only. **Do not use this setup in production environments.**

## What is DevStack?

DevStack is a series of extensible scripts used to quickly bring up a complete OpenStack environment for development or testing purposes. It’s not recommended for production use, but it's perfect for labs and learning.

### Why Use DevStack?

DevStack is a great way to:

* Learn OpenStack hands-on
    
* Test and experiment with OpenStack components
    
* Set up a local cloud lab quickly
    

<mark>But again, it’s not designed for production workloads, so test it as your cloud playground.</mark>

## My System Info

Before diving in, I’ve already installed a VM on my local machine. Here’s the OS I used:

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1748199917172/5737575f-1f80-4f41-9888-7affe5b7b350.png align="center")

## Setup Steps

### 1\. Update the system

Make sure your packages are up to date:

```plaintext
sudo apt-get update -y
```

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1748200038910/725fe3e9-0208-4ed6-bb6d-8ad3523a5d48.png align="center")

### 2\. Clone my DevStack setup repo

I've uploaded a custom DevStack configuration script to GitHub. Feel free to clone and use it.

```plaintext
git clone https://github.com/linnlattoo-cloud/devstack.git
cd devstack
```

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1748200086834/9de39ae0-41b8-4854-a308-245812d5b014.png align="center")

### 3\. Make the setup script executable

```plaintext
chmod +x devstack_setup.sh
```

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1748200139909/b77eb304-6ed1-4609-bc76-742371924576.png align="center")

### 4\. Optional: Customize your setup

You can change passwords for:

* Database
    
* `admin`
    
* `service`
    
* RabbitMQ
    

Just edit the `local.conf` file by using vim editor or nano inside the repo before starting the install.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1748200288443/8f9bf827-ec54-4396-9483-587ecf5d0876.png align="center")

### 5\. Run the setup script

This will download and install OpenStack and take **20–30 minutes**.

```plaintext
./devstack_setup.sh
```

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1748200277854/8d65023a-61f9-4259-8c79-00b6fa118de6.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1748200410047/679d8922-caca-4c34-9955-999508254f58.png align="center")

### Accessing OpenStack

Once the setup is done, you can log in to the OpenStack dashboard (Horizon) ([`http://your-server(vm)-ip/dashboard`](http://your-server-ip/dashboard)) using the `admin` user and the admin password you defined in `local.conf`.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1748200466011/884739a2-e9ff-43b8-af72-ab6f332186a0.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1748200476884/428e1dd0-a506-4b25-8b00-3fba006dfe0c.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1748200484715/b2f0cbb0-8b01-4fee-96ac-90b0dc92f076.png align="center")

## Cleaning Up

Need to remove everything? Just run:

```plaintext
./clean.sh
```

This will clean up your DevStack environment so you can start fresh if needed.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1748200697128/97c83dd5-2456-44c4-b08b-6d56c6908181.png align="center")

That’s it! DevStack is a fantastic way to explore OpenStack locally without complex setups. Feel free to fork my [GitHub repo](https://github.com/linnlattoo-cloud/devstack) if you find this useful.

Thanks for reading! 🙌
