<?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[HOST_NOT_ENOUGH_FREE_MEMORY during host.restart &#x2F; host-evacuate despite destination having ample free RAM]]></title><description><![CDATA[<p dir="auto">Environment</p>
<ul>
<li>XCP-ng version: 8.3 (latest)</li>
<li>Xen Orchestra (XO): Build 202606261855</li>
<li>Pool topology: 2-node pool ("Olympus")
<ul>
<li>Host A (master, Zeus): 128 GB RAM, 7 VMs running (~34 GB allocated)</li>
<li>Host B (slave, Hera): 64 GB RAM, 4 VMs running (~32 GB allocated)</li>
</ul>
</li>
<li>HA: Enabled, ha-host-failures-to-tolerate = 0, ha-overcommitted = false</li>
<li>Storage: Shared NFS SRs (all VMs on shared storage — no local-SR VMs)</li>
</ul>
<p dir="auto">What I'm trying to do</p>
<p dir="auto">Test planned maintenance / HA evacuation: reboot Host B (Hera) via Xen Orchestra, expecting its running VMs to live-migrate to Host A (Zeus) automatically.</p>
<hr />
<p dir="auto">What happens</p>
<p dir="auto">The host.restart call from XO (with suspendResidentVms: false, bypassCurrentVmCheck: false) fails immediately with:</p>
<p dir="auto">HOST_NOT_ENOUGH_FREE_MEMORY(OpaqueRef:&lt;vm-ref&gt;)</p>
<p dir="auto">Full task error:</p>
<p dir="auto">{<br />
"error_info": [<br />
"HOST_NOT_ENOUGH_FREE_MEMORY",<br />
"OpaqueRef:&lt;vm-opaque-ref&gt;"<br />
],<br />
"name": "XapiError",<br />
"message": "HOST_NOT_ENOUGH_FREE_MEMORY(OpaqueRef:&lt;vm-opaque-ref&gt;)",<br />
"stack": "XapiError: HOST_NOT_ENOUGH_FREE_MEMORY(OpaqueRef:&lt;vm-opaque-ref&gt;)\n    at XapiError.wrap (file:///opt/xo/xo-builds/.../packages/xen-api/_XapiError.mjs:16:12)\n    at default<br />
(file:///opt/xo/xo-builds/.../packages/xen-api/_getTaskResult.mjs:13:29)\n    ..."<br />
}</p>
<p dir="auto">Backtrace points to ocaml/xapi/xapi_host.ml:629 inside Async.host.evacuate.</p>
<p dir="auto">The same error is produced when running xe host-evacuate directly on the pool master:</p>
<p dir="auto">Not enough server memory is available to perform this operation.<br />
needed: &lt;vm-uuid&gt; (&lt;VM name&gt;)<br />
available: &lt;unknown&gt;</p>
<p dir="auto">Note the available: &lt;unknown&gt; — XCP-ng cannot determine the available memory on the destination host.</p>
<p dir="auto">Actual memory figures from xe host-list params=memory-free,memory-total,memory-overhead:</p>
<pre><code>┌────────────────────────┬───────────┬──────────┬──────────┐
│          Host          │ Total RAM │ Free RAM │ Overhead │
├────────────────────────┼───────────┼──────────┼──────────┤
│ Zeus (destination)     │ 128 GB    │ 84.7 GB  │ 1.58 GB  │
├────────────────────────┼───────────┼──────────┼──────────┤
│ Hera (being evacuated) │ 64 GB     │ 26.5 GB  │ 0.93 GB  │
└────────────────────────┴───────────┴──────────┴──────────┘

VMs on Hera that need to migrate:

┌───────┬──────────────────┬─────────────────┐
│  VM   │ RAM (static-max) │ memory-overhead │
├───────┼──────────────────┼─────────────────┤
│ VM-1  │ 12 GB            │ 106 MB          │
├───────┼──────────────────┼─────────────────┤
│ VM-2  │ 8 GB             │ 74 MB           │
├───────┼──────────────────┼─────────────────┤
│ VM-3  │ 8 GB             │ 74 MB           │
├───────┼──────────────────┼─────────────────┤
│ VM-4  │ 4 GB             │ 36 MB           │
├───────┼──────────────────┼─────────────────┤
│ Total │ 32 GB            │ 290 MB          │
└───────┴──────────────────┴─────────────────┘

Zeus has 84.7 GB free. The VMs need ~32.3 GB (RAM + overhead). There is 52 GB of headroom. The error should not occur.
</code></pre>
<p dir="auto">Any help appreciated — this makes planned host maintenance require manual CLI steps every time, which defeats the purpose of the evacuate-on-reboot workflow.</p>
]]></description><link>https://xcp-ng.org/forum/topic/12321/host_not_enough_free_memory-during-host.restart-host-evacuate-despite-destination-having-ample-free-ram</link><generator>RSS for Node</generator><lastBuildDate>Sun, 28 Jun 2026 05:52:08 GMT</lastBuildDate><atom:link href="https://xcp-ng.org/forum/topic/12321.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 28 Jun 2026 01:52:19 GMT</pubDate><ttl>60</ttl></channel></rss>