Installing OpenStack
Introduction
The installation will be performed on Ubuntu 18.04 in VirtualBox
Minimum requirements for the virtual machine: 10 GB RAM and 50 GB disk
You need to enable
nested virtualization
Ubuntu 18.04 can be installed following the
instructions
You need the server version, that is, not the desktop one. You do not need to install any additional
programs except the
SSH server
You do not need to create LVM. Put everything on a single partition.
After the installation you need to allow your user to run
sudo without a password
Ubuntu
sudo apt-get update
Hit:1 http://fi.archive.ubuntu.com/ubuntu focal InRelease Get:2 http://fi.archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB] Get:3 http://fi.archive.ubuntu.com/ubuntu focal-backports InRelease [101 kB] Get:4 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB] Get:5 http://fi.archive.ubuntu.com/ubuntu focal-updates/main i386 Packages [527 kB] Get:6 http://fi.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [1 175 kB] Get:7 http://security.ubuntu.com/ubuntu focal-security/main amd64 DEP-11 Metadata [27,6 kB] Get:8 http://security.ubuntu.com/ubuntu focal-security/universe amd64 DEP-11 Metadata [61,1 kB] Get:9 http://fi.archive.ubuntu.com/ubuntu focal-updates/main amd64 DEP-11 Metadata [282 kB] Get:10 http://security.ubuntu.com/ubuntu focal-security/multiverse amd64 DEP-11 Metadata [2 468 B] Get:11 http://fi.archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages [853 kB] Get:12 http://fi.archive.ubuntu.com/ubuntu focal-updates/universe i386 Packages [631 kB] Get:13 http://fi.archive.ubuntu.com/ubuntu focal-updates/universe amd64 DEP-11 Metadata [351 kB] Get:14 http://fi.archive.ubuntu.com/ubuntu focal-updates/multiverse amd64 DEP-11 Metadata [940 B] Get:15 http://fi.archive.ubuntu.com/ubuntu focal-backports/universe amd64 DEP-11 Metadata [10,3 kB] Fetched 4 250 kB in 3s (1 296 kB/s) Reading package lists... Done
sudo apt-get install -y apt-transport-https ca-certificates curl
Reading package lists... Done Building dependency tree Reading state information... Done ca-certificates is already the newest version (20210119~20.04.1). ca-certificates set to manually installed. The following NEW packages will be installed: apt-transport-https curl 0 upgraded, 2 newly installed, 0 to remove and 2 not upgraded. Need to get 166 kB of archives. After this operation, 572 kB of additional disk space will be used. Get:1 http://fi.archive.ubuntu.com/ubuntu focal-updates/universe amd64 apt-transport-https all 2.0.6 [4 680 B] Get:2 http://fi.archive.ubuntu.com/ubuntu focal-updates/main amd64 curl amd64 7.68.0-1ubuntu2.6 [161 kB] Fetched 166 kB in 0s (400 kB/s) Selecting previously unselected package apt-transport-https. (Reading database ... 148605 files and directories currently installed.) Preparing to unpack .../apt-transport-https_2.0.6_all.deb ... Unpacking apt-transport-https (2.0.6) ... Selecting previously unselected package curl. Preparing to unpack .../curl_7.68.0-1ubuntu2.6_amd64.deb ... Unpacking curl (7.68.0-1ubuntu2.6) ... Setting up apt-transport-https (2.0.6) ... Setting up curl (7.68.0-1ubuntu2.6) ... Processing triggers for man-db (2.9.1-1) ...
sudo curl -fsSLo /usr/share/keyrings/openstack-archive-keyring.gpg https://packages.cloud.google.com/apt/doc/apt-key.gpg
echo "deb [signed-by=/usr/share/keyrings/openstack-archive-keyring.gpg] https://apt.openstack.io/ openstack-xenial main" | sudo tee /etc/apt/sources.list.d/openstack.list
deb [signed-by=/usr/share/keyrings/openstack-archive-keyring.gpg] https://apt.openstack.io/ openstack-xenial main
sudo apt-get update
Hit:1 http://fi.archive.ubuntu.com/ubuntu focal InRelease Hit:2 http://fi.archive.ubuntu.com/ubuntu focal-updates InRelease Hit:3 http://fi.archive.ubuntu.com/ubuntu focal-backports InRelease Hit:4 http://security.ubuntu.com/ubuntu focal-security InRelease Get:5 https://packages.cloud.google.com/apt openstack-xenial InRelease [9 383 B] Get:6 https://packages.cloud.google.com/apt openstack-xenial/main amd64 Packages [49,4 kB] Fetched 58,8 kB in 2s (36,2 kB/s) Reading package lists... Done
You need to configure the network with netplan. Example from the article «netplan in Ubuntu»
You need to configure DNS. Example from the article «DNS in Ubuntu»
Update the system
sudo su
apt update && apt upgrade -y
As a regular user you need to clone the repository
su stack
cd
git clone http://opendev.org/openstack/devstack -b stable/victoria
Cloning into 'devstack'... warning: redirecting to https://opendev.org/openstack/devstack/ remote: Enumerating objects: 47603, done. remote: Counting objects: 100% (47603/47603), done. remote: Compressing objects: 100% (21934/21934), done. remote: Total 47603 (delta 33659), reused 38450 (delta 24954) Receiving objects: 100% (47603/47603), 9.84 MiB | 1.01 MiB/s, done. Resolving deltas: 100% (33659/33659), done.
Article author: Andrei Olegovich