Hi,
I want to monitor a VMs RAM usage from the host so I can dynamically adjust the "minimum RAM" by script so ballooning won't remove more RAM than the guest got free or available and caching isn't wasting that much RAM. My idea was to run
Is there a way to do that using the qemu guest agent? I've seen its possible to read/write from/to files inside the guest using the agent. Or do I need to use SSH for that?
Would be a bit annoying to add a monitor user with RSA key for that to each of the VMs.
I want to monitor a VMs RAM usage from the host so I can dynamically adjust the "minimum RAM" by script so ballooning won't remove more RAM than the guest got free or available and caching isn't wasting that much RAM. My idea was to run
free -b
inside the guest and monitor total RAM and available RAM because the "qm monitor" command is only reporting "free" and "used" RAM but not "avaialbe" or "cache/buffer" (so you can't see how much is used for caching).Is there a way to do that using the qemu guest agent? I've seen its possible to read/write from/to files inside the guest using the agent. Or do I need to use SSH for that?
Would be a bit annoying to add a monitor user with RSA key for that to each of the VMs.