Microstack on Ubuntu 20.04

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

#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 ! -d -j MASQUERADE
sudo sysctl net.ipv4.ip_forward=1
sudo iptables -I FORWARD -s -j ACCEPT
sudo iptables -I FORWARD -d -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

Leave a Reply

Your email address will not be published. Required fields are marked *