Your submission was sent successfully! Close

Thank you for contacting us. A member of our team will be in touch shortly. Close

You have successfully unsubscribed! Close

Thank you for signing up for our newsletter!
In these regular emails you will find the latest updates about Ubuntu and upcoming events where you can meet our team.Close

Tear down your OpenStack lab environment

1. Overview

Before you get started!

Welcome to OpenStack!

In this series of tutorials, we will walk you through all the necessary steps to install, configure and get started with OpenStack. Using just a single machine, you will learn how to use OpenStack for cloud infrastructure implementation purposes, from a single-node installation to large-scale clusters.

This tutorial is the twelfth in the “Phase 1 - Learn OpenStack” series.

Explore other tutorials >

What is OpenStack?

OpenStack is a collection of open source projects designed to work together to form the basis of a cloud. OpenStack can be used for both private and public cloud implementation.

What is Sunbeam?

Sunbeam is an upstream project under the governance of the OpenInfra Foundation (OIF), which was created to lower the barrier to entry for OpenStack, simplify its adoption process, and set the foundation for an autonomous private cloud. Sunbeam uses cloud-native architecture and total bottom-up automation to make OpenStack more accessible to newcomers and to help users get to grips with the platform immediately.

What is MicroStack?

MicroStack (based on Sunbeam) is an OpenStack distribution designed for small-scale cloud environments. While it is available with full commercial support from Canonical, it can also be self-deployed with no friction, effectively eliminating the need for a paid consulting engagement. MicroStack currently includes core OpenStack services only, but is expected to evolve quickly to ensure full feature parity with Canonical’s Charmed OpenStack soon.

In this tutorial, you will learn how to:

  • Stop and start Sunbeam
  • Disable and enable Sunbeam
  • Uninstall Sunbeam

You will only need:

One fresh physical or virtual machine with:


2. Stop and Sunbeam

Sunbeam can be stopped when not being used and started when needed again.

To stop Sunbeam, execute the following commands:


$ sudo snap stop microk8s
$ sudo snap stop openstack-hypervisor

To start Sunbeam, execute the following command:


$ sudo snap start openstack-hypervisor
$ sudo snap start microk8s


3. Disable and enable Sunbeam

Sunbeam is set to start automatically on a reboot.

To disable Sunbeam, execute the following commands:


$ sudo snap disable microk8s
$ sudo snap disable openstack-hypervisor

To enable Sunbeam, execute the following command:


$ sudo snap enable microk8s
$ sudo snap enable openstack-hypervisor


4. Uninstall Sunbeam

In case you no longer need it, you can completely uninstall Sunbeam.

To uninstall Sunbeam, execute the following commands:


$ sudo snap remove --purge microk8s 
$ sudo snap remove --purge juju 
$ sudo snap remove --purge openstack
$ sudo snap remove --purge openstack-hypervisor
$ sudo /usr/sbin/remove-juju-services
$ sudo rm -rf /var/lib/juju
$ rm -rf ~/.local/share/juju
$ rm -rf ~/.local/share/openstack
$ rm -rf ~/snap/openstack
$ rm -rf ~/snap/openstack-hypervisor
$ rm -rf ~/snap/microstack/
$ rm -rf ~/snap/juju/
$ rm -rf ~/snap/microk8s/
$ sudo init 6


5. Next steps

Congratulations! You have reached the end of this tutorial and the end of the “Phase 1 - Learn OpenStack” series.

You can now move to the next tutorial - “1. Design” - in the “Phase 2 - Deploy OpenStack” series or explore other tutorials.

In this tutorial, you have learnt how to:

  • Stop and start MicroStack
  • Disable and enable MicroStack
  • Uninstall MicroStack

Where to go from here?