The very first thing I did was set up a virtual machine in my Proxmox environment on Debian 11 Linux. I gave it 4 cores, 8 GB of memory and 100 GB of disk space. I also added two network cards. The one in the normal network, for access, and the second network card for an internal network. I’ll spare myself the rollout process of a virtual machine ;-). Das Rocky Linux wurde in der Minimalkonfiguration inklusive Gast-Tools ausgerollt.
Installing openstack on a node via devstack is as easy as making a slice of toast with cheese.
A note at this point, normally you will not install Openstack with its different modules on a machine, that is really only for evaluation and some testing in this case. Normally you will roll out the different modules in a k8s1 environment.
We need an extra user with
sudo permissions for the preparation and we simply create this via
sudo useradd -s /bin/bash -d /opt/stack -m stack
echo "stack ALL=(ALL) NOPASSWD: ALL" | sudo tee /etc/sudoers.d/stack
sudo -u stack -i
Now we can clone the devstack repo and create a configuration file for installing Openstack.
git clone https://opendev.org/openstack/devstack
In the devstack directory we now create
local.conf with the following content
cat << EOF >> devstack/local.conf
Please never use such a password. This is for demonstration purposes only. Every password should be unique!!!1111
Now we can start the installation process with
stack.sh by just typing
If there are no problems, the installation can take a long time, for me it was about 19 minutes. But you are provided with enough passing shell output the whole time, so that no boredom arises.
Now you should be able to openstack via horizon using the link
I still had a problem with some permissions of the
/opt/stack directory during the installation, which I had to correct manually.
chmod 755 stack
Under my Debian installation I still had the problem that the ONV software could not be installed cleanly. Here it was pointed out that the packages are too old and were replaced. I had to add the backports in the repo so that I could install on the appropriate packages (which are required by devstack).
Just edit the
/etc/apt/source.list and add this line:
deb http://deb.debian.org/debian bullseye-backports main
Fancy name for kubernetes, just if you don’t know :-) ↩