Proxmox and memory

From DWIKI
Revision as of 22:56, 16 February 2022 by Tony (talk | contribs) (Created page with " = Docs = *[https://pve.proxmox.com/wiki/Dynamic_Memory_Management Dynamic Memory Management] = Clues = == pvesh == pvesh get /cluster/resources Get current configurati...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Docs

Clues

pvesh

pvesh get /cluster/resources

Get current configuration of VM 105

pvesh get /nodes/nuc/qemu/105/status/current

Now to get maxmem given to VM 105

pvesh get /nodes/nuc/qemu/105/status/current --output-format json | jq '.maxmem'

Get memory usage

pvesh get /cluster/resources --output-format json |jq '.[] | select(.id=="qemu/105") | .mem'