From Documentation
Jump to: navigation, search
(Create an Instance)
(Create an Instance)
Line 27: Line 27:
 
=Create an Instance=
 
=Create an Instance=
 
To create an instance, you will need to follow the following steps:<br>
 
To create an instance, you will need to follow the following steps:<br>
(1) Under the “Compute” tab, press “Instances” on the left hand side<br>
+
 
(2) Click “Launch Instance” from the top right corner<br>
+
# Under the “Compute” tab, press “Instances” on the left hand side<br>
(3) Choose an instance name, nova availability zone (the only option), flavor and image to boot from<br>
+
# Click “Launch Instance” from the top right corner<br>
(4) In the “Access & Security” tab, select the Key pair you created in earlier steps <br>
+
# Choose an instance name, nova availability zone (the only option), flavor to boot from.<br>
(5) By default your instance will have the “default” security group (see [[#Modify a Security Group | above]])<br>
+
# Select Image
(6) By default your instance will connect to the network specifically created for you<br>
+
## Under "source", change 'Select Boot Source' to image.
(7) After the instance is created, associate a floating ip to the instance in order to reach it externally<br>
+
## Select desired image by clicking the plus (+) symbol.
 +
# In the “Access & Security” tab, select the Key pair you created in earlier steps <br>
 +
# By default your instance will have the “default” security group (see [[#Modify a Security Group | above]])<br>
 +
# By default your instance will connect to the network specifically created for you<br>
 +
# After the instance is created, associate a floating ip to the instance in order to reach it externally<br>

Revision as of 09:43, 27 February 2017

Request Access

The SharcNet cloud is located on https://cloud.sharcnet.ca/dashboard , To login to the cloud, you will need to request access by submitting a ticket to sharcnet. After access is granted, you will be able to login using your Compute Canada (not SHARCNET) username and password.

Keypair Creation

The first thing you need to do is to create a keypair. The key pair will allow you to login to the instances you create in the cloud. To do so follow the following guidelines Under the “Compute” tab, press on “Access & Security” tab in the left hand side.
(1) Press “Key Pairs” tab
(2) Create “Create Key Pair” in the upper right corner
(3) Choose a name for the keypair

The cloud will automatically download a file to your desktop. The file’s name will be “Name you chose for the keypair”.pem. This .pem file is the way you will access your machines

Modify a Security Group

To reach a service on your instances, you will need open a port on them.
Follow the following steps to achieve that:
(1)Under the “Compute” tab”, press on “Access & Security” tab in the left hand side.
(2)Press “Security Groups” on the top tab bar.
(3)You can add rules using the “Add Rule” on the top right corner.
(4)Ingress traffic is traffic reaching your machine from outside world. Egress is the traffic your machine communicates to the outside world.

Enable SSH Access

(1) Under default, click "Manage Rules".
(2) Click "Add Rule".
(3) Fill in the port # as '22', leave the other default options.

Create an Instance

To create an instance, you will need to follow the following steps:

  1. Under the “Compute” tab, press “Instances” on the left hand side
  2. Click “Launch Instance” from the top right corner
  3. Choose an instance name, nova availability zone (the only option), flavor to boot from.
  4. Select Image
    1. Under "source", change 'Select Boot Source' to image.
    2. Select desired image by clicking the plus (+) symbol.
  5. In the “Access & Security” tab, select the Key pair you created in earlier steps
  6. By default your instance will have the “default” security group (see above)
  7. By default your instance will connect to the network specifically created for you
  8. After the instance is created, associate a floating ip to the instance in order to reach it externally