Import from VMWARE gives error Cannot read properties of undefined (reading 'name')
-
Currently testing Xen Orchestra & XCP-ng to determine if it would be a suitable replacement for vmware in our environment.
I have tried to import a VM from vcenter, but get the error above.
Our ESXi hosts are running 7.0.3
I haven't found if ESXi 7 is supported with this tool or not
Any suggestions?
If this won't work, what are my other options for migrating VMs? I do have FC storage configured so I could present that to Xen if that would speed things up.
Thanks
-
Hi,
Please test XOA on the "latest" release channel, that should work.
-
There are a few requirements for the import from VMWare process to work correctly --
- Be sure to connect directly to the ESXi server, not vCenter
- The VM needs to have at least one snapshot
- The VM should be stopped prior to import when using ESXi versions newer than v6.5
-
If direct import isn't possible, you can export the VMs from vCenter as OVF or OVA packages (if supported), which can then be imported into Xen Orchestra.
If you have FC storage already configured and accessible by both your VMware and Xen environments, you can create a VM in XCP-ng/Xen Orchestra without a disk, then attach the existing VM's VMDK files stored on the FC storage directly. -
@Danp I got that message when trying to connect to the ESXi host
It never gets to the point where I can select the VM, so it's not likely to be a power or snapshot issue
-
@rporter Are you using v5.94.2 of XOA? If yes, then you should open a support ticket so that we can investigate further.
-
I changed to 'latest' channel, and ran the upgrade
It is now running version 5.94.2 build 20240401
I tried running the import from vmware again, with the same result
The error shows
esxi.listVms { "host": "10.110.100.32", "user": "root", "password": "* obfuscated *", "sslVerify": false } { "message": "Cannot read properties of undefined (reading 'name')", "name": "TypeError", "stack": "TypeError: Cannot read properties of undefined (reading 'name') at file:///usr/local/lib/node_modules/xo-server/node_modules/@xen-orchestra/vmware-explorer/esxi.mjs:292:29 at Array.map (<anonymous>) at Esxi.getAllVmMetadata (file:///usr/local/lib/node_modules/xo-server/node_modules/@xen-orchestra/vmware-explorer/esxi.mjs:265:8) at runNextTicks (node:internal/process/task_queues:60:5) at processImmediate (node:internal/timers:447:9) at process.callbackTrampoline (node:internal/async_hooks:128:17) at Api.#callApiMethod (file:///usr/local/lib/node_modules/xo-server/src/xo-mixins/api.mjs:366:20)" }
-
I confirmed that I can ping the host from the XOA console
I also confirmed that I can SSH to the host -
Worth opening a support ticket then, so we can take a look remotely to identify the issue