Skip to content

Latest commit

 

History

History
128 lines (82 loc) · 2.55 KB

File metadata and controls

128 lines (82 loc) · 2.55 KB

I. Host Machine Setup

1. Download VirtualBox Manager

2. Download Ubuntu VM Image

3. Create a VM in VirtualBox

  • The virtual machine should preferably have 100+ GB of disk space, especially if using Ubuntu 22.04 or later.

4. Configure Host-Only Network Before Launch

  1. Open VirtualBox Host Network Manager (Ctrl + H) and create a host-only network (e.g., vboxnet0).
  2. 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 forever

5. Set Up Host Machine as Proxy PC

Assign a static IP for the OpenStack VM to connect to via Oracle VirtualBox Manager:

sudo ip link set <interface-name> [enp0s31f6] up

II. Virtual Machine Setup

1. Configure OpenStack VM to Use ProxyPC

Route apt traffic through ProxyPC:

Create the file:

sudo nano /etc/apt/apt.conf.d/01SwitchProxy

Add 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 update

2. Set Environment Variables for Proxy

Edit .bashrc:

sudo nano ~/.bashrc

Add 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 ~/.bashrc

3. Clone OpenStack Repository

sudo apt install git -y
git clone https://opendev.org/openstack/devstack
cd devstack

4. Install OpenStack Client

sudo apt install -y python3-openstackclient

5. Install MariaDB

sudo apt install -y mariadb-server python3-pymysql

6. Create local.conf File

  • Place the local.conf local.conf file in the devstack folder before running DevStack.

7. Open Port 5000 for Keystone

sudo iptables -I INPUT -p tcp --dport 5000 -j ACCEPT

8. Run DevStack

./stack.sh

After DevStack starts, enp0s3 is moved into a bridge called br-ex, which DevStack uses for external/internal floating IP traffic.


Potential Issues

Ubuntu 22.04 Terminal Issue

  • If issues arise in the VM hosting OpenStack, apply the following fix:
    YouTube Fix Link