---
title: "Resize the VM"
method: PUT
path: "/vm.resize"
---

# Resize the VM

`PUT /vm.resize`

## Request body

- VmResize
  - `desired_vcpus` integer
  - `desired_ram` integer — desired memory ram in bytes
  - `desired_balloon` integer — desired balloon size in bytes

## Response `204`

The VM instance was successfully resized.

## Other responses

- `404` — The VM instance could not be resized because it is not created.
- `429` — The VM instance could not be resized because a cpu removal is still pending.

## Changes

- **2025-07-25** `b09352e354b3` — 1 info
  - added the non-success response with the status `429`
- **2020-11-07** `cea93133a9d4` — 1 warning, 1 info
  - removed the request property `desired_ram_w_balloon`
  - added the new optional request property `desired_balloon`
- **2020-08-10** `8330c1bec628` — 1 info
  - added the new optional request property `desired_ram_w_balloon`
- **2020-04-28** `bf56946c8349` — 1 warning, 1 info
  - removed the request property `desired_balloon`
  - removed the non-success response with the status `429`

[Change history](https://skmtc.dev/kata-containers/apis/cloud-hypervisor-api/changes/vm.resize/put.md)

---

[API](https://skmtc.dev/kata-containers/apis/cloud-hypervisor-api.md) · [All operations](https://skmtc.dev/kata-containers/apis/cloud-hypervisor-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/kata-containers/cloud-hypervisor-api/revisions/c30c01a9fb80/schema)
