openstack Verified current stable Not installed? Cloud Infrastructure

Openstack / Create New Flavor

Create New Flavor

Creates a new OpenStack flavor for compute instances.

$
Terminal
openstack flavor create <flavor_name> --vcpus 2 --ram 4096 --disk 20

When To Use

During the setup of a new environment requiring specific compute resources.

Pro Tip

Check quotas before creation to avoid exceeding limits set by the OpenStack administrator.

Command Builder

Tune the command before you copy it

Back to syntax
$
Generated Command
openstack flavor create <flavor_name> --vcpus 2 --ram 4096 --disk 20

Anatomy of Output

Understanding the result

+---------------------------------------------+ Table Header Separator

Indicates the start of the newly created flavor information.

| ID | Flavor ID

Unique identifier assigned to the newly created flavor.

| vCPUs: 2 | Flavor Specifications

Number of virtual CPUs allocated to this flavor.

Troubleshooting

Common pitfalls

Quota exceeded for instance flavors

Solution: Reduce the number of existing flavors or request an increase from the administrator.

Invalid value for RAM: must be greater than 0

Solution: Ensure that RAM is set to a valid positive integer.

Failed to create flavor: Invalid disk size

Solution: Ensure the disk size is a valid integer greater than or equal to the minimum required.

Command Breakdown

What each part is doing

openstack
Base Command
The executable that performs this operation. Here it runs Openstack before the shell applies any redirect operators.
<flavor_name>
flavor name
The value supplied for flavor name.
--vcpus
Command Option
Tool-specific option used by this command invocation.
--ram
Command Option
Tool-specific option used by this command invocation.
--disk
Command Option
Tool-specific option used by this command invocation.

Alternative Approaches

Comparable commands in other tools

Alternative cloud infrastructure tools for the same job.