- The virtual machine should preferably have 100+ GB of disk space, especially if using Ubuntu 22.04 or later.
- Open VirtualBox Host Network Manager (
Ctrl + H) and create a host-only network (e.g.,vboxnet0). - Example interface on the host:
vboxnet0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether 0a:00:27:00:00:00 brd ff:ff:ff:ff:ff:ff
inet 192.168.56.1/24 brd 192.168.56.255 scope global vboxnet0
valid_lft forever preferred_lft forever
inet6 fe80::800:27ff:fe00:0/64 scope link
valid_lft forever preferred_lft foreverAssign a static IP for the OpenStack VM to connect to via Oracle VirtualBox Manager:
sudo ip link set <interface-name> [enp0s31f6] upCreate the file:
sudo nano /etc/apt/apt.conf.d/01SwitchProxyAdd the following content:
Acquire::http::Proxy "http://192.168.56.1:3128/";
Acquire::https::Proxy "http://192.168.56.1:3128/";
Test the configuration:
sudo apt updateEdit .bashrc:
sudo nano ~/.bashrcAdd the following lines:
export http_proxy="http://192.168.56.1:3128"
export https_proxy="http://192.168.56.1:3128"Save changes and reload:
source ~/.bashrcsudo apt install git -y
git clone https://opendev.org/openstack/devstack
cd devstacksudo apt install -y python3-openstackclientsudo apt install -y mariadb-server python3-pymysql- Place the
local.conflocal.conf file in thedevstackfolder before running DevStack.
sudo iptables -I INPUT -p tcp --dport 5000 -j ACCEPT./stack.shAfter DevStack starts,
enp0s3is moved into a bridge calledbr-ex, which DevStack uses for external/internal floating IP traffic.
- If issues arise in the VM hosting OpenStack, apply the following fix:
YouTube Fix Link