Memory allocation and ballooning for LXD VM clients

Hi,

I am trying to figure out how memory allocation is used for virtual machine targets on LXD ? Will the guest do some form of ballooning i.e. release non-used RAM to the host or will it reserve/allocate everything regardless ? Am I correct that “lxc info” does not provide this information (yet)?

I tried adding the virtio-balloon device using raw.qemu, but this produces this error:

And hint or tips are most welcome :slight_smile:

Take a look at

Despite the title it goes onto discuss memory ballooning.

Many thanks! I’ll have to test a bit more to see whether the guest releases it or not.

Hi @samvde

So does the VM release the memory when it is not using it?