<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[XenOrchestra with Terraform]]></title><description><![CDATA[<p dir="auto">Hello! We got some issues with VM's creating using Terraform via XenOrchestra.<br />
We prepared some VM Templates with Packer.<br />
Template VM RAM size: 4 GiB</p>
<p dir="auto">For example we need to deploy a new VM with 8 GiB RAM. We add required property to .tf file: memory_max = 8394967296</p>
<p dir="auto">This is doc: <a href="https://registry.terraform.io/providers/terra-farm/xenorchestra/latest/docs/resources/vm" target="_blank" rel="noopener noreferrer nofollow ugc">https://registry.terraform.io/providers/terra-farm/xenorchestra/latest/docs/resources/vm</a></p>
<p dir="auto">After successfuly VM creation we saw that VM has dynamically RAM pool settings: memory min 4 GiB, memory Max: 8 GiB</p>
<p dir="auto">Could you tell us how to set a fixed memory size for VM using terraform and XenOrchestra?</p>
<p dir="auto">If target VM has same amount RAM as a template we see dynamically RAM pool with 4 GiB min and 4 GiB max settings.<br />
We tried manually set template size (experiment!) to 128 GiB. We thouhgt that terraform will reduce this value to our target value = 8 GiB. But it failed <img src="https://xcp-ng.org/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f603.png?v=0594cb2b96d" class="not-responsive emoji emoji-android emoji--smiley" style="height:23px;width:auto;vertical-align:middle" title="=)" alt="😃" /> VM got 128 GiB RAM and cannot start (Because our host have 128 GiB total mem and other running VM's).</p>
<p dir="auto">We saw that dynamically memory feature is deprecated. We wanna know hot to solve this.</p>
<p dir="auto">Thank you.</p>
]]></description><link>https://xcp-ng.org/forum/topic/5628/xenorchestra-with-terraform</link><generator>RSS for Node</generator><lastBuildDate>Tue, 14 Apr 2026 00:13:43 GMT</lastBuildDate><atom:link href="https://xcp-ng.org/forum/topic/5628.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 01 Mar 2022 18:20:18 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to XenOrchestra with Terraform on Wed, 19 Jun 2024 12:25:29 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/ddelnano" aria-label="Profile: ddelnano">@<bdi>ddelnano</bdi></a> Sorry to drag this up and also no OP, but I'm just looking at how to set a static RAM allocation via terraform too so this would be relevant to me.<br />
Here's a snippet of code, it's using a generic Ubuntu 22.04 LTS cloud image template which has 1GB ram by default, in the code I set the memory to 4GB, which works but uses Dynamic rather than static</p>
<pre><code>resource "xenorchestra_vm" "bar" {
    name_label = "TerraformCreatedMe"
    name_description = "Terraform Managed"
    template = data.xenorchestra_template.ubuntu22.id
    memory_max = 4294967296
    cpus  = 4
    destroy_cloud_config_vdi_after_boot = true
    hvm_boot_firmware                   = "uefi"
</code></pre>
<p dir="auto">From the hypervisor side the VM looks like this:</p>
<pre><code>memory-static-max ( RW): 4294967296                         
memory-dynamic-max ( RW): 4294967296
memory-dynamic-min ( RW): 1073741824
memory-static-min ( RW): 1073741824
</code></pre>
<p dir="auto">So to me it looks like <code>memory_max</code> in terraform changes just <code>memory-static-max</code> and <code>memory-dynamic-max</code> which leaves the VM with dynamic memory control.</p>
<p dir="auto">I want the behaviour to be, when I create a new VM or change the RAM allocation for the VM to have static RAM not dynamic. I hope this is possible.</p>
]]></description><link>https://xcp-ng.org/forum/post/78994</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/78994</guid><dc:creator><![CDATA[David]]></dc:creator><pubDate>Wed, 19 Jun 2024 12:25:29 GMT</pubDate></item><item><title><![CDATA[Reply to XenOrchestra with Terraform on Thu, 03 Mar 2022 06:45:37 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/nickdsl" aria-label="Profile: nickdsl">@<bdi>nickdsl</bdi></a> can you please share a terraform code example and the necessary commands to reproduce the problem? I'm not sure I understand what happened without seeing a concrete example of the problem.</p>
]]></description><link>https://xcp-ng.org/forum/post/47357</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/47357</guid><dc:creator><![CDATA[ddelnano]]></dc:creator><pubDate>Thu, 03 Mar 2022 06:45:37 GMT</pubDate></item><item><title><![CDATA[Reply to XenOrchestra with Terraform on Wed, 02 Mar 2022 08:45:53 GMT]]></title><description><![CDATA[<p dir="auto">Hmm might be a question for <a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/ddelnano" aria-label="Profile: ddelnano">@<bdi>ddelnano</bdi></a> I suppose <img src="https://xcp-ng.org/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f914.png?v=0594cb2b96d" class="not-responsive emoji emoji-android emoji--thinking_face" style="height:23px;width:auto;vertical-align:middle" title=":thinking_face:" alt="🤔" /></p>
]]></description><link>https://xcp-ng.org/forum/post/47272</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/47272</guid><dc:creator><![CDATA[olivierlambert]]></dc:creator><pubDate>Wed, 02 Mar 2022 08:45:53 GMT</pubDate></item></channel></rss>