2023-04-13 00:55:37 +02:00
|
|
|
# Vagrant-Devstack
|
|
|
|
|
2023-04-13 16:18:26 +02:00
|
|
|
## Setup the virtual machine
|
2023-04-13 00:55:37 +02:00
|
|
|
|
2023-04-13 10:27:41 +02:00
|
|
|
On the host machine
|
|
|
|
|
2023-04-13 00:55:37 +02:00
|
|
|
vagrant up --provider=libvirt
|
2023-04-13 13:45:03 +02:00
|
|
|
vagrant ssh-config > ~/.ssh/config
|
2023-04-13 16:18:26 +02:00
|
|
|
|
|
|
|
## Setup tunnels
|
|
|
|
|
|
|
|
On the host machine
|
|
|
|
|
2023-04-13 10:27:41 +02:00
|
|
|
ssh -L 8081:192.168.56.21:80 vagrant@control -N
|
|
|
|
|
|
|
|
On your local machine
|
|
|
|
|
|
|
|
ssh -L8081:127.0.0.1:8081 debian@xxxx -N
|
2023-04-04 08:51:02 +02:00
|
|
|
|
2023-04-13 13:45:03 +02:00
|
|
|
Then open your favorite web browser on the following address:
|
|
|
|
|
|
|
|
http://localhost:8081/dashboard/
|
|
|
|
|
2023-04-13 16:18:26 +02:00
|
|
|
## Setup proxy (for openstack CLI)
|
|
|
|
|
|
|
|
On the host machine
|
|
|
|
|
|
|
|
ssh -L 3128 vagrant@control -N
|
|
|
|
|
|
|
|
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 10:27:41 +02:00
|
|
|
## References
|
2023-04-04 08:51:02 +02:00
|
|
|
|
|
|
|
* https://opendev.org/openstack/devstack-vagrant
|