404 not found importing from VMware to XOA - workaround
-
We run ESX7 but we have machines that have been with us for many years since we ran ESX 5. When importing some of these old VMs we would get the following error. We're running the "latest" branch on our XOA.
404 Not Found https://vca152.dcmanaged.net/folder/fcclaims-liv-claims03/emptyBackingString?dcPath=Enfield&dsName=FC-ENF-CLAIMS-ESX-SC1The "emptyBackingString" part comes from CDROM entries in the VMX file and machines that give the 404 error have cdrom-raw type
ide0:0.startConnected = "FALSE" ide0:0.deviceType = "cdrom-raw" ide0:0.clientDevice = "TRUE" ide0:0.fileName = "emptyBackingString" ide0:0.present = "TRUE"VMs that do import have a different CDROM device type, they also have ide1 rather than ide0
ide1:0.startConnected = "FALSE" ide1:0.deviceType = "atapi-cdrom" ide1:0.clientDevice = "TRUE" ide1:0.fileName = "emptyBackingString" ide1:0.present = "TRUE"I found the lines in XOA:
/usr/local/lib/node_modules/xo-server/node_modules/@xen-orchestra/vmware-explorer/esxi.mjsthat referred to the atapi-cdrom so I suspect the code needs to be adjusted to include the cdrom-raw type.The workaround in the meantime is to change the CDROM settings in VMware to be "Emulate" rather than "Passthrough", this changes the type to Atapi anyway and the VM will then import.
regards,
Paul
-
Thanks a lot for the precise feedback, I edited it to provide the nice Markdown code output
@florent will take a look next week! -
@olivierlambert No problem. Since writing the original post, I've realised I got it the wrong way round and found an easier workaround (from a user perspective) and noted it above. My code change turned out to be wrong and irrelevant. Of course there may be a way for allowing both in the code, I'll leave that to you guys.
-
@paulorrockgit thanks paul for the bug report and exploration
I propose this bugfix : https://github.com/vatesfr/xen-orchestra/pull/7504 and can deploy it on your XOA
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