pve_vm_resize_disk
Grow a virtual machine or container disk by specifying the disk config key and size, with support for relative or absolute size increments.
Instructions
Grow a disk of a VM or container.
Applies to: QEMU VMs and LXC containers, located by ``vmid`` (``node``
optional and auto-resolved). ``disk`` is the config key (e.g. ``scsi0``,
``virtio1``, or ``rootfs``/``mp0`` for containers). ``size`` is either
relative (``+10G`` — add 10 GiB) or an absolute new size (``64G``);
units K/M/G/T. GROW ONLY: PVE does not support shrinking disks, and an
absolute size smaller than the current one is rejected by PVE.
Side effects: enlarges the disk volume (the filesystem inside the guest
usually must be grown separately). Waits up to PVE_MCP_TASK_WAIT
seconds; returns JSON with ``vmid``/``node``/``type``/``disk``/``size``
and ``task``. Source: PUT /nodes/{node}/{qemu|lxc}/{vmid}/resize.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| disk | Yes | ||
| node | No | ||
| size | Yes | ||
| vmid | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |