<?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[Unclear errors]]></title><description><![CDATA[<p dir="auto">Many errors don't explain the cause or lead you down the wrong path. For example:</p>
<ul>
<li>if enabled<br />
<img src="/forum/assets/uploads/files/1790843779867-3598e7c2-dde5-488c-b8ed-36afb19e87fc-image.jpeg" alt="изображение.jpeg" class=" img-fluid img-markdown" width="937" height="59" /></li>
</ul>
<pre><code>vm.migrate
{
  "vm": "a6f6d2ec-17fd-338f-16f5-cdbcfa3e23de",
  "mapVifsNetworks": {
    "c5825de5-4b88-1794-5381-b9ded8fde08b": "12612d2e-9490-185d-5056-d848db1a754f"
  },
  "migrationNetwork": "d6492be1-f89e-e4fe-f6e0-1cbaad111581",
  "sr": "43daf4a2-ff01-e974-0db7-bb68765e5f73",
  "targetHost": "2444db2d-8701-475e-9191-c0b0417b3c51"
}
{
  "code": "OPERATION_BLOCKED",
  "params": [
    "OpaqueRef:63424fd1-95b1-8518-9a82-faee73bbd427",
    "true"
  ],
  "task": {
    "uuid": "9120561b-99a6-6677-6e8a-cd4432410aa1",
    "name_label": "Async.VM.migrate_send",
    "name_description": "",
    "allowed_operations": [],
    "current_operations": {},
    "created": "20260914T09:52:49Z",
    "finished": "20260914T09:52:49Z",
    "status": "failure",
    "resident_on": "OpaqueRef:e455b3a6-4d05-6d86-2f7a-c4cdba26e120",
    "progress": 1,
    "type": "&lt;none/&gt;",
    "result": "",
    "error_info": [
      "OPERATION_BLOCKED",
      "OpaqueRef:63424fd1-95b1-8518-9a82-faee73bbd427",
      "true"
    ],
    "other_config": {},
    "subtask_of": "OpaqueRef:NULL",
    "subtasks": [],
    "backtrace": "(((process xapi)(filename ocaml/xapi/xapi_vm_lifecycle.ml)(line 758))((process xapi)(filename ocaml/xapi/xapi_vm_helpers.ml)(line 1657))((process xapi)(filename fun.ml)(line 33))((process xapi)(filename fun.ml)(line 38))((process xapi)(filename ocaml/xapi/helpers.ml)(line 1825))((process xapi)(filename ocaml/xapi/xapi_vm_helpers.ml)(line 1656))((process xapi)(filename ocaml/xapi/message_forwarding.ml)(line 2654))((process xapi)(filename ocaml/xapi/rbac.ml)(line 228))((process xapi)(filename ocaml/xapi/rbac.ml)(line 238))((process xapi)(filename ocaml/xapi/server_helpers.ml)(line 78)))"
  },
  "message": "OPERATION_BLOCKED(OpaqueRef:63424fd1-95b1-8518-9a82-faee73bbd427, true)",
  "name": "XapiError",
  "stack": "XapiError: OPERATION_BLOCKED(OpaqueRef:63424fd1-95b1-8518-9a82-faee73bbd427, true)
    at XapiError.wrap (file:///opt/xo/xo-builds/xen-orchestra-202609011557/packages/xen-api/_XapiError.mjs:16:12)
    at default (file:///opt/xo/xo-builds/xen-orchestra-202609011557/packages/xen-api/_getTaskResult.mjs:13:29)
    at Xapi._addRecordToCache (file:///opt/xo/xo-builds/xen-orchestra-202609011557/packages/xen-api/index.mjs:1329:24)
    at file:///opt/xo/xo-builds/xen-orchestra-202609011557/packages/xen-api/index.mjs:1363:14
    at Array.forEach (&lt;anonymous&gt;)
    at Xapi._processEvents (file:///opt/xo/xo-builds/xen-orchestra-202609011557/packages/xen-api/index.mjs:1353:12)
    at Xapi._watchEvents (file:///opt/xo/xo-builds/xen-orchestra-202609011557/packages/xen-api/index.mjs:1560:14)"
}
</code></pre>
<ul>
<li>VM migration into current pool.</li>
</ul>
<pre><code>vm.migrate
{
  "migrationNetwork": "d6492be1-f89e-e4fe-f6e0-1cbaad111581",
  "targetHost": "2444db2d-8701-475e-9191-c0b0417b3c51",
  "vm": "5579297f-c843-9b13-a418-864db48196b5"
}
{
  "code": "VM_BAD_POWER_STATE",
  "params": [
    "OpaqueRef:3d062b96-e098-69c3-b77b-db727c06505f",
    "running",
    "halted"
  ],
  "task": {
    "uuid": "110cb10e-20c2-b315-d8b9-50cc9b2311d9",
    "name_label": "Async.VM.pool_migrate",
    "name_description": "",
    "allowed_operations": [],
    "current_operations": {},
    "created": "20260910T13:23:08Z",
    "finished": "20260910T13:23:08Z",
    "status": "failure",
    "resident_on": "OpaqueRef:5e55d030-7245-0317-7463-174fc2c81848",
    "progress": 1,
    "type": "&lt;none/&gt;",
    "result": "",
    "error_info": [
      "VM_BAD_POWER_STATE",
      "OpaqueRef:3d062b96-e098-69c3-b77b-db727c06505f",
      "running",
      "halted"
    ],
    "other_config": {},
    "subtask_of": "OpaqueRef:NULL",
    "subtasks": [],
    "backtrace": "(((process xapi)(filename ocaml/xapi/xapi_vm_lifecycle.ml)(line 758))((process xapi)(filename ocaml/xapi/xapi_vm_helpers.ml)(line 1657))((process xapi)(filename fun.ml)(line 33))((process xapi)(filename fun.ml)(line 38))((process xapi)(filename ocaml/xapi/helpers.ml)(line 1825))((process xapi)(filename ocaml/xapi/xapi_vm_helpers.ml)(line 1656))((process xapi)(filename ocaml/xapi/message_forwarding.ml)(line 2519))((process xapi)(filename ocaml/xapi/rbac.ml)(line 228))((process xapi)(filename ocaml/xapi/rbac.ml)(line 238))((process xapi)(filename ocaml/xapi/server_helpers.ml)(line 78)))"
  },
  "message": "VM_BAD_POWER_STATE(OpaqueRef:3d062b96-e098-69c3-b77b-db727c06505f, running, halted)",
  "name": "XapiError",
  "stack": "XapiError: VM_BAD_POWER_STATE(OpaqueRef:3d062b96-e098-69c3-b77b-db727c06505f, running, halted)
    at XapiError.wrap (file:///opt/xo/xo-builds/xen-orchestra-202609011557/packages/xen-api/_XapiError.mjs:16:12)
    at default (file:///opt/xo/xo-builds/xen-orchestra-202609011557/packages/xen-api/_getTaskResult.mjs:13:29)
    at Xapi._addRecordToCache (file:///opt/xo/xo-builds/xen-orchestra-202609011557/packages/xen-api/index.mjs:1329:24)
    at file:///opt/xo/xo-builds/xen-orchestra-202609011557/packages/xen-api/index.mjs:1363:14
    at Array.forEach (&lt;anonymous&gt;)
    at Xapi._processEvents (file:///opt/xo/xo-builds/xen-orchestra-202609011557/packages/xen-api/index.mjs:1353:12)
    at Xapi._watchEvents (file:///opt/xo/xo-builds/xen-orchestra-202609011557/packages/xen-api/index.mjs:1560:14)"
}
</code></pre>
]]></description><link>https://xcp-ng.org/forum/topic/12504/unclear-errors</link><generator>RSS for Node</generator><lastBuildDate>Thu, 01 Oct 2026 10:37:18 GMT</lastBuildDate><atom:link href="https://xcp-ng.org/forum/topic/12504.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 01 Oct 2026 08:37:59 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Unclear errors on Thu, 01 Oct 2026 09:34:56 GMT]]></title><description><![CDATA[<p dir="auto">i forgot how i got VM_BAD_POWER_STATE.<br />
Probably need to choose multiple VMs from different pools and do a batch migration.</p>
]]></description><link>https://xcp-ng.org/forum/post/108789</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/108789</guid><dc:creator><![CDATA[Tristis Oris]]></dc:creator><pubDate>Thu, 01 Oct 2026 09:34:56 GMT</pubDate></item><item><title><![CDATA[Reply to Unclear errors on Thu, 01 Oct 2026 09:23:24 GMT]]></title><description><![CDATA[<p dir="auto">Both of those are XAPI's raw error codes, and neither one tells you what to actually do about it. Annoying, I get it.</p>
<p dir="auto">I looked up how XAPI defines them: <code>OPERATION_BLOCKED</code> means the operation is listed in the VM's <code>blocked_operations</code> field, and the <code>true</code> is just the value stored there, so I think it's the Prevent migration toggle from your screenshot (described here: <a href="https://docs.xen-orchestra.com/manage-your-infrastructure/manage_infrastructure#preventing-vm-migration" target="_blank" rel="noopener noreferrer nofollow ugc">https://docs.xen-orchestra.com/manage-your-infrastructure/manage_infrastructure#preventing-vm-migration</a>).</p>
<p dir="auto">For <code>VM_BAD_POWER_STATE</code> the parameters are the VM, the state XAPI expected, then the state it found, so <code>running, halted</code> would mean it wanted a running VM and got a halted one.<br />
That reads like a live migration attempted on a stopped VM, though I haven't reproduced it.</p>
<p dir="auto">Turning those into "this VM has Prevent migration on" or "this VM is halted" sounds like a good one for <a href="https://feedback.vates.tech" target="_blank" rel="noopener noreferrer nofollow ugc">https://feedback.vates.tech</a>, if you feel like posting it there with these two examples. <img src="https://xcp-ng.org/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f64f.png?v=2d1219998ab" class="not-responsive emoji emoji-android emoji--pray" style="height:23px;width:auto;vertical-align:middle" title=":pray:" alt="🙏" /></p>
]]></description><link>https://xcp-ng.org/forum/post/108785</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/108785</guid><dc:creator><![CDATA[poddingue]]></dc:creator><pubDate>Thu, 01 Oct 2026 09:23:24 GMT</pubDate></item></channel></rss>