XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    404 not found importing from VMware to XOA - workaround

    Scheduled Pinned Locked Moved Xen Orchestra
    4 Posts 3 Posters 331 Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P Offline
      paulorrockgit
      last edited by paulorrockgit

      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-SC1
      

      The "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.mjs that 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

      1 Reply Last reply Reply Quote 0
      • olivierlambertO Offline
        olivierlambert Vates 🪐 Co-Founder CEO
        last edited by

        Hi paulorrockgit

        Thanks a lot for the precise feedback, I edited it to provide the nice Markdown code output 🙂 florent will take a look next week!

        P 1 Reply Last reply Reply Quote 0
        • P Offline
          paulorrockgit @olivierlambert
          last edited by

          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.

          florentF 1 Reply Last reply Reply Quote 0
          • florentF Offline
            florent Vates 🪐 XO Team @paulorrockgit
            last edited by

            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

            fbeauchamp opened this pull request in vatesfr/xen-orchestra

            closed fix(vwmare-explorer): handle raw cdrom #7504

            1 Reply Last reply Reply Quote 0
            • First post
              Last post