> For the complete documentation index, see [llms.txt](https://docs.platform9.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.platform9.com/private-cloud-director/virtualized-clusters/virtualmachine/vm-hot-add-cpu-or-memory.md).

# VM Hot Add CPU Or Memory

<code class="expression">space.vars.product\_name</code> supports hot-add of CPU and / or memory resources to a running virtual machine. Using this feature, you can increase CPU cores or memory allocated to a running VM, without having to power-cycle it. This is valuable for production VMs that need more resources to meet workload demands but that can not be powered off.

### Pre-requisites <a href="#pre-requisites" id="pre-requisites"></a>

* Read more here about [Zero-Size Flavor](/private-cloud-director/virtualized-clusters/virtualmachine/flavorless-vms-with-hot-plug.md#zero-size-flavor). Using **zero-size flavor** when creating your VM is a requirement for hot-add. Before you can hot-add CPU or memory resources to a VM, the VM must have been created using zero-size flavor.

### Hot-add CPU or Memory to a Running VM <a href="#hot-add-cpu-or-memory-to-a-running-vm" id="hot-add-cpu-or-memory-to-a-running-vm"></a>

1. Select a powered-on VM that was created with a zero-size flavor.
2. On the VM grid view, navigate to **▷** **Other** **Actions ▷ Hotplug**.
3. Enter the new vCPU and/or memory value for the VM. The values cannot exceed the **Hotplug vCPUs Maximum** and **Hotplug RAM Maximum** set when the VM was created.
4. Click Hotplug VM.

### Limitations <a href="#limitations" id="limitations"></a>

* Hot add can only be used to increase the current CPU or memory allocation of a running VM. Reducing currently allocated CPU or memory is supported only while the VM is stopped.
* You can not use the hot-add feature to resize the disk of a running VM today.
* Hot-add-capable VMs that boot from a persistent volume and were created before the <code class="expression">space.vars.product\_acronym</code> 2025.10 release may fail to live migrate until a one-time corrective hotplug is applied. See [Resolve Live Migration Failures for Legacy Boot-from-Volume Hotplug VMs](/private-cloud-director/virtualized-clusters/troubleshooting-and-log-files/hotplug-boot-from-volume-live-migration-failure.md).

### Known Issues <a href="#known-issues" id="known-issues"></a>

#### Hot-add VMs Can Use More Host Memory Than Their Hotplug RAM Value <a href="#hot-add-vms-can-use-more-host-memory-than-their-hotplug-ram-value" id="hot-add-vms-can-use-more-host-memory-than-their-hotplug-ram-value"></a>

A hot-add VM starts with its full **Hotplug RAM Maximum**. The VirtIO balloon driver in the guest then returns the memory above the VM's **Hotplug RAM** value to the host. The return is gradual, and it never happens if the guest has no working balloon driver. The most common case is a Windows VM installed from an ISO without the virtio-win guest tools. Until the memory is returned:

* The VM can use host memory up to its Hotplug RAM Maximum, while the VM details still show the smaller Hotplug RAM value. A few such VMs can exhaust a host's memory and affect every VM on that host.
* Windows Server 2019, Windows Server 2022, and Windows 11 guests can report the Hotplug RAM Maximum as installed memory in Task Manager, System Information, and Performance Monitor. This can happen even with the balloon driver installed, and rebooting the VM does not reliably correct it.

To limit the impact:

* Set **Hotplug RAM Maximum** to the most memory you plan to hot-add. The **Deploy New VM** wizard pre-fills 65536 MiB (64 GiB). You cannot change the maximum after the VM is created. If the VM does not need memory hot-add, set Hotplug RAM Maximum to the same value as Hotplug RAM.
* When you create hot-add VMs through the CLI, API, or Terraform provider, set `HOTPLUG_MEMORY_MAX` and `HOTPLUG_CPU_MAX` in the VM metadata. If you omit them, the VM's maximum is the host's total memory and vCPU count.
* Install the [virtio-win guest tools](/private-cloud-director/virtualized-clusters/virtualmachine/qemu-guest-agent.md#windows-windows-server-and-windows-11) in every Windows VM that uses hot-add, preferably in your golden image. Confirm that **VirtIO Balloon Driver** appears under **System devices** in Device Manager.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.platform9.com/private-cloud-director/virtualized-clusters/virtualmachine/vm-hot-add-cpu-or-memory.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
