OpenStack Bobcat : Add Flavors2023/10/05 |
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.small +----------------------------+----------+ | Field | Value | +----------------------------+----------+ | OS-FLV-DISABLED:disabled | False | | OS-FLV-EXT-DATA:ephemeral | 0 | | description | None | | disk | 10 | | id | 1 | | name | m1.small | | os-flavor-access:is_public | True | | properties | | | ram | 2048 | | rxtx_factor | 1.0 | | swap | 0 | | vcpus | 1 | +----------------------------+----------+ # create [m1.large] 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 2 --vcpus 4 --ram 8192 --disk 10 --ephemeral 10 m1.large +----------------------------+----------+ | Field | Value | +----------------------------+----------+ | OS-FLV-DISABLED:disabled | False | | OS-FLV-EXT-DATA:ephemeral | 10 | | description | None | | disk | 10 | | id | 2 | | name | m1.large | | 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.small | 2048 | 10 | 0 | 1 | True | | 2 | m1.large | 8192 | 10 | 10 | 4 | True | +----+----------+------+------+-----------+-------+-----------+ |
Sponsored Link |
|