In OpenStack, a flavor defines the compute, memory, and storage capacity of a virtual server that users can launch. As an administrative user, you can create, edit, and delete flavors.
Only administrative users can create and manage flavors.
A flavor consists of the following parameters:
Parameter | Description |
---|---|
Flavor Name |
The flavor name. |
VCPUs |
Number of virtual CPUs to use. |
RAM |
Amount of RAM to use, in megabytes. |
Root Disk |
Amount of disk space (in gigabytes) to use for the root (/) partition. |
Ephemeral Disk |
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 life cycle 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 Disk |
Amount of swap space (in megabytes) to use. If unspecified, the default is 0. |
ID |
The flavor ID is generated by OpenStack if the option selected is auto. By default, this field is set to auto. |
Public |
Indicates if the flavor is public. |
The default flavors are:
m1.tiny (1 VCPU/0 GB Disk/512 MB RAM)
m1.small (1 VCPU/20 GB Disk/2048 MB RAM)
m1.medium (2 VCPU/40 GB Disk/4096 MB RAM)
m1.large (4 VCPU/80 GB Disk/8192 MB RAM)
m1.xlarge (8 VCPU/160 GB Disk/16384 MB RAM)
Log in to the dashboard.
Choose the admin project from the CURRENT PROJECT drop-down list.
On the Admin tab, click the Flavors category.
Click
.In the Create Flavor window, enter or select the following values:
Flavor Info tab Name
Enter the flavor name.
ID
The flavor ID, generated by OpenStack.
VCPUs
Enter the number of virtual CPUs to use.
RAM MB
Enter the amount of RAM to use, in megabytes.
Root Disk GB
Enter the mount of disk space in gigabytes to use for the root (/) partition.
Ephemeral Disk GB
Enter the 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 life cycle 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 Disk MB
Enter the amount of swap space (in megabytes) to use. If unspecified, the default is 0.
In the Flavor Access tab, you can control access to the flavor by moving projects from the All Projects column to the Selected Projects column.
Only projects in the Selected Projects column can use the flavor. If there are no projects in the right column, all projects can use the flavor.
Click
.
Log in to the dashboard.
Choose the admin project from the CURRENT PROJECT drop-down list.
On the Admin tab, click the Flavors category.
Select the flavor that you want to edit. Click
.In the Edit Flavor window, you can change the flavor name, VCPUs, RAM, root dish, ephemeral disk, and swap disk values..
Click
.