vatesfr / xen-orchestra

The global orchestration solution to manage and backup XCP-ng and XenServer.
https://xen-orchestra.com
Other
774 stars 262 forks source link

Error on vm.importMultipleFromEsxi #7475

Open SWoodyUK opened 6 months ago

SWoodyUK commented 6 months ago

Are you using XOA or XO from the sources?

both

Which release channel?

both

Provide your commit number

8e5d9

Describe the bug

I've tried this from trial XOA, and compile myself, and each time I run this against ESXi 7.0.3 it fails.

Error message

{
  "code": "ERR_STRING_TOO_LONG",
  "succeeded": {},
  "message": "Cannot create a string longer than 0x1fffffe8 characters",
  "name": "Error",
  "stack": "Error: Cannot create a string longer than 0x1fffffe8 characters\n    at TextDecoder.decode (node:internal/encoding:433:16)\n    at Response.text (file:///root/xen-orchestra/@xen-orchestra/vmware-explorer/node_modules/node-fetch/src/body.js:159:28)\n    at processTicksAndRejections (node:internal/process/task_queues:95:5)\n    at Esxi.#inspectVmdk (file:///root/xen-orchestra/@xen-orchestra/vmware-explorer/esxi.mjs:222:18)\n    at Esxi.getTransferableVmMetadata (file:///root/xen-orchestra/@xen-orchestra/vmware-explorer/esxi.mjs:307:17)\n    at Task.runInside (/root/xen-orchestra/@vates/task/index.js:158:22)\n    at Task.run (/root/xen-orchestra/@vates/task/index.js:141:20)\n    at MigrateVm.migrationfromEsxi (file:///root/xen-orchestra/packages/xo-server/src/xo-mixins/migrate-vm.mjs:178:28)\n    at file:///root/xen-orchestra/packages/xo-server/src/api/vm.mjs:1432:30\n    at Task.runInside (/root/xen-orchestra/@vates/task/index.js:158:22)\n    at Task.run (/root/xen-orchestra/@vates/task/index.js:141:20)\n    at asyncEach.concurrency.concurrency (file:///root/xen-orchestra/packages/xo-server/src/api/vm.mjs:1430:11)"
}

To reproduce

  1. Go to '...'
  2. Click on '...'
  3. Scroll down to '...'
  4. See error

Expected behavior

No response

Screenshots

No response

Node

v18.19.0

Hypervisor

8.2.1

Additional context

No response

fbeauchamp commented 6 months ago

Hi @SWoodyUK ,

what is the storage on VMWare side ? it looks like the vmdk aren't in the expected format ( they should be sammlish files that contains a link to the real data )

regards