Manage flavors
In OpenStack, flavors define the compute, memory, and
storage capacity of nova computing instances. To put it
simply, a flavor is an available hardware configuration
for a server. It defines the size
of a
virtual server that can be launched.
A flavor consists of the following parameters:
Flavor ID
Automatically generated by OpenStack.
Name
Name for the new flavor.
VCPUs
Number of virtual CPUs to use.
Memory MB
Amount of RAM to use (in megabytes).
Root Disk GB
Amount of disk space (in gigabytes) to use
for the root (/) partition.
Ephemeral Disk GB
Amount of disk space (in gigabytes) to use
for the ephemeral partition. If unspecified,
the value is 0 by default.
Ephemeral disks offer machine local disk
storage linked to the lifecycle of a VM
instance. When a VM is terminated, all data on
the ephemeral disk is lost. Ephemeral disks
are not included in any snapshots.
Swap
Amount of swap space (in megabytes) to use.
If unspecified, the value is 0 by default.
The default flavors are:
m1.tiny (1 VCPU/0 GB Disk/512 MB RAM)
m1.smaller (1 VCPU/0 GB Disk/1024 MB RAM)
m1.small (1 VCPU/10 GB Disk/2048 MB RAM)
m1.medium (2 VCPU/10 GB Disk/3072 MB RAM)
m1.large (4 VCPU/10 GB Disk/8192 MB RAM)
m1.xlarge (8 VCPU/10 GB Disk/8192 MB RAM)
You can create and manage flavors with the nova
flavor-* commands provided by the
python-novaclient package.
Create flavors
List flavors to show the ID and name,
the amount of memory, the amount of disk space
for the root partition and for the ephemeral
partition, the swap, and the number of virtual
CPUs for each flavor.
$ nova flavor-list
If the flavor you want does not exist, you can create a flavor.
When you create a flavor, you must specify
the flavor name, ID, RAM size, disk size, and the
number of VCPUs.
$ nova flavor-create FLAVOR_NAME FLAVOR_ID RAM_IN_MB ROOT_DISK_IN_GB NUMBER_OF_VCPUS
The Flavor ID should be a number between 1-255 and should not
contain special characters or spaces.
For a list of optional parameters, run the following command: $ nova help flavor-create
Delete a flavor
Delete a specified flavor, as follows:
$ nova flavor-delete FLAVOR_ID