<?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[Import from VMware err: name: AssertionError: Expected &quot;actual&quot; to be strictly unequal to: undefined]]></title><description><![CDATA[<p dir="auto">single host XCP-ng 8.2.1 w/ local SR,<br />
XO (ronivay installer)(installed today) , VM on above.<br />
ESXi 8.0u1 (expired trial) all VMs stopped.</p>
<p dir="auto">Using XO Import from VMware, I sucessfully imported two VMs:  a Windows10 VM, and a pfSense VM. I started both and they work.</p>
<p dir="auto">Next I tried to import a Windows Server 2012R2 (single 60GB disk) from same ESX host.  It fails within about five seconds with:</p>
<pre><code>vm.importMultipleFromEsxi
{
  "concurrency": 2,
  "host": "10.16.75.5",
  "network": "eddfca3c-8b32-7cf8-510d-debef0bff592",
  "password": "* obfuscated *",
  "sr": "2a160b8d-11ec-776b-7ce9-0af0ceb540c7",
  "sslVerify": false,
  "stopOnError": true,
  "stopSource": false,
  "template": "b6d0600e-677b-376a-507e-8f9dda9424cb-11c46476-bd5c-4d75-9cf0-57fe55343ba3",
  "user": "root",
  "vms": [
    "3"
  ]
}
{
  "generatedMessage": true,
  "code": "ERR_ASSERTION",
  "operator": "notStrictEqual",
  "succeeded": {},
  "message": "Expected \"actual\" to be strictly unequal to:

undefined",
  "name": "AssertionError",
  "stack": "AssertionError [ERR_ASSERTION]: Expected \"actual\" to be strictly unequal to:

undefined
    at Esxi.#findDatacenter (file:///opt/xo/xo-builds/xen-orchestra-202406131610/@xen-orchestra/vmware-explorer/esxi.mjs:74:5)
    at Esxi.#download (file:///opt/xo/xo-builds/xen-orchestra-202406131610/@xen-orchestra/vmware-explorer/esxi.mjs:124:56)
    at Esxi.download (file:///opt/xo/xo-builds/xen-orchestra-202406131610/@xen-orchestra/vmware-explorer/esxi.mjs:139:41)
    at Esxi.#inspectVmdk (file:///opt/xo/xo-builds/xen-orchestra-202406131610/@xen-orchestra/vmware-explorer/esxi.mjs:249:21)
    at Esxi.getTransferableVmMetadata (file:///opt/xo/xo-builds/xen-orchestra-202406131610/@xen-orchestra/vmware-explorer/esxi.mjs:351:17)
    at Task.runInside (/opt/xo/xo-builds/xen-orchestra-202406131610/@vates/task/index.js:169:22)
    at Task.run (/opt/xo/xo-builds/xen-orchestra-202406131610/@vates/task/index.js:153:20)
    at MigrateVm.migrationfromEsxi (file:///opt/xo/xo-builds/xen-orchestra-202406131610/packages/xo-server/src/xo-mixins/vmware/index.mjs:186:22)
    at file:///opt/xo/xo-builds/xen-orchestra-202406131610/packages/xo-server/src/api/vm.mjs:1480:30
    at Task.runInside (/opt/xo/xo-builds/xen-orchestra-202406131610/@vates/task/index.js:169:22)
    at Task.run (/opt/xo/xo-builds/xen-orchestra-202406131610/@vates/task/index.js:153:20)
    at asyncEach.concurrency.concurrency (file:///opt/xo/xo-builds/xen-orchestra-202406131610/packages/xo-server/src/api/vm.mjs:1478:11)"
}
</code></pre>
]]></description><link>https://xcp-ng.org/forum/topic/9192/import-from-vmware-err-name-assertionerror-expected-actual-to-be-strictly-unequal-to-undefined</link><generator>RSS for Node</generator><lastBuildDate>Tue, 09 Jun 2026 02:58:50 GMT</lastBuildDate><atom:link href="https://xcp-ng.org/forum/topic/9192.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 14 Jun 2024 02:04:02 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Import from VMware err: name: AssertionError: Expected &quot;actual&quot; to be strictly unequal to: undefined on Wed, 25 Feb 2026 13:57:12 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/benapetr" aria-label="Profile: benapetr">@<bdi>benapetr</bdi></a> said in <a href="/forum/post/102938">Import from VMware err: name: AssertionError: Expected "actual" to be strictly unequal to: undefined</a>:</p>
<blockquote>
<p dir="auto">Hello, since this never had a clear resolution, here is explanation of the bug and why it happens:</p>
<p dir="auto">There is a bug in disk iteration in that XO vmware plugin (somewhere in that esxi.mjs I don't remember exact location) - it basically expects that all disks of VM exist in same datastore and if they don't it crashes as the next disk in unexpectedly missing (undefined)</p>
<p dir="auto">Workaround is rather simple - select the VM in vmware, migrate -&gt; storage, disable DRS (important) and then select any DS that no disks current exist on. If you select and DS that is already used by same VM it will sometimes not get fixed! It also may happen even if VM is "apparently" looking like it's on single DS, even if it reports as such, still try to migrate it to another DS, and disable DRS so that really all files, even meta files are in same directory.</p>
<p dir="auto">Then run XO import again, it will magically work.</p>
</blockquote>
<p dir="auto">thanks you for the input<br />
we were under the assumption that all the disk of a VM are in the same datastore<br />
the fix should be too hard now that you did the hard work</p>
<p dir="auto">edit: card created in our backlog, I will take a look after the release to see how hard it is to implement</p>
]]></description><link>https://xcp-ng.org/forum/post/102939</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/102939</guid><dc:creator><![CDATA[florent]]></dc:creator><pubDate>Wed, 25 Feb 2026 13:57:12 GMT</pubDate></item><item><title><![CDATA[Reply to Import from VMware err: name: AssertionError: Expected &quot;actual&quot; to be strictly unequal to: undefined on Wed, 25 Feb 2026 11:56:27 GMT]]></title><description><![CDATA[<p dir="auto">Hello, since this never had a clear resolution, here is explanation of the bug and why it happens:</p>
<p dir="auto">There is a bug in disk iteration in that XO vmware plugin (somewhere in that esxi.mjs I don't remember exact location) - it basically expects that all disks of VM exist in same datastore and if they don't it crashes as the next disk in unexpectedly missing (undefined)</p>
<p dir="auto">Workaround is rather simple - select the VM in vmware, migrate -&gt; storage, disable DRS (important) and then select any DS that no disks current exist on. If you select and DS that is already used by same VM it will sometimes not get fixed! It also may happen even if VM is "apparently" looking like it's on single DS, even if it reports as such, still try to migrate it to another DS, and disable DRS so that really all files, even meta files are in same directory.</p>
<p dir="auto">Then run XO import again, it will magically work.</p>
]]></description><link>https://xcp-ng.org/forum/post/102938</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/102938</guid><dc:creator><![CDATA[benapetr]]></dc:creator><pubDate>Wed, 25 Feb 2026 11:56:27 GMT</pubDate></item><item><title><![CDATA[Reply to Import from VMware err: name: AssertionError: Expected &quot;actual&quot; to be strictly unequal to: undefined on Fri, 21 Jun 2024 06:37:51 GMT]]></title><description><![CDATA[<p dir="auto">That's interesting, thanks for the feedback <a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/sshughes" aria-label="Profile: sshughes">@<bdi>sshughes</bdi></a> and keep us posted!</p>
]]></description><link>https://xcp-ng.org/forum/post/79109</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/79109</guid><dc:creator><![CDATA[olivierlambert]]></dc:creator><pubDate>Fri, 21 Jun 2024 06:37:51 GMT</pubDate></item><item><title><![CDATA[Reply to Import from VMware err: name: AssertionError: Expected &quot;actual&quot; to be strictly unequal to: undefined on Fri, 21 Jun 2024 00:43:14 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/sshughes" aria-label="Profile: sshughes">@<bdi>sshughes</bdi></a>  Pretty certain there is nothing wrong with XO.  Seems there is a problem with this VM on ESX.  vSphere can perform Export on the other VMs, but not the one in question.  Task list says an Export is running, but we never get the prompt to select components for export. Thanks.  If I learn any more, will report back.</p>
]]></description><link>https://xcp-ng.org/forum/post/79106</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/79106</guid><dc:creator><![CDATA[sshughes]]></dc:creator><pubDate>Fri, 21 Jun 2024 00:43:14 GMT</pubDate></item><item><title><![CDATA[Reply to Import from VMware err: name: AssertionError: Expected &quot;actual&quot; to be strictly unequal to: undefined on Thu, 20 Jun 2024 20:17:28 GMT]]></title><description><![CDATA[<p dir="auto">above log entry is result of using XO web UI to import from ESXi and is the 3rd vm we tried to import.  The first two imports were successful.<br />
I used ronivay's installer and chose to have xo-server run as non-root user.<br />
Decided to try using xo-cli vm.importFromEsxi.<br />
I SSH to the XO VM as root and figure out how to get xo-cli register to work.<br />
Using parameters displayed in the above log entry I think I was able to properly construct the xo-cli vm.importFromEsxi command as follows:</p>
<pre><code>xo-cli vm.importFromEsxi host=10.16.75.5 user=root password=****** sslVerify=false vm=ParishSVR2 sr=2a160b8d-11ec-776b-7ce9-0af0ceb540c7 network=eddfca3c-8b32-7cf8-510d-debef0bff592 template=b6d0600e-677b-376a-507e-8f9dda9424cb-17a818b5-20a6-4d34-a7ef-320da9ef4c14
</code></pre>
<p dir="auto">The result is a different error.  Does this offer any more help as to what went wrong?</p>
<pre><code>✖ JsonRpcError: can't get config of object ParishSVR2 (Type: VirtualMachine)
    at Peer._callee$ (/opt/xo/xo-builds/xen-orchestra-202406131610/node_modules/json-rpc-peer/dist/index.js:139:44)
    at tryCatch (/opt/xo/xo-builds/xen-orchestra-202406131610/node_modules/@babel/runtime/helpers/regeneratorRuntime.js:45:16)
    at Generator.&lt;anonymous&gt; (/opt/xo/xo-builds/xen-orchestra-202406131610/node_modules/@babel/runtime/helpers/regeneratorRuntime.js:133:17)
    at Generator.next (/opt/xo/xo-builds/xen-orchestra-202406131610/node_modules/@babel/runtime/helpers/regeneratorRuntime.js:74:21)
    at asyncGeneratorStep (/opt/xo/xo-builds/xen-orchestra-202406131610/node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:24)
    at _next (/opt/xo/xo-builds/xen-orchestra-202406131610/node_modules/@babel/runtime/helpers/asyncToGenerator.js:22:9)
    at /opt/xo/xo-builds/xen-orchestra-202406131610/node_modules/@babel/runtime/helpers/asyncToGenerator.js:27:7
    at new Promise (&lt;anonymous&gt;)
    at Peer.&lt;anonymous&gt; (/opt/xo/xo-builds/xen-orchestra-202406131610/node_modules/@babel/runtime/helpers/asyncToGenerator.js:19:12)
    at Peer.exec (/opt/xo/xo-builds/xen-orchestra-202406131610/node_modules/json-rpc-peer/dist/index.js:182:20) {
  code: -32000,
  data: {
    message: "can't get config of object ParishSVR2 (Type: VirtualMachine)",
    name: 'Error',
    stack: "Error: can't get config of object ParishSVR2 (Type: VirtualMachine)\n" +
      '    at Esxi.fetchProperty (file:///opt/xo/xo-builds/xen-orchestra-202406131610/@xen-orchestra/vmware-explorer/esxi.mjs:447:13)\n' +
      '    at processTicksAndRejections (node:internal/process/task_queues:95:5)',
    succeeded: {}
  }
}
</code></pre>
]]></description><link>https://xcp-ng.org/forum/post/79090</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/79090</guid><dc:creator><![CDATA[sshughes]]></dc:creator><pubDate>Thu, 20 Jun 2024 20:17:28 GMT</pubDate></item><item><title><![CDATA[Reply to Import from VMware err: name: AssertionError: Expected &quot;actual&quot; to be strictly unequal to: undefined on Fri, 14 Jun 2024 10:34:42 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/ph7" aria-label="Profile: ph7">@<bdi>ph7</bdi></a> said in <a href="/forum/post/78701">Import from VMware err: name: AssertionError: Expected "actual" to be strictly unequal to: undefined</a>:</p>
<blockquote>
<p dir="auto">Shoundnt node.js be 18 ?</p>
</blockquote>
<p dir="auto">FYI, that is no longer required.</p>
]]></description><link>https://xcp-ng.org/forum/post/78705</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/78705</guid><dc:creator><![CDATA[Danp]]></dc:creator><pubDate>Fri, 14 Jun 2024 10:34:42 GMT</pubDate></item><item><title><![CDATA[Reply to Import from VMware err: name: AssertionError: Expected &quot;actual&quot; to be strictly unequal to: undefined on Fri, 14 Jun 2024 07:07:02 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/ph7" aria-label="Profile: ph7">@<bdi>ph7</bdi></a> I also have version 20, but no problem importing from VMware <img src="https://xcp-ng.org/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f914.png?v=977a46e9d9a" class="not-responsive emoji emoji-android emoji--thinking_face" style="height:23px;width:auto;vertical-align:middle" title=":thinking_face:" alt="🤔" /></p>
<p dir="auto"><img src="/forum/assets/uploads/files/1718348818116-74ce8389-8fbd-4d37-bf73-fa2c9d63bfdb-obrazek.png" alt="74ce8389-8fbd-4d37-bf73-fa2c9d63bfdb-obrazek.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://xcp-ng.org/forum/post/78702</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/78702</guid><dc:creator><![CDATA[abudef]]></dc:creator><pubDate>Fri, 14 Jun 2024 07:07:02 GMT</pubDate></item><item><title><![CDATA[Reply to Import from VMware err: name: AssertionError: Expected &quot;actual&quot; to be strictly unequal to: undefined on Fri, 14 Jun 2024 07:02:19 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/sshughes" aria-label="Profile: sshughes">@<bdi>sshughes</bdi></a><br />
Shoundnt node.js be 18 ?</p>
]]></description><link>https://xcp-ng.org/forum/post/78701</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/78701</guid><dc:creator><![CDATA[ph7]]></dc:creator><pubDate>Fri, 14 Jun 2024 07:02:19 GMT</pubDate></item><item><title><![CDATA[Reply to Import from VMware err: name: AssertionError: Expected &quot;actual&quot; to be strictly unequal to: undefined on Fri, 14 Jun 2024 02:52:34 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/sshughes" aria-label="Profile: sshughes">@<bdi>sshughes</bdi></a> Hmmm, that's frustrating. If I remember correctly, that is a Python error. It might be something with the Python script itself. Is the VM off when you're trying to import it? It shouldn't matter, but just something to try.</p>
]]></description><link>https://xcp-ng.org/forum/post/78694</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/78694</guid><dc:creator><![CDATA[nick.lloyd]]></dc:creator><pubDate>Fri, 14 Jun 2024 02:52:34 GMT</pubDate></item><item><title><![CDATA[Reply to Import from VMware err: name: AssertionError: Expected &quot;actual&quot; to be strictly unequal to: undefined on Fri, 14 Jun 2024 02:35:42 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/sshughes" aria-label="Profile: sshughes">@<bdi>sshughes</bdi></a> also ran apt-get update apt-get upgrade, but again...  I installed this VM less than 12 hours ago, so nothing new.</p>
]]></description><link>https://xcp-ng.org/forum/post/78692</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/78692</guid><dc:creator><![CDATA[sshughes]]></dc:creator><pubDate>Fri, 14 Jun 2024 02:35:42 GMT</pubDate></item><item><title><![CDATA[Reply to Import from VMware err: name: AssertionError: Expected &quot;actual&quot; to be strictly unequal to: undefined on Fri, 14 Jun 2024 02:33:39 GMT]]></title><description><![CDATA[<p dir="auto">@Nick-085<br />
Just did. Reports nothing new.<br />
Import fails with same error.</p>
<pre><code>[info] Checking current node.js version

[ok] node.js version already on 20, checking updates

[info] Fetching Xen Orchestra source code

[info] Creating install directory: /opt/xo/xo-builds/xen-orchestra-202406132228

[info] No changes to Xen Orchestra since previous install. Skipping build. Use the --force to update anyway.
[info] Cleaning up install directory: /opt/xo/xo-builds/xen-orchestra-202406132228
</code></pre>
]]></description><link>https://xcp-ng.org/forum/post/78691</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/78691</guid><dc:creator><![CDATA[sshughes]]></dc:creator><pubDate>Fri, 14 Jun 2024 02:33:39 GMT</pubDate></item><item><title><![CDATA[Reply to Import from VMware err: name: AssertionError: Expected &quot;actual&quot; to be strictly unequal to: undefined on Fri, 14 Jun 2024 02:22:25 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/sshughes" aria-label="Profile: sshughes">@<bdi>sshughes</bdi></a> Can/have you run updates on the XO VM itself, then run the XOInstaller script to check for XO updates? That's what fixes issues for me most of the time.</p>
]]></description><link>https://xcp-ng.org/forum/post/78690</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/78690</guid><dc:creator><![CDATA[nick.lloyd]]></dc:creator><pubDate>Fri, 14 Jun 2024 02:22:25 GMT</pubDate></item></channel></rss>