Before Nova can start instances, it first needs to know what resources should be assigned to those instances. The way Nova handles resource assignments is to define flavors. A flavor specifies the number of vCPUs, RAM, and the disk to assign to an instance.
To create a new flavor, you will need the following:
openstack
command-line clientopenrc
file containing appropriate credentialsThe flavor we will create in this example will have the following attributes:
openstack.cookbook
The following commands are used to create a new flavor:
openstack flavor list
This will bring back an output like the following:
openstack flavor create --vcpus 1 --ram 512 --disk 5 --public openstack.cookbook
This will bring back an output like the following:
openstack flavor list
This gives an output like the following:
The openstack flavor create --vcpus [vcpu_count] --ram [ram_MB] --disk [disk_GB] --public [name]
command is used to define flavors. The --public
option is used to specify if the flavor should be available to all users of the OpenStack environment, or if it should remain limited in scope and visibility to the project in which the user belongs to.
3.137.221.240