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.
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
- In the left menu, select Virtual Data Centers → the VDC → Virtual Machines → the VM. The VM page opens.
- On the VM page, find the General properties section and expand it if it is collapsed.
- Enter the number of cores in the CPU (Cores) field. The allowed range is shown in the field hint.
- 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.
- 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-balloonAPI method has taken from the guest OS. The fields are visible when the VM reports this data.
Next
- Start, stop and restart a VM
- Set VDC quotas
- Virtual machines — what you can change in a running VM.
API methods: vm-set, vms-vcpu-class — in the API reference.