Updated

Server Quick Start

To create a server we need to specify what flavor (the specifications of your cloud instance), networks and image we’ll be using

To request a list of available flavors we can use openstack flavor list

$ openstack flavor list

+-------------------+-------------+--------+------+-----------+-------+-----------+
| ID                | Name        |    RAM | Disk | Ephemeral | VCPUs | Is Public |
+-------------------+-------------+--------+------+-----------+-------+-----------+
| 07cc214e-ab6b-40b | xer.small   |   2048 |   32 |        32 |     1 | True      |
| b-99b5-ef05405c4c |             |        |      |           |       |           |
| e1                |             |        |      |           |       |           |
| 08c0c213-ecd0-436 | xer.large   |  32768 |  128 |       128 |     4 | True      |
| 2-a17a-4665ca5a5d |             |        |      |           |       |           |
| 59                |             |        |      |           |       |           |
| 14d4062d-dcd0-457 | xer.2xlarge |  65536 |  256 |       256 |     8 | True      |
| 5-a794-0092c4188c |             |        |      |           |       |           |
| 75                |             |        |      |           |       |           |
| 2ef2fd64-cd3d-488 | xe.medium   |   2048 |   64 |        64 |     2 | True      |
| 2-bc16-f292255378 |             |        |      |           |       |           |
| 50                |             |        |      |           |       |           |
+-------------------+-------------+--------+------+-----------+-------+-----------+

Note: above list truncated for the sake of brevity

Listing available images

Images can similarly be listed

$ openstack image list --limit 2

+--------------------------------------+--------------+--------+
| ID                                   | Name         | Status |
+--------------------------------------+--------------+--------+
| eb020596-5748-4c24-8330-07995559f060 | Ubuntu-18.04 | active |
| c38664dc-0299-4a4b-b0d4-fb48552e68fb | Ubuntu-20.04 | active |
+--------------------------------------+--------------+--------+

Listing available networks

$ openstack network list

+-----------------------------+-----------------+------------------------------+
| ID                          | Name            | Subnets                      |
+-----------------------------+-----------------+------------------------------+
| a70efb73-7cd6-4398-a00c-f03 | Public01        | ee2c3366-9fb6-44dd-9151-cbe4 |
| 4ddc1cd51                   |                 | c8e35b47                     |
+-----------------------------+-----------------+------------------------------+

Creating your first server

We now have all the information we need to create our first server!

$ openstack server create "our first server" --flavor xer.small --image c38664dc-0299-4a4b-b0d4-fb48552e68fb --network Public01

+-----------------------------+------------------------------------------------+
| Field                       | Value                                          |
+-----------------------------+------------------------------------------------+
| OS-DCF:diskConfig           | MANUAL                                         |
| OS-EXT-AZ:availability_zone |                                                |
| OS-EXT-STS:power_state      | NOSTATE                                        |
| OS-EXT-STS:task_state       | scheduling                                     |
| OS-EXT-STS:vm_state         | building                                       |
| OS-SRV-USG:launched_at      | None                                           |
| OS-SRV-USG:terminated_at    | None                                           |
| accessIPv4                  |                                                |
| accessIPv6                  |                                                |
| addresses                   |                                                |
| adminPass                   | M7G2ch7gScBB                                   |
| config_drive                |                                                |
| created                     | 2022-02-17T23:40:06Z                           |
| flavor                      | xer.small                                      |
|                             | (07cc214e-ab6b-40bb-99b5-ef05405c4ce1)         |
| hostId                      |                                                |
| id                          | 64fd00b0-a34b-4bc1-b33a-21aa63769a57           |
| image                       | Ubuntu-20.04                                   |
|                             | (c38664dc-0299-4a4b-b0d4-fb48552e68fb)         |
| key_name                    | None                                           |
| name                        | our first server                               |
| progress                    | 0                                              |
| project_id                  | dffbba213axxxxxxxxxxxxx394074ebd               |
| properties                  |                                                |
| security_groups             | name='default'                                 |
| status                      | BUILD                                          |
| updated                     | 2022-02-17T23:40:15Z                           |
| user_id                     | aa81xxxxxxxxxxxxxxxc93c454893a45               |
| volumes_attached            |                                                |
+-----------------------------+------------------------------------------------+

We’ll recieve the details of our server and that it’s in the BUILD state.

Lets check in on how it’s progressing


$ openstack server show 64fd00b0-a34b-4bc1-b33a-21aa63769a57

+-----------------------------+------------------------------------------------+
| Field                       | Value                                          |
+-----------------------------+------------------------------------------------+
| OS-DCF:diskConfig           | MANUAL                                         |
| OS-EXT-AZ:availability_zone | nova                                           |
| OS-EXT-STS:power_state      | Running                                        |
| OS-EXT-STS:task_state       | None                                           |
| OS-EXT-STS:vm_state         | active                                         |
| OS-SRV-USG:launched_at      | 2022-02-17T23:41:09.000000                     |
| OS-SRV-USG:terminated_at    | None                                           |
| accessIPv4                  |                                                |
| accessIPv6                  |                                                |
| addresses                   | Public01=103.151.65.193                        |
| config_drive                |                                                |
| created                     | 2022-02-17T23:40:06Z                           |
| flavor                      | xer.small                                      |
|                             | (07cc214e-ab6b-40bb-99b5-ef05405c4ce1)         |
| hostId                      | 94576863d7d5d9b583c8168462c097de21a80b51d59d23 |
|                             | 23b12c4955                                     |
| id                          | 64fd00b0-a34b-4bc1-b33a-21aa63769a57           |
| image                       | Ubuntu-20.04                                   |
|                             | (c38664dc-0299-4a4b-b0d4-fb48552e68fb)         |
| key_name                    | None                                           |
| name                        | our first server                               |
| progress                    | 0                                              |
| project_id                  | dffbba213afc4a938cd92cd394074ebd               |
| properties                  |                                                |
| security_groups             | name='default'                                 |
| status                      | ACTIVE                                         |
| updated                     | 2022-02-17T23:41:09Z                           |
| user_id                     | aa81xxxxxxxxxxxxxxxc93c454893a45               |
| volumes_attached            |                                                |
+-----------------------------+------------------------------------------------+

Our server is now in the ACTIVE state and ready to go! 🥳

Proudly Australian 🦘