# 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/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/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/add-hosts-virtualized-cluster#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://content.gitbook.com/content/SNWOoFOMzRblbHdwmlrR/blobs/7vcU21X85WkguOD6L8Jr/8up4ql15b4rbe50r65fzb7jti3ka3y2oycod0vpbieygm4w334x8luh1lge4d9hq.png" 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/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.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.platform9.com/private-cloud-director/virtualized-clusters/virtualmachine/vm-flavors.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
