cc_staff
1,486
edits
No edit summary |
No edit summary |
||
Line 50: | Line 50: | ||
<!--T:7--> | <!--T:7--> | ||
A form is displayed where you define | 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 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 | **''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. | ||
::→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. | ::→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: | ||
::→Flavors starting with a "c" have an extra ephemeral disk attached, as well as a 20GB root disk. | ::→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 | :*''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: | ||
::→If you do not have a key pair, please see above [Cloud Quick Start#SSH Key Pair]. | ::→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 | *''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 | 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 | 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 | 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 | 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 | 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 | 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 | ==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 | You are now connected to your virtual machine. | ||
=== If connecting from a windows machine=== <!--T:24--> | === If connecting from a windows machine=== <!--T:24--> |