5 min read

How to create a Supercloud VM Instance

You can create and manage instances using the Horizon console.
The following is a short tutorial on how to create an instance and login via SSH.

Step 1 – Details

Select Compute Instances from the left hand menu in the Horizon console.
Click “Launch Instance” near the top right of the page.

Enter an instance name. This can be any name you like.
Click “Next” at the bottom of the dialogue.

2

Step 2 – Source

Choose an image from the list at the bottom of the dialogue. For example, click the up arrow button next to the “Deep Learning SWI” image. The selected image should appear under the “Allocated” subheading.

Click “Next” at the bottom of the dialogue.

 

Step 3 – Flavour

Click the up arrow button next to the “accelerated.small.i” flavour. The selected flavour should appear under the “Allocated” subheading.

Click “Next” at the bottom of the dialogue.

Step 4 – Networks

Check that “default_network” has been selected automatically. This should appear under the “Allocated” subheading. Click “Next” at the bottom of the dialogue.

Step 5 – Security Groups

You will need to create a security group so that you can ssh to your instance. Security groups can be added after you create the instance, so feel free to leave this step for now and create one later if you prefer. Please don’t forget to add one though!

If you’re using the VPN, you can use the provided security group “ssh_from_vpn”.

The SSH security group should be added to the list under the “Allocated” subheading.

Click “Next” at the bottom of the dialogue.

Step 6 – Key Pair

You will also need a key pair so that you can SSH into the instance. If this is your first time creating a instance, you will need to either create or import a key pair. We’ll create one:

Click “+ Create Key Pair”.
Enter a name for your key. This can be any name you choose.
Select “SSH Key” as the key type.
Click “Create Keypair”.
The private key will be displayed. Take a copy of this and store locally on your computer! (See Step 9)

Click “Done”.

As mentioned above: Be sure to make a copy of your new private key on your local machine!
Click the up arrow button next to your newly created keypair. The selected keypair should appear under the “Allocated” subheading.

Step 7 – Launch

Click “Launch Instance” at the bottom of the dialogue to create and launch the instance. You should see your instance being created under the list of instances.
Wait until the instance has been created and the Power State reads “Running”.

Step 8 – Associate Floating IP

If you plan to SSH into your instance from your computer you’ll need to associate a floating IP: Click the actions dropdown for your instance, and select “Associate Floating IP”.

Select any IP address from the “IP Address” dropdown.
Select your instance from the “Port to be associated” dropdown. Click the “Associate” at the bottom right of the dialogue.

Step 9 – Store your ssh key

Note: The rest of this article assumes you have a Linux command line interface available. If you are a Windows user, please see here for instructions on how to install Windows Subsystem for Linux.

If you are running Ubuntu, place your private key in a file named “supercloud_key” in ~/.ssh

Set the permission on the key:
$ chmod 600 supercloud_key

Note: Windows users can use a tool such as WSL instead.

Step 10 – Log in

You can now ssh to the instance using the floating IP that you associated above. In this case, you will need to login as user ”ubuntu”.
For example:

What to do next?

Make sure that your instance is up to date before continuing:

$ sudo apt-get update

See this page to learn how to activate a deep learning environment and run a Python script.

Step into the future with Firmus

Get in touch