Comments (3)
  • Add a Comment
  • Edit
  • More Actions v
  • Quarantine this Entry

1 ThinkOpenly commented Permalink

"nova boot --image 7febf98f-93ac-48e7-9377-a17f2bfa2077 --key-name mykey --flavor 3 test"

 
Where did that magic number come from?

2 rfolco commented Permalink

7febf98f-93ac-48e7-9377-a17f2bfa2077 is the image ID you just uploaded to Glance with image-create command. You can list image IDs with "$ glance image-list". Also, you can use image name instead. Just replace the image ID with "Little-Endian" in the example above.

 
For the key, you can generate keys with these commands:
$ nova keypair-add KEY_NAME > MY_KEY.pem
$ chmod 600 MY_KEY.pem

3 MauroRodrigues commented Permalink

Pretty much the same answer applies to '-- flavor 3' if that was part of the magic number question.
You can list the flavors your tenant has access in openstack by calling 'nova flavor-list' in the console.

 
The output will show you how much of each resource is offered by each flavor, something like:
$ nova flavor-list
+--------------------------------------+--------------+-----------+------+-----------+------+-------+-------------+-----------+
| ID | Name | Memory_MB | Disk | Ephemeral | Swap | VCPUs | RXTX_Factor | Is_Public |
+--------------------------------------+--------------+-----------+------+-----------+------+-------+-------------+-----------+
| 1 | m1.tiny | 512 | 1 | 0 | | 1 | 1.0 | True |
| 2 | m1.small | 2048 | 20 | 0 | | 1 | 1.0 | True |
| 3 | m1.medium | 4096 | 40 | 0 | | 2 | 1.0 | True |
| 4 | m1.large | 8192 | 80 | 0 | | 4 | 1.0 | True |
| 5 | m1.xlarge | 16384 | 160 | 0 | | 8 | 1.0 | True |
+--------------------------------------+--------------+-----------+------+-----------+------+-------+-------------+-----------+
 
so you can reference the flavor-id, in the example 3, according to the resource ammount necessary for your guest.