# VM Flavors

<code class="expression">space.vars.product\_name</code> uses t-shirt sized configurations of resource allocations, called flavors, to allow you to specify the resource allocation for VMs. This feature enables administrators to templatize and standardize on a few different VM configurations that developers can use, rather than having a configuration sprawl.

<code class="expression">space.vars.product\_name</code> ships with a set of flavors out of box, but administrators can create new flavors and make them available to end users.

## Flavor Properties

Flavors capture the following configuration information for a VM:

1. vCPUs - number of CPU cores
2. RAM - amount of memory
3. Disk - size of the VM ephemeral disk, **only used when** creating a VM from an image or a [VM Ephemeral Disk Snapshot](https://docs.platform9.com/private-cloud-director/2025.10/virtualized-clusters/virtual-machine-snapshot#type-1---vm-ephemeral-disk-snapshot). Ignored when creating a VM using a volume for root disk.
4. Metadata - used to define:
   1. What [Host Aggregate](https://docs.platform9.com/private-cloud-director/2025.10/virtualized-clusters/host-aggregate) the VM should get placed on, if any, by specifying metadata (key-value pairs) that correspond to a specific [Host Aggregate](https://docs.platform9.com/private-cloud-director/2025.10/host#host-aggregates). When creating a VM using this flavor, the VM will be placed on hosts in your virtualized cluster that are part the selected host aggregate (that match the specified metadata attributes).

## Create Flavors

Navigate to the Flavors menu in the UI under Virtual Machines, and create or edit flavors to suit your desired CPU, memory and disk configuration.

<figure><img src="https://1100565312-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIYcmHH6U169jTwihxwwy%2Fuploads%2Fgit-blob-20c7b4d56c735392b8a5841747cacca06979c6e7%2F8up4ql15b4rbe50r65fzb7jti3ka3y2oycod0vpbieygm4w334x8luh1lge4d9hq.png?alt=media" alt=""><figcaption></figcaption></figure>

## Zero CPU or Memory Flavors

<code class="expression">space.vars.product\_name</code> allows you to create flavorless VMs where you specify CPU and memory information dynamically at VM creation time, instead of having to use a pre-define value via a flavor. This is done by using special flavors that have both CPU and memory set to zero. Read more about creating [flavorless VMs here](https://docs.platform9.com/private-cloud-director/2025.10/virtualized-clusters/virtualmachine/flavorless-vms-with-hot-plug).

## Zero Disk Flavors

You can create a VM flavor with disk size set to zero.

Using such a flavor is a requirement when creating a VM that will use a block storage volume for it's root disk.

When used to create a VM that will use ephemeral root disk, the root disk size for the VM will be set to be equal to the size of the image.
