In this article, you will learn:
- How to prepare the VM to change parameters
- How to change CPU or RAM
- How to change disk size
- Common issues
- Frequently asked questions
VM Preparation
Make changes to the virtual machine parameters in the OpenNebula SunStone interface.
First, select the virtual machine by following these steps:
- Log into the ON SunStone interface.
- In the left menu, select Instances VMs.
- Choose the VM to change the parameters.
Before changing the parameters, make sure the machine is in the POWEROFF state:
Change CPU or RAM
You can increase and decrease both CPU and RAM values. Follow these steps:
- In the VM detail, select the Capacity tab.
- Click the Resize button.
- Set the required values
- Confirm with the Resize button.
Change Disk Space
You can only increase disk space, not decrease it. If you need to reduce the disk size of the virtual machine, create a new VM and migrate the data to it.
Increase disk space by following these steps:
- In the VM detail, select the Storage tab.
- Click the Resize icon next to the disk you want to indrease.
- Set the desired value in the pop-up window.
- Confirm with the Resize button.
If the increase is successful, you will see the new value in the Size column for the corresponding Image. This change should go through the DISK_RESIZE state back to POWEROFF. If the size returns to its original value, contact support. Report the name of the Cloud service and the specific VM.
After increasing the disk and booting up the VM, check the filesystem. In Linux, use the command df -h
to do this. If the filesystem didn’t change, Power Off (hard) and turn the VM on again. Restarting is not enough.
Common Issues
Common problems with changing cloud VM parameters include:
- Inactive Resize button
- Error decreasing disk size
- Error with CPU/RAM quota
- Failed to increase parameters
Inactive Resize Button
Issue: The Resize button is not active when changing CPU/RAM.
Cause: The virtual machine is probably not powered off.
Solution: Shut down the virtual machine and make sure it is in the POWEROFF state.
Disk Decrease Error
Issue: There is an error: [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
Issue: There is an error: [one.vm.resize] User [****] : group [****] limit of X reached for MEMORY/CPU quota in VM.
Solution: Free up memory or CPU by either throttling/killing other VMs or upgrading the service.
Parameter Increase Failed
Issue: There is an error: Parameter increase failed.
Solution: Undeploy (hard), then Deploy and try increasing the parameters again.
FAQ
Question: Can I change VPS ON parameters this way?
Answer: No, follow this guide for the VPS ON service.