Tag Archives: Microstack

Microstack on Ubuntu 20.04

#Install Microstack
sudo snap install microstack --beta --devmode

#Microstack
#Start with Access to LVM for attached volumes
sudo microstack init --auto --control --setup-loop-based-cinder-lvm-backend --loop-device-file-size 100
# Disable
sudo snap disable microstack
# Enable
sudo snap enable microstack

#launch new Vm instance using CentOS image and VM size 2
microstack.launch --flavor 2 CentOS --name Check_MK_TEST

#Configure this on the Host so the VMs have access to the internet
sudo iptables -t nat -A POSTROUTING -s 10.20.20.1/24 ! -d 10.20.20.1/24 -j MASQUERADE
sudo sysctl net.ipv4.ip_forward=1
sudo iptables -I FORWARD -s 10.20.20.1/24 -j ACCEPT
sudo iptables -I FORWARD -d 10.20.20.1/24 -j ACCEPT
sudo iptables -L -v -n --line-numbers
sudo iptables -L -v -n -t nat --line-numbers

#Get Admin password
sudo snap get microstack config.credentials.keystone-password