Hi, I'm currently testing deployments with pulumi using packer templates.
So far the basics work as expected but I'm stuck on a setting issue that seems to affect both pulumi and terraform providers. As far as I know there is no way to set the memory as static or changing memory_min when creating a VM from a template.
The template was created with 1cpu and 2GB of RAM
[image: 1752573420785-screenshot-2025-07-15-at-11.56.01.png]
The VM created from this template using pulumi was assigned 2cpus and 4GB of RAM, however this only sets memory_max
[image: 1752573490942-screenshot-2025-07-15-at-11.56.21.png]
I found the following post that talks about this: https://xcp-ng.org/forum/topic/5628/xenorchestra-with-terraform
and also the folllowing github issue https://github.com/vatesfr/terraform-provider-xenorchestra/issues/211
Manually setting the memory limits after VM creation defeats the purpose of automation. I suppose that implementing those settings in the relevant providers is a core feature. In most cases, VMs need static memory limits.
In the meantime, is there any workaround that I should investigate or anything that I missed ?
slax81 created this issue in vatesfr/terraform-provider-xenorchestra
open
Dynamic memory control
#211