Knowledge Base›Servers›Virtual Machine Parameters

Cloud – Virtual Machine Parameters

On this pagePreparing the VM for changing parametersChanging CPU and RAMChanging disk spaceCommon problemsFrequently Asked Questions

In this article you will learn:


Preparing the VM for changing parameters

Change the virtual machine parameters in the OpenNebula Sunstone interface. First, select the virtual machine using these steps:

  1. Log in to the interface ON Sunstone ⧉.
  2. In the left menu, select Instances VMs.
  3. Select the virtual machine whose parameters you want to change.
Selecting a virtual machine in ON Sunstone
Selecting a virtual machine in ON Sunstone

Before changing the parameters, make sure the machine is powered off:

  1. Click the power off button and select Power Off hard.
  2. Verify that the machine is in the state POWEROFF.
ON Sunstone - powering off a virtual machine
ON Sunstone – powering off a virtual machine

Changing CPU and RAM

You can both increase and decrease the CPU and RAM of a VM. Follow these steps:

  1. In the VM controls, select the tab Capacity.
  2. Click the button Resize.
  3. In the window, set the required values.
  4. Confirm the settings with the button Resize in the window.
ON Sunstone - opening the CPU and RAM change window
ON Sunstone – opening the CPU and RAM change window

The interface lets you assign both physical and virtual CPUs:

  • Physical CPU corresponds to the actual number of hardware cores available to the VM. It also lets you assign fractions of cores (0.5).
  • Virtual CPU is the number of cores the VM counts on.

Different configurations of physical and virtual CPUs can affect the performance and overall operation of the virtual machine.


Changing disk space

You can only increase disk space; decreasing it is not possible. If you need to reduce the disk size of a virtual machine, create a new VM and transfer the data to it. We do not perform migrations on our side.

Increase the disk space using these steps:

  1. In the VM controls, select the tab Storage.
  2. For the disk you want to increase, click the icon Resize.
  3. In the window, set the required value.
  4. Confirm the settings with the button Resize in the window.
ON Sunstone - opening the disk resize window
ON Sunstone – opening the disk resize window

If the increase is successful, you will see the new value in the column Size for the corresponding Image. This change should persist from the state DISK_RESIZE until the state POWEROFF. If the size returns to the original value, contact Support via the form ⧉. Specify the name of the Cloud and the particular VM.

After increasing the disk, check once the VM is powered on that the change was applied correctly. On Linux, use the command df -h. If the change has not taken effect in the system, power off the VM via Power Off (hard) and power it on again. A restart is not enough.


Common problems

Common problems with changing the parameters of a cloud VM include:

Inactive Resize button

Problem: The Resize button for changing CPU/RAM is not active.

Cause: The virtual machine is probably not powered off.

Solution: Power off the virtual machine and make sure it is in the state POWEROFF.

Disk shrinking error

Problem: An error is displayed: [one.vm.diskresize] New disk size has to be greater than current one.

Cause: You can only increase the disk size, not decrease it.

Solution: Create a new virtual machine with the required parameters.

CPU/RAM quota error

Problem: An error is displayed: [one.vm.resize] User [****] : group [****] limit of X reached for MEMORY/CPU quota in VM.

Solution: Free up more memory or CPU, either by limiting/removing other VMs or by increasing the overall performance of the service.

Parameter increase failed

Problem: An error is displayed: The parameter increase failed.

Solution: Perform Undeploy (hard), then Deploy, and try to increase the parameters again.


Frequently Asked Questions

Can I change parameters this way for the VPS ON service too?

No, for the VPS ON service, follow this guide.

Was this article helpful?

Your feedback helps us improve our articles.

Your message goes to the documentation team, who do not reply to it. If you need help, contact us using the contact form. Do not include passwords or personal data.

Didn't find what you were looking for?

Ask other customers on the Help community website.