Login into the OpenStack dashboard.
After you successfully log in, you will see the Overview screen.
Key Pairs in the menu on the left and after opening in the right panel select the tab
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
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.
In the left menu, select
Security Groups. In the default settings, there is one security group created – with the name
If you want to check the default security group rules, click on it and the detail will open.
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.
The security group appears in the list.
Adjustment of the security group rules
For adjustments of the SSH security group rules, 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 0.0.0.0/0 which stands for any (=all) IP address.
Now we have to set up networking in order to plug the instance we are about to create into a proper network.
Network Topology in the left menu. The basic setup looks like in the following figure.
Creating a private network for your servers
Create Network and network creation dialog appears.
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.
After you confirm, the network is created and it appears in the topology diagram.
Creating a router
Now we have to create a router in order to be able to connect the new network to the outside world.
Create Router and name your new router. Router is created and we can see it in the router list.
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.
Also the router appears in the Network Topology schema.
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.
Select the public network there and confirm.
Now the network topology reflects that the router is connected to the outside world.
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
Imagess. In the right panel, a list of all available public images appears.
List of available ready-to-use images
Images in the left menu. In the right panel, the list of publicly available images will appear.
Instantiation of a public server image
Next to the selected image (for the purpose of this manual we will select
Ubuntu 16.04), select
A dialog window appears, where on the
Details tab we fill in the instance name, e.g.
We need to select size of an instance (Flavor).
We also have to address the networking. Switch to the
Networking tab. Here you have to assign the private network to the instance being launched.
Before we confirm by pressing
Launch, we need to select a security group and a keypair.
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.
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.
We can also see the newly launched instance in the
Network Topology schema.
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 Floating IP.
A dialog appears:
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.
Select the public pool and confirm. The address is allocated and we can select it now in the previous assignment dialog.
After confirmation, we can select
Floating IPs in the left menu to see the list of allocated or assigned IP addresses.
SSH connection to the created instance
Now we are able to connect to the new instance.
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: April 12, 2018