> For the complete documentation index, see [llms.txt](https://docs.glesys.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.glesys.com/products/compute/kvm-virtual-machines/how-tos/resize-virtual-machines.md).

# Resize virtual machines

***

Resizing a KVM VM changes the resources (CPU, RAM, and disk) allocated to the virtual machine. These are the two resizing options for KVM virtual machines:

* **CPU and memory**. This option increases or decreases the number of CPU cores and the amount of RAM available to a VM.
* **Storage**. You can permanently increase the disk size of a virtual machine.

Increasing a virtual machine’s memory and CPU improves its performance. Increasing the size of its disk increases the amount of data that can be stored.

## **Resize a KVM VM using the control panel**

In the server overview, you can reconfigure the server's resources, such as the number of CPU cores, memory, and disk size.&#x20;

Click on the VM name in the control panel, then **Edit configuration**.&#x20;

<figure><img src="/files/xtNLHcKRUQkRPTMzKnO0" alt=""><figcaption></figcaption></figure>

You drag the handles in the *Reconfigure* dialog box to adjust the CPU cores, RAM, and disk size. Click **Reconfigure** to save; the changes take effect immediately, and you can utilize all resources in a few seconds.

<div align="left"><figure><img src="/files/baI3nCZjndyhrdVITjEB" alt="" width="563"><figcaption></figcaption></figure></div>

### **Reconfigure CPU and memory**

Memory can be increased without requiring a server reboot. However, if you decrease the memory, the server will automatically restart.

Using Linux as the operating system allows for increasing or decreasing CPU cores without rebooting the virtual machine. In contrast, Windows requires a restart when the number of CPU cores is changed.

### **Reconfigure storage**

Note that **you can only increase the disk size**. Once it has been increased, it cannot be reduced again. When resizing the disk, the virtual machine will restart automatically, as disk changes cannot be made while the machine is running. The system partition will automatically expand to the new size during the reboot.

### Overview of the monthly costs <a href="#overview-of-the-monthly-costs" id="overview-of-the-monthly-costs"></a>

You can always view a breakdown of the costs for your KVM virtual machine at the bottom of the server's overview page. It's a good idea to check the cost overview after making changes to the VM to avoid any surprises.

<figure><img src="/files/cLlz6WttCXZRcVIXhqEg" alt=""><figcaption></figcaption></figure>

## **Resize a KVM VM using the API**

To resize a VM using the [API](/platform/control-panel/api.md), use the [server/edit](https://github.com/GleSYS/API-docs/wiki/API-Documentation#serveredit) endpoint. To view the costs of a VM, use the [server/costs](https://github.com/GleSYS/API-docs/wiki/API-Documentation#servercosts) endpoint. To view the estimated costs, use the [server/estimatedcost](https://github.com/GleSYS/API-docs/wiki/API-Documentation#serverestimatedcost) endpoint.


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.glesys.com/products/compute/kvm-virtual-machines/how-tos/resize-virtual-machines.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
