pve_vm_set_config
Change configuration of a Proxmox VE VM or LXC container using a dictionary of config values. Hotpluggable changes apply instantly; others are pending until restart.
Instructions
Change configuration options of a VM or container.
Applies to: QEMU VMs and LXC containers, located by ``vmid`` (``node``
optional and auto-resolved). ``config`` is a dict of PVE config keys to
values, e.g. ``{"cores": 4, "memory": 8192, "name": "web02",
"onboot": 1}`` — the same keys pve_vm_config returns.
Side effects: updates the guest config. NOTE: most changes (cores,
memory without hotplug, disks, NICs) only take effect after the guest
is restarted; PVE applies hotpluggable changes immediately and stages
the rest as "pending". Waits up to PVE_MCP_TASK_WAIT seconds when PVE
runs the change as a task; returns JSON with ``vmid``/``node``/``type``/
``applied`` (the submitted config) and ``task``.
Source: POST /nodes/{node}/qemu/{vmid}/config (async) or
PUT /nodes/{node}/lxc/{vmid}/config (LXC has no async variant).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| node | No | ||
| vmid | Yes | ||
| config | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |