Building micro stack Cloud, an OpenStack private cloud engine to replace, Proxmox, VMWare, and Citrix

Building micro stack Cloud, an OpenStack private cloud engine to replace, Proxmox, VMWare, and Citrix

Install microstack on Linux

sudo snap install microstack --beta

Now you can initiate microstack (OpenStack) with LVM-based Cinder

sudo microstack init --auto --control --setup-loop-based-cinder-lvm-backend --loop-device-file-size 1000

Now access your microstack and get password using below command

sudo snap get microstack config.credentials.keystone-password

Let’s fix the issue of the network interface so we can access OpenStack instances or VMs from the external network

sudo snap alias microstack.openstack openstack
sudo snap alias microstack.ovs-vsctl ovs-vsctl

Now add the bridge interface using ovs-vsctl

ovs-vsctl add-port br-ex eno2
ip addr flush dev eno2
ip addr add 192.168.18.100/24 dev br-ex
ip link set br-ex up

Now build a bridge interface using 2nd Network interface

vi microstack-br-workaround

#!/bin/bash
#
# Workaround to enable physical network access to MicroStack
#
# Adds the server physical ip address to br-ex.
physicalcidr=192.168.18.100/24
# Add IP address to br-ex
ip address add $physicalcidr dev br-ex || :
ip link set br-ex up || :

Now create a service to make persistent

vi microstack-br-workaround.service
[Unit]
Description=Service for adding physical ip to microstack bridge
Requires=snap.microstack.external-bridge.service
After=snap.microstack.external-bridge.service
[Service]
ExecStart=/usr/local/bin/microstack-br-workaround
SyslogIdentifier=microstack-br-workaround
Restart=no
WorkingDirectory=/usr/local/bin
TimeoutStopSec=30
Type=oneshot
[Install]
WantedBy=multi-user.target

Now use make them executable and copy them to the desired location

chmod +x microstack-br-workaround

chmod +x microstack-br-workaround.service

cp microstack-br-workaround /usr/local/bin

cp microstack-br-workaround.service /etc/systemd/system/

Now restart services

systemctl daemon-reload
systemctl enable microstack-br-workaround.service