Unraid VM min & max memory setting

Hello Unraid peeps!

I’m curious as to how the unraid VM setting for min & max memory works. According to the Unraid 6/VM Manager wiki setting the min and max, “will enable memory ballooning, allowing KVM to shrink/expand memory assignments dynamically as needed.” When I boot an ubuntu VM, it only reports the min amount as the total memory available. Does KVM programagically expand this when memory runs low?

I believe that you need to be running the guest agent and drivers. For my Windows 10 VM I installed everything off the RedHat virtio driver ISO and it seems to work.

How it works on my KVM, which is Fedora hosted, not unraid, is that the guest sees the maximum available RAM, but half of it is used (or whatever your min/max ratio is).

So on my Windows VM I have it set to 16g min, 32g max, and it sees 32g total, 16g used (plus whatever Windows is actually using).

I can use virsh setmem win10 32g --live and it slowly decreases the amount used in the VM until it has all 32g available.