> Documentation index for agents: /hcp/3.3/en/llms.txt

# Change vCPU and memory

Change the cores and memory of a virtual machine (VM) when it lacks resources or has more resources than it needs. Center checks the CPU and RAM quotas of the VDC (virtual data center) not when you change the values, but when the VM starts.

## Before you begin

- You need the **VDC admin** or **Vm Developer** role in this VDC, or the **Cluster master** role.
- The VM is not locked and is not being moved to another node or pool: the fields are unavailable while the VM is being moved.
- The new cores and memory fit into the CPU and RAM quotas of the VDC together with the other running VMs; otherwise the VM does not start. A user with the **Cluster master** role changes the VDC quotas — [Set VDC quotas](/hcp/3.3/en/vdcs/set-vdc-quotas/index.md).

You do not need to stop the VM before the change. Center saves the new cores and memory immediately, but a running VM gets them only at the next start — after **Restart** or a stop and a start.

## Change the cores and memory

1. In the left menu, select **Virtual Data Centers** → the VDC → **Virtual Machines** → the VM. The VM page opens.
2. On the VM page, find the **General properties** section and expand it if it is collapsed.
3. Enter the number of cores in the **CPU (Cores)** field. The allowed range is shown in the field hint.
4. Enter the amount of memory in gigabytes in the **RAM** field: the **GB** unit is shown to the right of the field, and you cannot select another one. The minimum is 1 GB; the maximum is shown in the field hint.
5. Click **Save changes**. The button is available when at least one value is changed and all fields are filled in correctly.

## Check the result

The web interface shows the notification **VM \<name> changed successfully**, and the **CPU (Cores)** and **RAM** fields show the new values.

If Center rejects the change, the web interface shows a notification with the error. If the VM does not start after the change because of the quota, reduce the number of cores or the amount of memory, or contact a user with the **Cluster master** role to increase the VDC quota.

## More

- **vCPU class** — how the VM gets CPU time when the node is overloaded. Only a user with the **Cluster master** role sees this field, and only if vCPU classes are enabled in the cluster. You can change the class of a running VM too.
- **Name** and **Description** in the same section are changed the same way — with the **Save changes** button.
- **RAM used** and **RAM ballooned** next to the **RAM** field — how much memory is used in the guest OS and how much memory the `vms-balloon` API method has taken from the guest OS. The fields are visible when the VM reports this data.

## Next

- [Start, stop and restart a VM](/hcp/3.3/en/vms/start-stop-vm/index.md)
- [Set VDC quotas](/hcp/3.3/en/vdcs/set-vdc-quotas/index.md)
- [Virtual machines](/hcp/3.3/en/vms/index.md) — what you can change in a running VM.

API methods: `vm-set`, `vms-vcpu-class` — in the [API reference](/hcp/3.3/en/api/methods/index.md).
