Import from VMWare vSAN fails with 404 Not Found
-
Hello
I am testing importing a VM from a VMWare cluster with hosts having ESXi version 7.0.3.
I followed the process from here:
https://www.starwindsoftware.com/blog/why-you-should-consider-xcp-ng-as-an-alternative-to-vmware
since this has screenshots which helped.
VM already has a snapshot taken a month before and was not powered on.After I click import, the task fails with below log:
{ "id": "0lx2q9g9l", "properties": { "name": "importing vms vm-10006", "userId": "20dd4394-9f78-4eec-b5fb-52c33f1d83ca", "total": 1, "done": 0, "progress": 0 }, "start": 1717646306457, "status": "failure", "updatedAt": 1717646350874, "tasks": [ { "id": "iepm5pwfirp", "properties": { "name": "importing vm vm-10006", "done": 1, "progress": 100 }, "start": 1717646306458, "status": "failure", "tasks": [ { "id": "nusjc9sexcs", "properties": { "name": "connecting to 172.16.199.17" }, "start": 1717646306458, "status": "success", "end": 1717646306535, "result": { "_events": {}, "_eventsCount": 0 } }, { "id": "p9pua2ou99i", "properties": { "name": "get metadata of vm-10006" }, "start": 1717646306535, "status": "success", "end": 1717646308351, "result": { "name_label": "CA1", "memory": 4294967296, "nCpus": 2, "guestToolsInstalled": false, "guestId": "windows9Server64Guest", "guestFullName": [ "Microsoft Windows Server 2016 or later (64-bit)" ], "firmware": "uefi", "powerState": "poweredOff", "snapshots": { "lastUID": "2", "current": "2", "numSnapshots": "1", "snapshots": [ { "uid": "2", "filename": "CA1-Snapshot2.vmsn", "displayName": "VM Snapshot 5%2f8%2f2024, 6:00:35 PM", "description": "Before configuring Reverse Proxy", "createTimeHigh": "399344", "createTimeLow": "2036996630", "numDisks": "1", "disks": [ { "node": "scsi0:0", "capacity": 53687091200, "isFull": true, "uid": "282eeab9", "fileName": "vsan://52c3a7299b70f961-4464791c3837099a/d0c68a65-b66d-a07f-ae1c-bc97e1f3cb00", "parentId": "ffffffff", "vmdkFormat": "VMFS", "nameLabel": "vsan://52c3a7299b70f961-4464791c3837099a/d0c68a65-b66d-a07f-ae1c-bc97e1f3cb00", "datastore": "vsanDatastore", "path": "d0c68a65-2e21-8c59-9012-bc97e1f3cb00", "descriptionLabel": " from esxi" } ] } ] }, "disks": [ { "capacity": 53687091200, "isFull": false, "uid": "bb46d6c1", "fileName": "vsan://52c3a7299b70f961-4464791c3837099a/4b9d4c66-d886-9a92-03f2-bc97e1f3cb00", "parentId": "282eeab9", "parentFileName": "CA1.vmdk", "vmdkFormat": "VSANSPARSE", "nameLabel": "vsan://52c3a7299b70f961-4464791c3837099a/4b9d4c66-d886-9a92-03f2-bc97e1f3cb00", "datastore": "vsanDatastore", "path": "d0c68a65-2e21-8c59-9012-bc97e1f3cb00", "descriptionLabel": " from esxi", "node": "scsi0:0" } ], "networks": [ { "label": "UDH", "macAddress": "00:50:56:a4:6e:a2", "isGenerated": false }, { "label": "PDH", "macAddress": "00:50:56:a4:10:ed", "isGenerated": false } ] } }, { "id": "zp5lyelzz1f", "properties": { "name": "creating VM on XCP side" }, "start": 1717646308351, "status": "success", "end": 1717646315400, "result": { "uuid": "728671ef-4fa8-4ea8-2963-b876a4d6d0e0", "allowed_operations": [ "changing_NVRAM", "changing_dynamic_range", "changing_shadow_memory", "changing_static_range", "make_into_template", "migrate_send", "destroy", "export", "start_on", "start", "clone", "copy", "snapshot" ], "current_operations": {}, "name_label": "CA1", "name_description": "from esxi -- source guest id :windows9Server64Guest -- template used:Windows Server 2019 (64-bit)", "power_state": "Halted", "user_version": 1, "is_a_template": false, "is_default_template": false, "suspend_VDI": "OpaqueRef:NULL", "resident_on": "OpaqueRef:NULL", "scheduled_to_be_resident_on": "OpaqueRef:NULL", "affinity": "OpaqueRef:NULL", "memory_overhead": 37748736, "memory_target": 0, "memory_static_max": 4294967296, "memory_dynamic_max": 4294967296, "memory_dynamic_min": 4294967296, "memory_static_min": 4294967296, "VCPUs_params": {}, "VCPUs_max": 2, "VCPUs_at_startup": 2, "actions_after_shutdown": "destroy", "actions_after_reboot": "restart", "actions_after_crash": "restart", "consoles": [], "VIFs": [], "VBDs": [], "VUSBs": [], "crash_dumps": [], "VTPMs": [], "PV_bootloader": "", "PV_kernel": "", "PV_ramdisk": "", "PV_args": "", "PV_bootloader_args": "", "PV_legacy_args": "", "HVM_boot_policy": "BIOS order", "HVM_boot_params": { "order": "cdn" }, "HVM_shadow_multiplier": 1, "platform": { "videoram": "8", "hpet": "true", "secureboot": "auto", "viridian_apic_assist": "true", "apic": "true", "device_id": "0002", "cores-per-socket": "2", "viridian_crash_ctl": "true", "pae": "true", "vga": "std", "nx": "true", "viridian_time_ref_count": "true", "viridian_stimer": "true", "viridian": "true", "acpi": "1", "viridian_reference_tsc": "true" }, "PCI_bus": "", "other_config": { "mac_seed": "fb483627-5717-c52d-42be-cc434c2d87e6", "vgpu_pci": "", "base_template_name": "Other install media", "install-methods": "cdrom" }, "domid": -1, "domarch": "", "last_boot_CPU_flags": {}, "is_control_domain": false, "metrics": "OpaqueRef:f5c2ebc6-3b7d-49fc-9692-bee2aba8f123", "guest_metrics": "OpaqueRef:NULL", "last_booted_record": "", "recommendations": "<restrictions><restriction field=\"memory-static-max\" max=\"137438953472\" /><restriction field=\"vcpus-max\" max=\"32\" /><restriction property=\"number-of-vbds\" max=\"255\" /><restriction property=\"number-of-vifs\" max=\"7\" /><restriction field=\"has-vendor-device\" value=\"false\" /></restrictions>", "xenstore_data": {}, "ha_always_run": false, "ha_restart_priority": "", "is_a_snapshot": false, "snapshot_of": "OpaqueRef:NULL", "snapshots": [], "snapshot_time": "19700101T00:00:00Z", "transportable_snapshot_id": "", "blobs": {}, "tags": [], "blocked_operations": {}, "snapshot_info": {}, "snapshot_metadata": "", "parent": "OpaqueRef:NULL", "children": [], "bios_strings": {}, "protection_policy": "OpaqueRef:NULL", "is_snapshot_from_vmpp": false, "snapshot_schedule": "OpaqueRef:NULL", "is_vmss_snapshot": false, "appliance": "OpaqueRef:NULL", "start_delay": 0, "shutdown_delay": 0, "order": 0, "VGPUs": [], "attached_PCIs": [], "suspend_SR": "OpaqueRef:NULL", "version": 0, "generation_id": "0:0", "hardware_platform_version": 0, "has_vendor_device": false, "requires_reboot": false, "reference_label": "", "domain_type": "hvm", "NVRAM": {} } }, { "id": "wnneakglc7r", "properties": { "name": "build disks and snapshots chains for vm-10006" }, "start": 1717646315401, "status": "success", "end": 1717646315401, "result": { "scsi0:0": [ { "node": "scsi0:0", "capacity": 53687091200, "isFull": true, "uid": "282eeab9", "fileName": "vsan://52c3a7299b70f961-4464791c3837099a/d0c68a65-b66d-a07f-ae1c-bc97e1f3cb00", "parentId": "ffffffff", "vmdkFormat": "VMFS", "nameLabel": "vsan://52c3a7299b70f961-4464791c3837099a/d0c68a65-b66d-a07f-ae1c-bc97e1f3cb00", "datastore": "vsanDatastore", "path": "d0c68a65-2e21-8c59-9012-bc97e1f3cb00", "descriptionLabel": " from esxi" }, { "capacity": 53687091200, "isFull": false, "uid": "bb46d6c1", "fileName": "vsan://52c3a7299b70f961-4464791c3837099a/4b9d4c66-d886-9a92-03f2-bc97e1f3cb00", "parentId": "282eeab9", "parentFileName": "CA1.vmdk", "vmdkFormat": "VSANSPARSE", "nameLabel": "vsan://52c3a7299b70f961-4464791c3837099a/4b9d4c66-d886-9a92-03f2-bc97e1f3cb00", "datastore": "vsanDatastore", "path": "d0c68a65-2e21-8c59-9012-bc97e1f3cb00", "descriptionLabel": " from esxi", "node": "scsi0:0" } ] } }, { "id": "dt84vks1pa", "properties": { "name": "Cold import of disks scsi0:0" }, "start": 1717646315401, "status": "failure", "end": 1717646325555, "result": { "cause": { "size": 0 }, "message": "404 Not Found https://172.16.199.17/folder/d0c68a65-2e21-8c59-9012-bc97e1f3cb00/vsan://52c3a7299b70f961-4464791c3837099a/d0c68a65-b66d-a07f-ae1c-bc97e1f3cb00?dcPath=Datacenter1&dsName=vsanDatastore", "name": "Error", "stack": "Error: 404 Not Found https://172.16.199.17/folder/d0c68a65-2e21-8c59-9012-bc97e1f3cb00/vsan://52c3a7299b70f961-4464791c3837099a/d0c68a65-b66d-a07f-ae1c-bc97e1f3cb00?dcPath=Datacenter1&dsName=vsanDatastore\n at Esxi.#fetch (file:///usr/local/lib/node_modules/xo-server/node_modules/@xen-orchestra/vmware-explorer/esxi.mjs:106:21)\n at Esxi.download (file:///usr/local/lib/node_modules/xo-server/node_modules/@xen-orchestra/vmware-explorer/esxi.mjs:139:21)\n at DatastoreSoapEsxi.getSize (file:///usr/local/lib/node_modules/xo-server/node_modules/@xen-orchestra/vmware-explorer/DatastoreSoapEsxi.mjs:19:17)\n at VhdEsxiRaw.readHeaderAndFooter (file:///usr/local/lib/node_modules/xo-server/node_modules/@xen-orchestra/vmware-explorer/VhdEsxiRaw.mjs:54:20)\n at Function.open (file:///usr/local/lib/node_modules/xo-server/node_modules/@xen-orchestra/vmware-explorer/VhdEsxiRaw.mjs:31:5)\n at importDiskChain (file:///usr/local/lib/node_modules/xo-server/src/xo-mixins/vmware/importDisksfromDatastore.mjs:22:13)\n at Task.runInside (/usr/local/lib/node_modules/xo-server/node_modules/@vates/task/index.js:175:22)\n at Task.run (/usr/local/lib/node_modules/xo-server/node_modules/@vates/task/index.js:158:20)" } } ], "end": 1717646350873, "result": { "cause": { "size": 0 }, "message": "404 Not Found https://172.16.199.17/folder/d0c68a65-2e21-8c59-9012-bc97e1f3cb00/vsan://52c3a7299b70f961-4464791c3837099a/d0c68a65-b66d-a07f-ae1c-bc97e1f3cb00?dcPath=Datacenter1&dsName=vsanDatastore", "name": "Error", "stack": "Error: 404 Not Found https://172.16.199.17/folder/d0c68a65-2e21-8c59-9012-bc97e1f3cb00/vsan://52c3a7299b70f961-4464791c3837099a/d0c68a65-b66d-a07f-ae1c-bc97e1f3cb00?dcPath=Datacenter1&dsName=vsanDatastore\n at Esxi.#fetch (file:///usr/local/lib/node_modules/xo-server/node_modules/@xen-orchestra/vmware-explorer/esxi.mjs:106:21)\n at Esxi.download (file:///usr/local/lib/node_modules/xo-server/node_modules/@xen-orchestra/vmware-explorer/esxi.mjs:139:21)\n at DatastoreSoapEsxi.getSize (file:///usr/local/lib/node_modules/xo-server/node_modules/@xen-orchestra/vmware-explorer/DatastoreSoapEsxi.mjs:19:17)\n at VhdEsxiRaw.readHeaderAndFooter (file:///usr/local/lib/node_modules/xo-server/node_modules/@xen-orchestra/vmware-explorer/VhdEsxiRaw.mjs:54:20)\n at Function.open (file:///usr/local/lib/node_modules/xo-server/node_modules/@xen-orchestra/vmware-explorer/VhdEsxiRaw.mjs:31:5)\n at importDiskChain (file:///usr/local/lib/node_modules/xo-server/src/xo-mixins/vmware/importDisksfromDatastore.mjs:22:13)\n at Task.runInside (/usr/local/lib/node_modules/xo-server/node_modules/@vates/task/index.js:175:22)\n at Task.run (/usr/local/lib/node_modules/xo-server/node_modules/@vates/task/index.js:158:20)" } } ], "end": 1717646350874, "result": { "cause": { "size": 0 }, "succeeded": {}, "message": "404 Not Found https://172.16.199.17/folder/d0c68a65-2e21-8c59-9012-bc97e1f3cb00/vsan://52c3a7299b70f961-4464791c3837099a/d0c68a65-b66d-a07f-ae1c-bc97e1f3cb00?dcPath=Datacenter1&dsName=vsanDatastore", "name": "Error", "stack": "Error: 404 Not Found https://172.16.199.17/folder/d0c68a65-2e21-8c59-9012-bc97e1f3cb00/vsan://52c3a7299b70f961-4464791c3837099a/d0c68a65-b66d-a07f-ae1c-bc97e1f3cb00?dcPath=Datacenter1&dsName=vsanDatastore\n at Esxi.#fetch (file:///usr/local/lib/node_modules/xo-server/node_modules/@xen-orchestra/vmware-explorer/esxi.mjs:106:21)\n at Esxi.download (file:///usr/local/lib/node_modules/xo-server/node_modules/@xen-orchestra/vmware-explorer/esxi.mjs:139:21)\n at DatastoreSoapEsxi.getSize (file:///usr/local/lib/node_modules/xo-server/node_modules/@xen-orchestra/vmware-explorer/DatastoreSoapEsxi.mjs:19:17)\n at VhdEsxiRaw.readHeaderAndFooter (file:///usr/local/lib/node_modules/xo-server/node_modules/@xen-orchestra/vmware-explorer/VhdEsxiRaw.mjs:54:20)\n at Function.open (file:///usr/local/lib/node_modules/xo-server/node_modules/@xen-orchestra/vmware-explorer/VhdEsxiRaw.mjs:31:5)\n at importDiskChain (file:///usr/local/lib/node_modules/xo-server/src/xo-mixins/vmware/importDisksfromDatastore.mjs:22:13)\n at Task.runInside (/usr/local/lib/node_modules/xo-server/node_modules/@vates/task/index.js:175:22)\n at Task.run (/usr/local/lib/node_modules/xo-server/node_modules/@vates/task/index.js:158:20)" } }
-
@ha_tu_su are u using vsan on esxi? It worked best for me running xoa latest version and migrate the vm to an nfs storage before the migration.
-
Hello
Yes I am using vsan on esxi. I am using the latest XOA. I read some forum posts to confirm this capability exists in the migration tool but failed to find a definitive answer.
I don't have a NFS storage but can use the clonezilla method if vsan is not supported at the moment. Thanks for your response @456Q .
-
@ha_tu_su Are you using XOA or XO from sources? What is your current version or commit?
-
-
@ha_tu_su I believe that this issue has already been fixed shortly after XOA 5.95 was released, and it will be included in the next update on the Latest release channel (unsure when this will occur).
-
Yes, a patch release might fix this, we've seen the problem (not detecting vSAN properly).
-
@Danp
Thanks for the info. I will retest after next update to XOA and let you know. Thanks for all the wonderful work that you guys are doing.Cheers!!
-
Hi, I'm facing the same issue but already running 5.96.0. Should that be fixed in that version? If not, when will that be fixed? Cheers.
-
Pinging @florent