Cloud Quick Start: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 50: Line 50:


<!--T:7-->
<!--T:7-->
A form is displayed where you define the instance (if you are following along with this example, you can use the same values).
A form is displayed where you define your virtual machine (if you are following along with this example, you can use the same values).
*''Details'' tab
*''Details'' tab
**''Availability Zone'': There is only one zone; do not change its name.
**''Availability Zone'': There is only one zone; do not change its name.
**''Instance name'': <code>test</code><br/>Enter a name for your instance. {{Box |Some constraints apply when choosing an instance name:
**''Instance name'': <code>test</code><br/>Enter a name for your virtual machine. {{Box |Some constraints apply when choosing a name for your virtual machine:
* must be under 253 characters
* must be under 253 characters
* each label (seperated by ".") must be between 1 and 63 characters long
* each label (seperated by ".") must be between 1 and 63 characters long
Line 60: Line 60:
* must be case-insensitive (i.e. will convert upper case to lower case)
* must be case-insensitive (i.e. will convert upper case to lower case)
}} [[? are there naming constraints ? length, character types, etc.) ?]]
}} [[? are there naming constraints ? length, character types, etc.) ?]]
**''Flavor'': <code>c1-3.75gb-36</code><br/>The flavor defines [instance/VM] specifications. This particular flavor has one virtual CPU, 3.75GB of RAM (memory) and an ephemeral disk of 36GB. Ephemeral disks are disks created and destroyed with the instance; they reside on the local hardware running the VM.
**''Flavor'': <code>c1-3.75gb-36</code><br/>The flavor defines virtual machine specifications. This particular flavor has one virtual CPU, 3.75GB of RAM (memory) and an ephemeral disk of 36GB. Ephemeral disks are disks created and destroyed with the instance; they reside on the local hardware running the virtual machine.


::&rarr;Flavors starting with a "p" do not have an extra ephemeral disk and thus no "-##" on the end. They also have a very small root disk of only 2.2G, with a typical OS taking about 770MB of that. The root disk, as you might have guessed, is mounted at the root of the Linux file system.
::&rarr;Flavors starting with a "p" do not have an extra ephemeral disk and thus no "-##" on the end. They also have a very small root disk of only 2.2G, with a typical OS taking about 770MB of that. The root disk, as you might have guessed, is mounted at the root of the Linux file system.
Line 66: Line 66:
::&rarr;Flavors starting with a "c" have an extra ephemeral disk attached, as well as a 20GB root disk.
::&rarr;Flavors starting with a "c" have an extra ephemeral disk attached, as well as a 20GB root disk.


:*''Instance Count'': <code>1</code><br/>Number of VMs to create.
:*''Instance Count'': <code>1</code><br/>Number of virtual machines to create.
:*''Instance Boot Source'': Boot from image<br/> Indicates that you wish to boot from an already created image. [[??]]
:*''Instance Boot Source'': <code>Boot from image<code><br/> Indicates that you wish to boot from an already created image. [[??]]
:*''Image Name'': <code>CentOS-7-x86-64-GenericCloud-1503</code><br/>Name of the image to boot from.
:*''Image Name'': <code>CentOS-7-x86-64-GenericCloud-1503</code><br/>Name of the image to boot from.
:*''Project Limits'': The green bars reflect the fraction of your available resources that will be consumed by the VM you are about to launch.
:*''Project Limits'': The green bars reflect the fraction of your available resources that will be consumed by the VM you are about to launch.
Line 79: Line 79:
::&rarr;If you do not have a key pair, please see above [Cloud Quick Start#SSH Key Pair].
::&rarr;If you do not have a key pair, please see above [Cloud Quick Start#SSH Key Pair].
:*''Security Groups'': Do not remove the checkmark <code>default</code>.
:*''Security Groups'': Do not remove the checkmark <code>default</code>.
*''Networking tab''<br/>Do not change this now. Networking will be discussed later, after you have launched an instance.
*''Networking tab''<br/>Do not change this now. Networking will be discussed later, after you have launched a virtual machine.
*''Post-Creation Tab''<br/>Do not change this now. This is where you would paste a '''cloud-init''' script which can do things [[?working?]]like install and configure software and add users and additional SSH keys (see [[OpenStack#Accessing a VM with Multiple Users]]) in an automated step after the VM is created. See [http://cloudinit.readthedocs.org/en/latest/index.html# cloudinit] for more details about clout-init.
*''Post-Creation Tab''<br/>Do not change this now. This is where you would paste a '''cloud-init''' script which can do things [[?working?]]like install and configure software and add users and additional SSH keys (see [[OpenStack#Accessing a VM with Multiple Users]]) in an automated step after the VM is created. See [http://cloudinit.readthedocs.org/en/latest/index.html# cloudinit] for more details about clout-init.
*''Advanced Options'' tab<br/>Leave ''Disk Partition'' on ''Automatic'' for now.
*''Advanced Options'' tab<br/>Leave ''Disk Partition'' on ''Automatic'' for now.


<!--T:8-->
<!--T:8-->
Once you have reviewed all the tabs and defined your instance, click on the ''Launch'' button and your instance will be created.
Once you have reviewed all the tabs and defined your virtual machine, click on the ''Launch'' button and your virtual machine will be created.
The ''Instances'' list will be displayed and the ''Status'' field will show the different tasks required before the instance is run. It may take a few minutes for your instance to start, depending on a variety of factors.
The ''Instances'' list will be displayed and the ''Status'' field will show the different tasks required before the virtual machine is run. It may take a few minutes for your virtual machine to start, depending on a variety of factors.


<!--T:9-->
<!--T:9-->
Note: When creating a persistent service, we recommend that you boot your instance from a volume. See [[Persistent Services In The Cloud]].
Note: When creating a persistent service, we recommend that you boot your virtual machine from a volume. See [[Persistent Services In The Cloud]].


==Network== <!--T:10-->
==Network== <!--T:10-->


===Private IP=== <!--T:11-->
===Private IP=== <!--T:11-->
On the ''Instances'' list, are the IP addresses to which your instance is linked. By default, a network on <code>192.168.X.0</code> is created for your tenant (also referred to as a "project" on the OpenStack dashboard).
On the ''Instances'' list, are the IP addresses to which your virtual machine is linked. By default, a network on <code>192.168.X.0</code> is created for your tenant (also referred to as a "project" on the OpenStack dashboard).
The list shows your instance's private IP. You can use this IP to communicate with other instances 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-->
Line 104: Line 104:


===Firewall, Add Rules to Allow SSH=== <!--T:14-->
===Firewall, Add Rules to Allow SSH=== <!--T:14-->
To connect to your instance 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.


<!--T:15-->
<!--T:15-->
Line 116: Line 116:
[[File:Add-Rule-Form.png|400px|thumb| Add Rule (Click for larger image)]]
[[File:Add-Rule-Form.png|400px|thumb| Add Rule (Click for larger image)]]


==Connecting To Your Instance With SSH== <!--T:21-->
==Connecting To Your Virtual Machine With SSH== <!--T:21-->
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.   


Line 126: Line 126:


<!--T:23-->
<!--T:23-->
You are now connected to your instance.
You are now connected to your virtual machine.


=== If connecting from a windows machine=== <!--T:24-->
=== If connecting from a windows machine=== <!--T:24-->
cc_staff
1,486

edits