Lab 6 - Managing Instances

Return to Workshop

Now We are Ready to Launch an OpenStack Instance

First, What is an Instance?

Instances are virtual machines that run inside the OpenStack cloud. You can launch an instance from the following sources:

Let's Go Launch a New Instance

Navigate to Compute -> Instances using the second level navigation tabs

Lab 6 Figure 1: Project Instance Listing

Click Launch Instance on the right hand side of the screen
Enter studentX-cirros for Name
Leave Availability set to nova
Enter 2 for Count
Click Next

Lab 6 Figure 2: Details for New Instance

Leave Select Boot Source set to Image
Click No for Create New Volume
Click the + symbol to the right of studentX-cirros to move that image up to the Allocated section
Click Next

Lab 6 Figure 3: Source for New Instance

Click the + symbol to the right of m1.tiny to move that flavor up to the Allocated section
Click Next

Lab 6 Figure 4: Flavor for New Instance

Click the + symbol to the right of private-a to move that network up to the Allocated section
Click Next until you get to Security Groups

Lab 6 Figure 5: Networks for New Instance

Leave the default security group allocated
Click Next

Lab 6 Figure 6: Security Groups for New Instance

We need a key pair created to use when we provision instances. The public key is passed to the instance and put in the authorized_keys file on the login user account.

Click Create Key Pair

Lab 6 Figure 7: Key Pair for New Instance

Enter studentX for Key Pair Name
Click Create Keypair

Lab 6 Figure 8: Create New Key Pair

Note that when you create a key pair, it should get automatically downloaded. You should verify that you definitely have the pem file in your downloads.

If you do not you can click the download button to get it.

You need this key file in order to access instances later.

You can ignore the rest of the option pages
Click Launch Instance

Lab 6 Figure 9: Key Pair Created and Launching New Instance

You should see a green box appear in the upper right corner of the screen that says "Success: 2 instances launched."

If you did not, let the intstructor know now

The instances will take a little while to become active.

If for some reason they do not, let the instructor know

Lab 6 Figure 10: New Instances Created and Active in Project

Now Let's Associate a Floating IP Address with one of our instances

Look all the way to the right in the row for your studentX-cirros-1 instance, Click the down arrow
Click Associate Floating IP
Select any one of your available floating IP addresses for IP Address
Leave Port to be Associated as is Click Associate

Lab 6 Figure 11: Selecting Floating IP to Associate with Our Instance

You should see a green box appear in the upper right corner of the screen that says something similar to "Success: IP address 192.168.1.73 associated."

If you did not, let the intstructor know now

Lab 6 Figure 12: Floating IP Address Associated with Our Instance

Lab 6 Figure 13: Network Topology Showing Two New Instances

Summary

At this point, we now have two running instances in our project. These instances are based on the cirros image we uploaded earlier.

The instances have IP addresses on the private-a network we created and are using the default security group as a baseline firewall setup.

One of our instances also has a Floating IP Address assigned and is routable on the 192.168.0.0/23 public network via both ICMP and SSH.

In our next lab, we will use the CLI to go through some of the steps we have done in previous labs.

Return to Workshop