2023-04-12 22:55:37 +00:00
|
|
|
# Vagrant-Devstack
|
|
|
|
|
2023-04-13 14:18:26 +00:00
|
|
|
## Setup the virtual machine
|
2023-04-12 22:55:37 +00:00
|
|
|
|
2024-07-16 11:41:08 +00:00
|
|
|
On the host machine, start the virtual machine:
|
2023-04-13 08:27:41 +00:00
|
|
|
|
2023-04-12 22:55:37 +00:00
|
|
|
vagrant up --provider=libvirt
|
2024-07-16 11:41:08 +00:00
|
|
|
|
|
|
|
Export the SSH configuration
|
|
|
|
|
2023-04-13 11:45:03 +00:00
|
|
|
vagrant ssh-config > ~/.ssh/config
|
2023-04-13 14:18:26 +00:00
|
|
|
|
|
|
|
## Setup tunnels
|
|
|
|
|
2024-07-16 11:41:08 +00:00
|
|
|
On the host machine (for students with a VM + devstack)
|
2023-04-13 14:18:26 +00:00
|
|
|
|
2023-04-13 08:27:41 +00:00
|
|
|
ssh -L 8081:192.168.56.21:80 vagrant@control -N
|
|
|
|
|
2024-07-16 11:41:08 +00:00
|
|
|
On your local machine (for students with a specific bare metal installation)
|
2023-04-13 08:27:41 +00:00
|
|
|
|
|
|
|
ssh -L8081:127.0.0.1:8081 debian@xxxx -N
|
2023-04-04 06:51:02 +00:00
|
|
|
|
2023-04-13 11:45:03 +00:00
|
|
|
Then open your favorite web browser on the following address:
|
|
|
|
|
|
|
|
http://localhost:8081/dashboard/
|
|
|
|
|
2024-07-16 11:41:08 +00:00
|
|
|
## Setup CLI tools
|
|
|
|
|
|
|
|
sudo apt-get install python3-pip
|
|
|
|
sudo pip3 install python-openstackclient
|
|
|
|
|
|
|
|
# for a specific component (nova, neutron, etc.)
|
|
|
|
sudo pip3 install python-COMPONENTclient
|
|
|
|
|
2023-04-13 14:18:26 +00:00
|
|
|
## Setup proxy (for openstack CLI)
|
|
|
|
|
|
|
|
On the host machine
|
|
|
|
|
2024-07-16 11:41:08 +00:00
|
|
|
ssh -D 3128 vagrant@control -N
|
2023-04-13 14:18:26 +00:00
|
|
|
|
|
|
|
export https_proxy=socks5://localhost:3128
|
|
|
|
export http_proxy=socks5://localhost:3128
|
|
|
|
export no_proxy=localhost,127.0.0.1
|
|
|
|
|
|
|
|
The verify with the CLI:
|
|
|
|
|
|
|
|
openstack image list
|
|
|
|
|
2023-04-13 08:27:41 +00:00
|
|
|
## References
|
2023-04-04 06:51:02 +00:00
|
|
|
|
|
|
|
* https://opendev.org/openstack/devstack-vagrant
|