Cloud Quick Start: Difference between revisions

Jump to navigation Jump to search
m
no edit summary
mNo edit summary
mNo edit summary
Line 11: Line 11:
3. Create your cloud account [https://www.computecanada.ca/create-a-cloud-account/ here].
3. Create your cloud account [https://www.computecanada.ca/create-a-cloud-account/ here].


=Creating Your First Virtual Machine= <!--T:26-->
=Creating your first virtual machine= <!--T:26-->
==Log into the East or West Cloud==
==Log into the East or West cloud==


[[File:OpenStack-Dashboard-Compute-Overview.png|400px|thumb| OpenStack Dashboard, Compute Overview (Click for larger image)]]
[[File:OpenStack-Dashboard-Compute-Overview.png|400px|thumb| OpenStack Dashboard, Compute Overview (Click for larger image)]]
Line 19: Line 19:
When you log in, the OpenStack dashboard shows an overview of your resources.
When you log in, the OpenStack dashboard shows an overview of your resources.


==SSH Key Pair== <!--T:2-->
==SSH key pair== <!--T:2-->


When you start a virtual machine (also often referred to as an ''instance'' or a ''VM''),  there is no password for an admin or a root account on the virtual machine. This is for security reasons, so that no one can log in with a password (you wouldn't want a hacker to be able to access the brand new virtual machine you just started using some default password...).
When you start a virtual machine (also often referred to as an ''instance'' or a ''VM''),  there is no password for an admin or a root account on the virtual machine. This is for security reasons, so that no one can log in with a password (you wouldn't want a hacker to be able to access the brand new virtual machine you just started using some default password...).
Line 25: Line 25:
OpenStack creates your VM with one SSH public key installed and you can only log in using this SSH key pair. The SSH public key can either come from a key pair which you have already created on some other machine, or can be created by OpenStack. If you are using an existing key pair from a remote machine, you will need to import the SSH public key into OpenStack so that it can be injected into the newly created VM. Alternatively, OpenStack can create a key pair for you with the private key downloaded to your local machine. In order to manage your key pairs, click on ''Access & Security'' from the left menu, then on the ''Key Pairs'' tab. From here you will have the option of importing an existing key pair, or creating a new key pair.
OpenStack creates your VM with one SSH public key installed and you can only log in using this SSH key pair. The SSH public key can either come from a key pair which you have already created on some other machine, or can be created by OpenStack. If you are using an existing key pair from a remote machine, you will need to import the SSH public key into OpenStack so that it can be injected into the newly created VM. Alternatively, OpenStack can create a key pair for you with the private key downloaded to your local machine. In order to manage your key pairs, click on ''Access & Security'' from the left menu, then on the ''Key Pairs'' tab. From here you will have the option of importing an existing key pair, or creating a new key pair.


===Importing an Existing Key Pair=== <!--T:3-->
===Importing an existing key pair=== <!--T:3-->
[[File:Import-Key-Pair-Form.png|400px|thumb| Import key pair (Click for larger image)]]
[[File:Import-Key-Pair-Form.png|400px|thumb| Import key pair (Click for larger image)]]
#Click [[File:Import-Key-Pair-Button.png]]; the ''Import Key Pair'' window is displayed.
#Click [[File:Import-Key-Pair-Button.png]]; the ''Import Key Pair'' window is displayed.
Line 32: Line 32:
#Click on the ''Import Key Pair'' button.
#Click on the ''Import Key Pair'' button.


===Creating a New Key Pair=== <!--T:4-->
===Creating a new key pair=== <!--T:4-->
[[File:Create-Key-Pair-Form.png|400px|thumb| Create key pair (Click for larger image)]]
[[File:Create-Key-Pair-Form.png|400px|thumb| Create key pair (Click for larger image)]]
#Click on [[File:Create-Key-Pair-Button.png]]; the ''Create Key Pair'' window is displayed.
#Click on [[File:Create-Key-Pair-Button.png]]; the ''Create Key Pair'' window is displayed.
Line 98: Line 98:
The list shows your virtual machine's private IP. You can use this IP to communicate with other virtual machines running on the same cloud.
The list shows your virtual machine's private IP. You can use this IP to communicate with other virtual machines running on the same cloud.


===Public IP (Assign a Public IP)=== <!--T:12-->
===Public IP (assign a public IP)=== <!--T:12-->
To assign a public IP, you need to select ''Associate Floating IP'' from the ''More'' button of the ''Actions'' column in the ''Instances'' list. If this is your first time through this Quick Start Guide, your tenant hasn't been assigned an external IP address yet. You need to click on the “+” sign to bring up the ''Allocate Floating IP'' dialog box. There is only one pool of public addresses, so the correct pool will already be selected; simply click on the ''Allocate IP'' button.
To assign a public IP, you need to select ''Associate Floating IP'' from the ''More'' button of the ''Actions'' column in the ''Instances'' list. If this is your first time through this Quick Start Guide, your tenant hasn't been assigned an external IP address yet. You need to click on the “+” sign to bring up the ''Allocate Floating IP'' dialog box. There is only one pool of public addresses, so the correct pool will already be selected; simply click on the ''Allocate IP'' button.
The ''Manage Floating IP Associations'' screen is displayed, indicating the IP address and the port to which it is [https://en.wikipedia.org/wiki/Network_address_translation NATted]; simply click on the ''Associate'' button.
The ''Manage Floating IP Associations'' screen is displayed, indicating the IP address and the port to which it is [https://en.wikipedia.org/wiki/Network_address_translation NATted]; simply click on the ''Associate'' button.
Line 105: Line 105:
[[File:Manage-Floating-IP-Associations-Form.png|400px|thumb| Manage Floating IP (Click for larger image)]]
[[File:Manage-Floating-IP-Associations-Form.png|400px|thumb| Manage Floating IP (Click for larger image)]]


===Firewall, Add Rules to Allow SSH=== <!--T:14-->
===Firewall, add rules to allow SSH=== <!--T:14-->
To connect to your virtual machine via SSH, you will need to allow SSH to get through.
To connect to your virtual machine via SSH, you will need to allow SSH to get through.


Line 121: Line 121:
If you created a key pair on the first step, you will need to know where it is.   
If you created a key pair on the first step, you will need to know where it is.   


===Connecting from a Linux Machine=== <!--T:22-->
===Connecting from a Linux machine=== <!--T:22-->
{{Command| ssh -i /path/where/your/key/is/my_key.key username@<public IP of your server>}}
{{Command| ssh -i /path/where/your/key/is/my_key.key username@<public IP of your server>}}
Most common Linux distributions have standardized on the name of the distro as the username. To connect to the provided CentOS images, you would use:
Most common Linux distributions have standardized on the name of the distro as the username. To connect to the provided CentOS images, you would use:
Line 130: Line 130:
You are now connected to your virtual machine.
You are now connected to your virtual machine.


=== Connecting from a Windows Machine=== <!--T:24-->
=== Connecting from a Windows machine=== <!--T:24-->
See [[Connecting with PuTTY]] or [[Connecting with MobaXTerm]].
See [[Connecting with PuTTY]] or [[Connecting with MobaXTerm]].


rsnt_translations
56,430

edits

Navigation menu