Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to use VMware import - "message": "Cannot read properties of undefined (reading 'name')" #7647

Open
shokoah opened this issue May 12, 2024 · 2 comments

Comments

@shokoah
Copy link

shokoah commented May 12, 2024

Are you using XOA or XO from the sources?

XO from the sources

Which release channel?

None

Provide your commit number

9b9c71a

Describe the bug

Trying to import VMware machines on a completely new install of XCP-NG 8.2 with the XO Appliance. Migrating from ESXi 7.0u3 on a Dell PowerEdge R730xd to an HP ProLiant DL380 G9 running XCP-NG 8.2.

Error message

esxi.listVms
{
  "host": "192.168.70.202",
  "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:247:29
    at Array.map (<anonymous>)
    at Esxi.getAllVmMetadata (file:///usr/local/lib/node_modules/xo-server/node_modules/@xen-orchestra/vmware-explorer/esxi.mjs:237:8)
    at Api.#callApiMethod (file:///usr/local/lib/node_modules/xo-server/src/xo-mixins/api.mjs:366:20)"
}

To reproduce

  1. Go to 'Import > From VMware'
  2. Enter the information in the fields
  3. Click "Connect"

Expected behavior

Bring to the VM details page

Screenshots

image
image

Node

5.93.1

Hypervisor

XCP-ng 8.2.1

Additional context

No response

@fbeauchamp
Copy link
Collaborator

Hi ,

this error seems to be during datastore listing. Is there anything specific on your datastores ? (like a less used format, an old/broken one ) ?

Regards

@shokoah
Copy link
Author

shokoah commented May 14, 2024

Hi, no - there is nothing special/old. It is a 12TB RAID 5 array that hasn't been moved since it was created

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants