resize_guest
Resize CPU, memory, or disk of a Proxmox VM or container. Requires confirmation to apply changes; disk resizing is immediate and irreversible.
Instructions
Resize CPU, memory, and/or disk of a VM or container.
At least one of cores, memory, or disk_size must be provided. CPU and memory changes take effect on next reboot for running guests. Disk resize is immediate but IRREVERSIBLE (disks can only grow).
Args: vmid: The numeric ID of the VM or container. cores: New number of CPU cores. memory: New memory size in MB. disk_size: Disk size change. Use '+10G' to add 10GB, or '50G' for absolute size. Supported units: K, M, G, T. disk: Disk name to resize (default 'scsi0' for VMs, auto-mapped to 'rootfs' for CTs). confirm: Must be true to execute. First call without confirm shows a warning.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| disk | No | scsi0 | |
| vmid | Yes | ||
| cores | No | ||
| memory | No | ||
| confirm | No | ||
| disk_size | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |