Flavorless VMs with Hot-Plug

Private Cloud Director supports creating flavorless VMs with hot plug capability that allows you to:

  • Provision a VM with zero vCPUs and RAM in the VM flavor and define its resources when deploying the VM.

  • Dynamically add or remove vCPU and RAM after a VM is powered on.

The flavorless VMs and hot-plug features provide admins more flexibility when sizing VMs, while maintaining the guardrails of standard flavors.

Create a Hot-Plug Compatible Flavor

  1. In the Private Cloud Director UI, navigate to Virtual Machines ▷ Flavors and click Create Flavor.

  2. Name: enter a descriptive name (for example, hotplug-small).

  3. Enable Hotplugging: toggle on.

  4. Set a Disk size.

  5. (Optional) Add Metadata if you want PCD to place VMs on specific host aggregates.

  6. Check the Make Public checkbox if you would like to make this flavor available to all tenants.

  7. Click Create Flavor.

Deploy a VM with a Hot Plug Flavor

  1. Go to Virtual Machines ▷ Virtual Machines and click Deploy New VM.

  2. Step 1

    • Name: enter a descriptive name for the VM.

    • Boot VM From: select the boot source for your VM

    • Next, choose the appropriate Image, Volume, or VM Snapshot to boot the VM from.

    • Cluster: select the cluster where you would like to deploy this VM.

  3. Step 2

    • Flavor Selection: enable the Hot-plug Compatible toggle to filter the list.

    • Choose the hot-plug compatible flavor you created above.

    • In the Hotplug RAM (MB) and Hotplug vCPUs fields, enter the initial resources you need.

      1. Hotplug RAM Maximum (MB) and Hotplug vCPUs Maximum set the upper bound that the VM can grow to later.

  4. Step 3

    • Assign the VM a network.

  5. Step 4

    • Select the number of VMs to deploy, SSH key, cloud-init, and security group configuration, along with any metadata you might want to add to the VM.

    • Click Deploy Virtual Machine.

PCD deploys the VM with the requested resources even though the underlying flavor defines none.

Resize a Running VM (Hot-plug)

  1. Select a powered-on VM that was created with a hot-plug compatible flavor. Navigate to Other Actions ▷ Hotplug.

  2. Enter the new vCPU and/or RAM value. These values must not exceed the __maximums set at the time of creation.

  3. Click Hotplug VM.

Use Flavorless VM with CLI

To automate creation of flavorless VM using CLI, API or terraform provider, use the hot plug compatible flavor when creating the VM and use the following values for the metadata fields.

Limitations & Best Practices

  • Hot-plug does not change the flavor itself; flavor metadata remains “0 CPU / 0 RAM”.

  • Disk size cannot be resized via hot-plug.

Last updated

Was this helpful?