Pcornel
Virtualization

Resource Management

Cheat sheet · https://pcornel.dk/topic.php?topic=3610

Back to the Topic

Answer

Resource management controls how VMs share host capacity: reservations guarantee a minimum, limits cap the maximum, shares set priority under contention, and resource pools group VMs so these rules apply together.

Remember

  • Limits apply even when the host is idle.
  • Shares only matter under contention.
  • Reservations reduce what others and HA can use.

First checks

  • virsh schedinfo <vm> — CPU shares/quota (libvirt)
  • Get-VMProcessor <vm> | fl Reserve,Maximum,RelativeWeight — Hyper-V CPU controls
  • qm config <vmid> | grep -E 'cpulimit|cpuunits|memory' — Proxmox controls

Verify in this order

demand → shares/reservations/limits → scheduler/allocator

Where it usually breaks

First mismatch in management intent → host/cluster capability → hypervisor runtime/task → virtual resource/device → guest state → workload-visible read-back; preserve identity/native error/pre-state before mutation.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3610

Confirmation

Confirm action

Continue?