Ubuntu 24.04
Sponsored Link

OpenStack Dalmatian : Add Flavors2024/10/04

 

Add flavors that are used when you create virtual machine instances, that configures vCPU or Memory and others of a virtual machine instance.

[1] Add Flavors.
# create [m1.small] Flavor with CPU 1, Memory 2048M, Root Disk 10G

root@dlp ~(keystone)#
openstack flavor create --id 1 --vcpus 1 --ram 2048 --disk 10 m1.tiny

+----------------------------+---------+
| Field                      | Value   |
+----------------------------+---------+
| OS-FLV-DISABLED:disabled   | False   |
| OS-FLV-EXT-DATA:ephemeral  | 0       |
| description                | None    |
| disk                       | 10      |
| id                         | 1       |
| name                       | m1.tiny |
| os-flavor-access:is_public | True    |
| properties                 |         |
| ram                        | 2048    |
| rxtx_factor                | 1.0     |
| swap                       | 0       |
| vcpus                      | 1       |
+----------------------------+---------+

root@dlp ~(keystone)#
openstack flavor create --id 2 --vcpus 2 --ram 4096 --disk 10 m1.small

root@dlp ~(keystone)#
openstack flavor create --id 3 --vcpus 4 --ram 8192 --disk 10 m1.medium

root@dlp ~(keystone)#
openstack flavor create --id 4 --vcpus 8 --ram 16384 --disk 10 m1.large

# create [m2.medium] Flavor with CPU 4, Memory 8192M, Root Disk 10G, Ephemeral Disk 10G
# * Ephemeral Disk is 2nd Disk, you need to format it on a VM instance by yourself
# * Ephemeral Disk is removed when parent VM instance would be removed

root@dlp ~(keystone)#
openstack flavor create --id 5 --vcpus 4 --ram 8192 --disk 10 --ephemeral 10 m2.medium

+----------------------------+-----------+
| Field                      | Value     |
+----------------------------+-----------+
| OS-FLV-DISABLED:disabled   | False     |
| OS-FLV-EXT-DATA:ephemeral  | 10        |
| description                | None      |
| disk                       | 10        |
| id                         | 5         |
| name                       | m2.medium |
| os-flavor-access:is_public | True      |
| properties                 |           |
| ram                        | 8192      |
| rxtx_factor                | 1.0       |
| swap                       | 0         |
| vcpus                      | 4         |
+----------------------------+-----------+

root@dlp ~(keystone)#
openstack flavor list

+----+-----------+-------+------+-----------+-------+-----------+
| ID | Name      |   RAM | Disk | Ephemeral | VCPUs | Is Public |
+----+-----------+-------+------+-----------+-------+-----------+
| 1  | m1.tiny   |  2048 |   10 |         0 |     1 | True      |
| 2  | m1.small  |  4096 |   10 |         0 |     2 | True      |
| 3  | m1.medium |  8192 |   10 |         0 |     4 | True      |
| 4  | m1.large  | 16384 |   10 |         0 |     8 | True      |
| 5  | m2.medium |  8192 |   10 |        10 |     4 | True      |
+----+-----------+-------+------+-----------+-------+-----------+
Matched Content