How to use the OpenStack platform provided by OSUOSL: create VM, manage them, etc.
All documentation here applies to the OpenStack web interface
OSUOSL is graciously providing resources on their OpenStack cluster (thank you!)
The main purpose is to run reliable builders, which is needed when building OpenWrt releases.
A secondary purpose is to run CI tasks for OpenWrt.
We are limited to run no more than 8 VMs at any given time, with ample limits regarding RAM and CPU cores.
Go to “Compute / Key Pairs” and use “Import Public Key”. You should copy/paste your SSH public key.
You can add several public keys, and even add public keys of other admins. These keys will be available when creating a virtual machine.
It is also possible to copy/paste several SSH keys into a single “Key Pair”, simply separate them with newlines. It is useful because OpenStack only allows one Key Pair when creating a VM.
Go to “Compute / Instances” and use “Launch Instance”.
Most of the parameters are self-explanatory, with a few exceptions:
Look up the IP address shown in the list of instances.
You can login with SSH, using your SSH key.
The SSH username is usually the name of the distribution: “debian”, “ubuntu”, etc. If you can't find it, check the documentation of your distribution, the keywords are “openstack” and “cloud-init”.
The default user usually has passwordless sudo privileges.
See https://docs.openstack.org/image-guide/obtain-images.html for more documentation on distro images.
OpenStack has a browser-based serial console with which you can debug a VM. This is useful if network configuration is broken.
However, you need to know the password of an existing user. There is no default password in Debian images.
If something goes wrong, you can “rebuild” a virtual machine from the list of instances.
This will erase everything and go back to the initial state of the image (in our case, a standard Debian). Be careful, this will also reset SSH keys, so make sure you have access to the SSH key that was used to create the virtual machine. It will also change the SSH host key.