This tutorial shows how to install MicroStack (based on project Sunbeam) in the simplest way possible. It will deploy an OpenStack 2023.1 (Antelope) cloud.
The cloud will only allow access to its VMs from the local host. To enable access from any host on your network, follow the Single-node guided tutorial instead.
You will need a single machine whose requirements are:
- physical or virtual machine running Ubuntu 22.04 LTS
- a multi-core amd64 processor ideally with 4+ cores
- a minimum of 16 GiB of free memory
- 50 GiB of SSD storage available on the root disk
Caution: Any change in IP address of the local host will be detrimental to the deployment. A virtual host will generally have a more stable address.
Begin by installing the openstack snap:
sudo snap install openstack --channel 2023.1
Sunbeam can generate a script to ensure that the machine has all of the required dependencies installed and is configured correctly for use in MicroStack - you can review this script using:
or the script can be directly executed in this way:
sunbeam prepare-node-script | bash -x && newgrp snap_daemon
The script will ensure some software requirements are satisfied on the host. In particular, it will:
openssh-serverif it is not found
- configure passwordless sudo for all commands for the current user (
Deploy the OpenStack cloud using the
cluster bootstrap command and accept software defaults:
sunbeam cluster bootstrap --accept-defaults
Now configure the deployed cloud using the
sunbeam configure --accept-defaults --openrc demo-openrc
--openrc option specifies a regular user (non-admin) cloud init file (
Verify the cloud by launching a VM called ‘test’ based on the ‘ubuntu’ image (Ubuntu 22.04 LTS). The
launch command is used:
sunbeam launch ubuntu --name test
Launching an OpenStack instance ...
Access instance with `ssh -i /home/ubuntu/.config/openstack/sunbeam firstname.lastname@example.org`
Connect to the VM over SSH using the provided command. Note that the VM will not be ready instantaneously; waiting time is mostly determined by the cloud’s available resources.
Now that OpenStack is set up, be sure to check out the following how-to guides: