set_guest_resources
Reconfigure a guest's CPU cores and memory. For LXC, changes apply live; for QEMU, on reboot.
Instructions
Change a guest's CPU cores and/or memory. RECONFIGURES the guest.
cores: CPU core count (LXC = total cores; QEMU = cores per socket).memory_mb: RAM in MB.
Provide at least one. For LXC this applies live (no reboot). For QEMU, core/
memory changes generally take effect on the next reboot. Read the current
values first with guest_config. Needs node, vmid, type.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| node | Yes | ||
| type | Yes | ||
| vmid | Yes | ||
| cores | No | ||
| memory_mb | No |