MicroStack Installation - ItsMmmike/SYS-350 GitHub Wiki
In this guide page, I cover the basic process for installing MicroStack onto a Ubuntu Based System.
- In order to install MicroStack onto my Super13 Ubuntu System, I used the following commands below:
# Uses Snap to install MicroStack on a Ubuntu System
sudo snap install microstack --devmode --beta
# Initializes MicroStack networks and databases (Note: Process can take up to ~15-20 min)
sudo microstack init --auto --control
# Useful Alias to add for managing MicroStack environment
echo 'alias openstack="microstack.openstack"' >> ~/.bashrc source ~/.bashrc
- After the initial setup completes, we should now be able to access our OpenStack environment by browsing to
http://10.20.20.1/
on the local system - The OpenStack Web Management Console login page should look similar to below:
- Once at the Web Console login page, you should be able to log into the interface as the "admin" user.
- In order to determine the default password of the new admin user, run the command below:
# Retrieves the OpenStack Admin User's Default Creds
sudo snap get microstack config.credentials.keystone-password
- Screenshot of me successfully logged into my OpenStack environment and viewing the Web Console's Dashboard
For this section, I will briefly demonstrate how to create and access a new Instance within my OpenStack Server Environment
- To create a new VM, run the following command:
# Launches a new "cirros" instance named "test"
microstack launch cirros --name test
- After running the command above, you should get additional information on how to access your new VM/Instance using SSH
- If you cannot access the new Instance, you may have to wait for it to fully boot up and or ensure that SSH is allowed through your firewall
Note: Once you are able to access the Cirros Instance, the default credential for cirros is
"gocubsgo"
- SSH Access to your new Cirros Instance should look similar to below:
# Command used to access your new Cirros Instance via SSH
sudo ssh -i /home/ubuntu/snap/microstack/common/.ssh/id_microstack cirros@<ip_address>
- To verify our new instance creation, we can also navigate to the "instances" tab on our MicroStack Server's Web GUI dashboard (ex. https://10.20.20.1/project/instances --> You should see our new "test" instance)
- You can also use the Web GUI to remotely access your instance's console. To do this navigate to "Project" > "Compute" > "Instances" > "test" > "Console" > Select "Click here to show only console" to open a new Spice Client Window to your instance.