Import from ESXi 6 error
-
I am trying to migrate from a quite old vmWare server 6.0.0
A few days ago I did a test over the internet (took 11hours and ended... i dont even know now.) but it copied the data atleast. that was to a testinstallation in my home from the production site.
Then I reinstalled the server wehn I was happy enought that it will work as a virtual host.Now I try tro import from VMWare with the tool in XO, but now every time it instantly fails two tasks:
ERROR: res.headers.raw is not a function
Is this because of some simple mistake I did or because no one thought anyone was still useing Esxi 6.0.0 in the wild and I should migrate them another way?
tried 2 VMs from 2 hosts (same version of ESXi)
{ "id": "0ma1da4hu", "properties": { "method": "vm.importMultipleFromEsxi", "params": { "concurrency": 1, "host": "192.168.100.230", "network": "6c7007b8-c9fc-5159-9110-b9565779b263", "password": "* obfuscated *", "sr": "89d88cfc-459d-bb83-635a-3be1386d19fc", "sslVerify": false, "stopOnError": true, "stopSource": false, "template": "b23cc171-bba8-29de-6f99-4e20fa8e19ab-df1a0e64-3799-482b-aa9f-1ed713c7dac5", "user": "root", "vms": [ "2" ] }, "name": "API call: vm.importMultipleFromEsxi", "userId": "1328a905-5764-4665-ba1a-897cd98b52fd", "type": "api.call" }, "start": 1745862207042, "status": "failure", "updatedAt": 1745862217245, "end": 1745862217245, "result": { "succeeded": {}, "message": "res.headers.raw is not a function", "name": "TypeError", "stack": "TypeError: res.headers.raw is not a function\n at Esxi.#fetch (file:///etc/xen-orchestra/@xen-orchestra/vmware-explorer/esxi.mjs:114:21)\n at Esxi.download (file:///etc/xen-orchestra/@xen-orchestra/vmware-explorer/esxi.mjs:143:21)\n at Esxi.getTransferableVmMetadata (file:///etc/xen-orchestra/@xen-orchestra/vmware-explorer/esxi.mjs:322:17)\n at Task.runInside (/etc/xen-orchestra/@vates/task/index.js:175:22)\n at Task.run (/etc/xen-orchestra/@vates/task/index.js:159:20)\n at MigrateVm.migrationfromEsxi (file:///etc/xen-orchestra/packages/xo-server/src/xo-mixins/vmware/index.mjs:196:22)\n at file:///etc/xen-orchestra/packages/xo-server/src/api/vm.mjs:1505:30\n at Task.runInside (/etc/xen-orchestra/@vates/task/index.js:175:22)\n at Task.run (/etc/xen-orchestra/@vates/task/index.js:159:20)\n at asyncEach.concurrency.concurrency (file:///etc/xen-orchestra/packages/xo-server/src/api/vm.mjs:1503:11)" } }{ "id": "0ma1da4hv", "properties": { "name": "importing vms 2", "userId": "1328a905-5764-4665-ba1a-897cd98b52fd", "total": 1, "done": 0, "progress": 0 }, "start": 1745862207043, "status": "failure", "updatedAt": 1745862217245, "tasks": [ { "id": "193lmmesm5w", "properties": { "name": "importing vm 2", "done": 1, "progress": 100 }, "start": 1745862207043, "status": "failure", "tasks": [ { "id": "qs3a56o48eb", "properties": { "name": "connecting to 192.168.100.230" }, "start": 1745862207043, "status": "success", "end": 1745862207113, "result": { "_events": {}, "_eventsCount": 0 } }, { "id": "cvo8y78fpfm", "properties": { "name": "get metadata of 2" }, "start": 1745862207113, "status": "failure", "end": 1745862217244, "result": { "message": "res.headers.raw is not a function", "name": "TypeError", "stack": "TypeError: res.headers.raw is not a function\n at Esxi.#fetch (file:///etc/xen-orchestra/@xen-orchestra/vmware-explorer/esxi.mjs:114:21)\n at Esxi.download (file:///etc/xen-orchestra/@xen-orchestra/vmware-explorer/esxi.mjs:143:21)\n at Esxi.getTransferableVmMetadata (file:///etc/xen-orchestra/@xen-orchestra/vmware-explorer/esxi.mjs:322:17)\n at Task.runInside (/etc/xen-orchestra/@vates/task/index.js:175:22)\n at Task.run (/etc/xen-orchestra/@vates/task/index.js:159:20)\n at MigrateVm.migrationfromEsxi (file:///etc/xen-orchestra/packages/xo-server/src/xo-mixins/vmware/index.mjs:196:22)\n at file:///etc/xen-orchestra/packages/xo-server/src/api/vm.mjs:1505:30\n at Task.runInside (/etc/xen-orchestra/@vates/task/index.js:175:22)\n at Task.run (/etc/xen-orchestra/@vates/task/index.js:159:20)\n at asyncEach.concurrency.concurrency (file:///etc/xen-orchestra/packages/xo-server/src/api/vm.mjs:1503:11)" } } ], "end": 1745862217244, "result": { "message": "res.headers.raw is not a function", "name": "TypeError", "stack": "TypeError: res.headers.raw is not a function\n at Esxi.#fetch (file:///etc/xen-orchestra/@xen-orchestra/vmware-explorer/esxi.mjs:114:21)\n at Esxi.download (file:///etc/xen-orchestra/@xen-orchestra/vmware-explorer/esxi.mjs:143:21)\n at Esxi.getTransferableVmMetadata (file:///etc/xen-orchestra/@xen-orchestra/vmware-explorer/esxi.mjs:322:17)\n at Task.runInside (/etc/xen-orchestra/@vates/task/index.js:175:22)\n at Task.run (/etc/xen-orchestra/@vates/task/index.js:159:20)\n at MigrateVm.migrationfromEsxi (file:///etc/xen-orchestra/packages/xo-server/src/xo-mixins/vmware/index.mjs:196:22)\n at file:///etc/xen-orchestra/packages/xo-server/src/api/vm.mjs:1505:30\n at Task.runInside (/etc/xen-orchestra/@vates/task/index.js:175:22)\n at Task.run (/etc/xen-orchestra/@vates/task/index.js:159:20)\n at asyncEach.concurrency.concurrency (file:///etc/xen-orchestra/packages/xo-server/src/api/vm.mjs:1503:11)" } } ], "end": 1745862217245, "result": { "succeeded": {}, "message": "res.headers.raw is not a function", "name": "TypeError", "stack": "TypeError: res.headers.raw is not a function\n at Esxi.#fetch (file:///etc/xen-orchestra/@xen-orchestra/vmware-explorer/esxi.mjs:114:21)\n at Esxi.download (file:///etc/xen-orchestra/@xen-orchestra/vmware-explorer/esxi.mjs:143:21)\n at Esxi.getTransferableVmMetadata (file:///etc/xen-orchestra/@xen-orchestra/vmware-explorer/esxi.mjs:322:17)\n at Task.runInside (/etc/xen-orchestra/@vates/task/index.js:175:22)\n at Task.run (/etc/xen-orchestra/@vates/task/index.js:159:20)\n at MigrateVm.migrationfromEsxi (file:///etc/xen-orchestra/packages/xo-server/src/xo-mixins/vmware/index.mjs:196:22)\n at file:///etc/xen-orchestra/packages/xo-server/src/api/vm.mjs:1505:30\n at Task.runInside (/etc/xen-orchestra/@vates/task/index.js:175:22)\n at Task.run (/etc/xen-orchestra/@vates/task/index.js:159:20)\n at asyncEach.concurrency.concurrency (file:///etc/xen-orchestra/packages/xo-server/src/api/vm.mjs:1503:11)" } } -
Adding info.
Ubuntu VM 22.04 / 24.04
No VM tools
Stopped
No snapshots/ consolidated + test with one fresh snapshot.
servers are on the same switch and both on 192.168.100.x20-50Gb of data per VM
one disk one nic
-
Ping @lsouai-vates
-
@olivierlambert nice catch
It's following a dependencies update, removing an old one ( node-fetch ) . The fix should be merged this morning ( with the ability to resume an import ) https://github.com/vatesfr/xen-orchestra/pull/8440
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login