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

    VMware import 404 error

    Scheduled Pinned Locked Moved Xen Orchestra
    27 Posts 4 Posters 4.8k Views 4 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.
    • S Offline
      sunwriter
      last edited by Danp

      Excited about the new VMware import. However, I am receiving the following when attempting. Details: (Xen Orchestra latest build, and VSphere 😎 Maybe something I'm missing? Thanks in advance for any suggestions.

      vm.importFromEsxi
      {
        "host": "192.168.101.241",
        "network": "3fab0a14-a39c-235d-df0e-9b9b77789eed",
        "password": "* obfuscated *",
        "sr": "4b937ea6-9772-09ad-af25-a7adcebb5a82",
        "sslVerify": false,
        "stopSource": true,
        "thin": true,
        "user": "administrator@vsphere.local",
        "vm": "vm-3007"
      }
      {
        "cause": {
          "size": 0
        },
        "message": "404 Not Found https://192.168.101.241/folder/TPASQL1/TPASQL1.vmx?dsName=datastore1",
        "name": "Error",
        "stack": "Error: 404 Not Found https://192.168.101.241/folder/TPASQL1/TPASQL1.vmx?dsName=datastore1
          at Esxi.download (file:///opt/xo/xo-builds/xen-orchestra-202303040838/@xen-orchestra/vmware-explorer/esxi.mjs:71:21)
          at Esxi.getTransferableVmMetadata (file:///opt/xo/xo-builds/xen-orchestra-202303040838/@xen-orchestra/vmware-explorer/esxi.mjs:228:17)
          at Task.runInside (/opt/xo/xo-builds/xen-orchestra-202303040838/@vates/task/index.js:158:22)
          at Task.run (/opt/xo/xo-builds/xen-orchestra-202303040838/@vates/task/index.js:137:20)
          at MigrateVm.migrationfromEsxi (file:///opt/xo/xo-builds/xen-orchestra-202303040838/packages/xo-server/src/xo-mixins/migrate-vm.mjs:177:28)
          at Task.runInside (/opt/xo/xo-builds/xen-orchestra-202303040838/@vates/task/index.js:158:22)
          at Task.run (/opt/xo/xo-builds/xen-orchestra-202303040838/@vates/task/index.js:137:20)
          at Api.#callApiMethod (file:///opt/xo/xo-builds/xen-orchestra-202303040838/packages/xo-server/src/xo-mixins/api.mjs:394:20)"
      }
      
      1 Reply Last reply Reply Quote 0
      • olivierlambertO Offline
        olivierlambert Vates 🪐 Co-Founder CEO
        last edited by

        Hi,

        We need more details to be able to assist:

        1. XOA or XO from the sources? (if the latter, which commit)
        2. ESXi/vSphere version?
        S 2 Replies Last reply Reply Quote 0
        • S Offline
          sunwriter @olivierlambert
          last edited by

          @olivierlambert It is XO from sources, and ESXi / Vsphere 8. Thanks.

          1 Reply Last reply Reply Quote 0
          • S Offline
            sunwriter @olivierlambert
            last edited by

            @olivierlambert Xen Orchestra, commit 00a13

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

              1. Which commit? (as asked) you answered in between
              2. Is the VM halted?
              S 1 Reply Last reply Reply Quote 0
              • S Offline
                sunwriter @olivierlambert
                last edited by

                @olivierlambert I attempted when the VM was running. I just tried it now with the VM halted, but same error.

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

                  As we explained in our blog posts, we only support delta when it's ESXi < 6.5. So I would say it's normal it doesn't work in your case.

                  However, I have to admit we didn't test it yet with very recent VMware version. Maybe something changed in the API, I don't know. @florent will take a look when he can 🙂

                  S 1 Reply Last reply Reply Quote 0
                  • S Offline
                    sunwriter @olivierlambert
                    last edited by

                    @olivierlambert Ok, thank you. I'll look for a possible future update at some point. Many thanks to you and the team for your continued hard work on the project!

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

                      @sunwriter the fix is not merged in master for now, but it shuld land soon
                      My guess is that you don't use te default datacenter name

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

                        @sunwriter it is merged into master

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

                          🍾 😄

                          1 Reply Last reply Reply Quote 0
                          • S Offline
                            sunwriter @florent
                            last edited by

                            @florent Thank you! Looking forward to migrating more VM's.

                            1 Reply Last reply Reply Quote 1
                            • S Offline
                              s3b
                              last edited by

                              Hi,
                              i try to migrate vm from VMWARE esxi / vsphere 7.0.3 , i use the XO from source : xo-server 5.110.1 and xo-web 5.112.1 , commit : 5a2c3 .
                              VM halted or up same problem : "message": "404 Not Found https://xxxx/folder/baldr1-test_1/baldr1-test.vmx?dc=xxx&dsName=xxx" .
                              Any suggestions ? thanks ,
                              Seb .

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

                                Are you sure about the DC Name? 404 means we can't find the file with the URL we build.

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

                                  @s3b can you go to the datastore explorer of your esxi, download the baldr1-test.vmx file with your browser and compare the url with the one on 404 ?

                                  S 1 Reply Last reply Reply Quote 1
                                  • S Offline
                                    s3b @florent
                                    last edited by

                                    @florent @olivierlambert thanks for your fast reply , the url is different when i try to download the file :
                                    https://esx4.xxx.local/folder/baldr1-test_1/baldr1-test.vmx?dcPath=ha-datacenter&dsName=import-proxmox&enc=std

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

                                      @s3b we made a typo while cleaning code before merging , it is fixed on this branch fix_dcpath and, hopefully, it will be merged soon
                                      The PR is here : https://github.com/vatesfr/xen-orchestra/pull/6729/files

                                      fbeauchamp opened this pull request in vatesfr/xen-orchestra

                                      closed fix(vmware-explorer): fix dcPath parameter #6729

                                      S 1 Reply Last reply Reply Quote 1
                                      • S Offline
                                        s3b @florent
                                        last edited by

                                        @florent said in VMware import 404 error:

                                        fix_dcpath

                                        great job @florent 😄 , it works well now, just 2 things I don't run xo as root so I had errors on thick storage with vgchange rights so I used thin storage, and I had a problem with the TLS connection because I use a self-signed certificate for xo-server so I had to add in my systemd orchestra service:
                                        Environment=NODE_TLS_REJECT_UNAUTHORIZED=0 and
                                        then it worked very well.
                                        One thing that confused me a bit is that there was no progress bar on the import page but it is clearly visible on the tasks page. Thank you again for the responsiveness and efficiency.👍

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

                                          @s3b the progress bar is on our roadmap , it will be even more needed when handling multiple import in parallel

                                          S 2 Replies Last reply Reply Quote 1
                                          • S Offline
                                            s3b @florent
                                            last edited by

                                            @florent great ! 👍

                                            1 Reply Last reply Reply Quote 0

                                            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
                                            • First post
                                              Last post