Compute (Nova)


Login into the OpenStack dashboard.

OpenStack Login Screen

After you successfully log in, you will see the Overview screen.

OpenStack Overview Screen

SSH Keypairs

Select Access & Security in the menu on the left and after opening in the right panel select the tab Keypairs.

OpenStack Keypairs Screen

There are two ways how to add an SSH key – either create a new one, or import an existing one.

In the top buttons row (see screenshot) select Create Keypair.

OpenStack Keypairs Screen

In the dialog, insert a name, e.g. MyKeypair and confirm by selecting Create Keypair. Keypair is created and private key will be offered for download.

OpenStack Download Private Key

Security Groups

In the left menu, select Access & Security, which opens in the right panel. Select the Security Groups tab. In the default settings, there is one security group created – with the name default.

OpenStack Security Groups Defaults

If you want to check the default security group rules, click on it and the detail will open.

OpenStack Security Groups Overview

For the purpose of this tutorial though, we will create a new security group that will later allow us to connect to our instances using SSH. On the list of security groups, press the button Create Security Group and create a group for SSH connections by filling the information in the creation dialog.

OpenStack Create Security Group

The security group appears in the list.

OpenStack Security Group Created

Adjustment of the security group rules

For adjustments of the SSH security group rules, select Edit Rules:

OpenStack Edit SSH Rules

Then select Add Rule and add the SSH pre-defined rule (or you may fill the custom rule dialog and add it manually). Note that the default CIDR is which stands for any (=all) IP address.

OpenStack Add SSH Rule

Networking setup

Now we have to set up networking in order to plug the instance we are about to create into a proper network.

Navigate to Network Topology in the left menu. The basic setup looks like in the following figure.

OpenStack networking topology only public network

Creating a private network for your servers

Select Create Network and network creation dialog appears.

OpenStack Create Network

Creating a subnet

Now we have to create a subnet in the network being created. Navigate to the second tab of the dialog – Subnet.

Subnet represents a logical set of connected devices, addressed in a common address space.

OpenStack Network Subnet

After you confirm, the network is created and it appears in the topology diagram.

OpenStack Networking Topology

Creating a router

Now we have to create a router in order to be able to connect the new network to the outside world.

Select Create Router and name your new router. Router is created and we can see it in the router list.

OpenStack Router Created

If you navigate to the router’s detail, it opens and looks similarly to the following figure.

Now we need to create an interface, select Add Interface and add an interface to the private network.

When you confirm, the interface is created and we can see it on the router’s detail.

OpenStack Router Created Overview

Also the router appears in the Network Topology schema.

OpenStack Networking topology router added

Adding a gateway to a router

Now we have to connect to the outside world using a gateway. For this, open the router list from the left menu (Routers) and select Set Gateway next to the appropriate router. The following dialog appears.

OpenStack Set Gateway

Select the public network there and confirm.

Now the network topology reflects that the router is connected to the outside world.

OpenStack Network Topology Gateway Set

First run of a cloud server

Let us now go through running a cloud server from a collection of public images (according to the operating systems) and connect to it via the remote desktop. In the left menu, choose Images & Snapshots. In the right panel, a list of all available public images appears.

List of available ready-to-use images

Select Images & Snapshots in the left menu. In the right panel, the list of publicly available images will appear.

OpenStack Public Images

Instantiation of a public server image

Next to the selected image (for the purpose of this manual we will select Ubuntu 16.04), select Launch.

A dialog window appears, where on the Details tab we fill in the instance name, e.g. MyFirstInstance.

OpenStack Launch Linux Instance

We need to select size of an instance (Flavor).

OpenStack Launch Instance Flavor

Before we confirm by pressing Launch, we need to select a keypair and security group.

OpenStack Launch Instance Access

OpeNStack Launch Instance Security Group

Here we should add the security group for SSH connection that we created earlier and the keypair we either created or imported earlier as well.

We also have to address the networking. Switch to the Networking tab.

OpenStack Launch Instance Networking

Here you have to assign the private network to the instance being launched.

Now we confirm by pressing Launch. We are automatically redirected to the instance overview (available from the left menu by selecting Instances), where we can see the newly created instance.

OpenStack Launch Instance Linux

We can also see the newly launched instance in the Network Topology schema.

OpenStack Networking Topology After Instance Launch

Public IP address assignment

For a successful connection to the newly created instance, it is important to add a public IP address. On the instance overview we select More by the appropriate instance and in the context menu we select Associate Public IP.

OpenStack Associate Public IP

A dialog appears:

OpenStack Associate Public IP

We need to select the + button next to the IP addresses drop-down list to add allocate a new IP address. The allocation dialog appears.

OpenStack Allocate Public IP

Select the public pool and confirm. The address is allocated and we can select it now in the previous assignment dialog.

OpenStack Public IP Address Allocated

After confirmation, we can select Access & Security in the left menu and then Public IPs in the right window to see the list of allocated or assigned IP addresses.

OpenStack Public IP List

SSH connection to the created instance

Now we are able to connect to the new instance.

Default usernames

Please see the list with default usernames and passwords for provided images.

Open up an SSH connection to the server and enter the username. In our case, we put ubuntu as it is the default username for this particular operating system.

SSH command will look like this:

ssh -i <your_key_name.pem> <public IP of your server>. 

Last modified: 2017-05-30