Gathering Parameters for Launching an Instance with the CLI

Use the following list commands to gather the minimum information required to launch an instance. Launching instances in Metacloud requires a flavor, an image, security group, key pair (for SSH), and a private network.

Choosing a Flavor

The flavor defines the computing resources, the amount of memory (RAM), the storage capacity, and the number of virtual CPUs for your instance. View the flavor list and note the ID of the flavor you need.

$ openstack flavor list
+------+--------------+-------+------+-----------+-------+-----------+
| ID   | Name         |   RAM | Disk | Ephemeral | VCPUs | Is Public |
+------+--------------+-------+------+-----------+-------+-----------+
| 1    | m1.tiny      |   512 |    1 |         0 |     1 | True      |
| 2    | m1.small     |  2048 |   20 |         0 |     1 | True      |
| 3    | m1.medium    |  4096 |   40 |         0 |     2 | True      |
| 4    | m1.large     |  8192 |   80 |         0 |     4 | True      |
| 5    | m1.xlarge    | 16384 |  160 |         0 |     8 | True      |
+------+--------------+-------+------+-----------+-------+-----------+    

Choosing an Image

An image defines the operating system for the instance, but may also include additional software, security features, or packages. View the image list and note the ID of the image.

$ openstack image list
+---------------+---------------------------------------+--------+
| ID            | Name                                  | Status |
+---------------+---------------------------------------+--------+
| <image_id>    | ubuntu_1204_server_cloudimg_amd64     | active |
| <image_id>    | ubuntu_1404_server_cloudimg_amd64     | active |
| <image_id>    | CentOS-7-x86_64-GenericCloud-1508-mc  | active |
| <image_id>    | CentOS-7-x86_64-GenericCloud-1508-mc  | active |
| <image_id>    | cirros-0.3.4-x86_64                   | active |
+---------------+---------------------------------------+--------+

Use the grep command to filter a list for a specific keyword, for example:

$ openstack image list | grep 'cirros'
| 95d786e3-0a6c-4db1-bc3c-1a184d585ff1 | cirros-0.3.4-x86_64 | active |
| d51b539b-a8a8-4274-808f-3dc96b6199a1 | cirros-0.3.3-x86_64 | active |

Choosing a Security Group

A security group defines the network traffic routing to your instance. View the security group list and choose the ID of the security group to use for your instance. If you have not created any security groups, you can assign the instance to the default security group.

$ openstack security group list
+----+---------+----------------------------+
| ID | Name    | Description                |
+----+---------+----------------------------+
|  2 | secNew  |                            |
|  1 | default | default                    |
+----+---------+----------------------------+

Using a Key Pair

A key pair can be used with multiple instances. View the key pair list and note the Name of the key pair to use for SSH access.

$ openstack keypair list
+------+-------------------------------------------------+
| Name | Fingerprint                                     |
+------+-------------------------------------------------+
| test | 00:36:41:3a:06:1a:9a:00:0b:63:00:2d:b3:bf:00:00 |
+------+-------------------------------------------------+

Choosing a Network

You created a network in the first step for Launching Instances with the CLI. View the network list and note the ID of that private network to use with your instance.

$ openstack network list
+-----------------+----------------------+-------------------------+
| ID              | Name                 | Subnets                 |
+-----------------+----------------------+-------------------------+
| <network_id>    | PUBLIC DO NOT MODIFY | <subnet_id>             |
| <network_id>    | test-1002            | <subnet_id> 10.9.2.0/24 |
+---------------------+----------------------+---------------------+

Note
If you want to connect to your instance using SSH with a floating IP address and using the Cisco Managed Network or Cisco Managed Gateway Network configurations, it is important for you to create a network. See Creating a Network for Instances.