Hi @afk!
We are working on a new version of the Xen Orchestra Terraform provider to improve VM memory control.
In this new version, the memory_max setting will now set the maximum limits for both the dynamic and static memory.
There is also an optional new setting called 'memory_min', which can be used to set the minimum limit for dynamic VM memory.
This version will also resolve the issue with template memory limits used during VM creation.
Can you test this pre-release version and provide us with some feedback? Or maybe just tell us if this new behaviour is more likely to meet your needs?
https://github.com/vatesfr/terraform-provider-xenorchestra/releases/tag/v0.33.0-alpha.1
I will try asap to do a pre-release version for the Pulumi provider.