Create a flavor
Flavors are used to create cloud servers via OpenStack CLI and Terraform; they define the number of vCPUs, RAM, and the server's local disk size (optional). You can create a flavor with a GPU via OpenStack API. Flavors correspond to custom configurations. When creating a flavor, consider the available custom configuration values for lines.
OpenStack CLI
Terraform
OpenStack API
The flavor will only be available for the project and pool for which you configured authorization in the OpenStack API.
-
Create a flavor:
openstack flavor create \--private \--vcpus <vcpu> \--ram <ram_size> \--disk <disk_size> \<flavor_name>Specify:
<vcpu>— number of vCPUs;<ram_size>— RAM size in MB;- optional:
<disk_size>— local disk size in GB. To create a flavor with a network disk, the value must be zero; <flavor_name>— flavor name. Must be unique and not match the names of previously deleted flavors. You can view the list of existing flavors usingopenstack flavor list.
Example of creating a flavor with 1 vCPU, 1 GB RAM, and a 5 GB local disk size:
openstack flavor create --private --vcpus 1 --ram 1024 --disk 5 new_flavor