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

    VMware migration tool: we need your feedback!

    Scheduled Pinned Locked Moved Migrate to XCP-ng
    318 Posts 37 Posters 174.3k Views 30 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.
    • olivierlambertO Offline
      olivierlambert Vates 🪐 Co-Founder CEO
      last edited by

      Struggled to get it to work until someone pointed out that you need a snapshot of the VM first before executing the command.

      This was explicitly told in the blog post šŸ˜‰

      e757687d-8e65-4e34-8a82-d368be1907bc-image.png

      F 1 Reply Last reply Reply Quote 0
      • F Offline
        fmarais007 @olivierlambert
        last edited by fmarais007

        @olivierlambert both VM's were in a halted state, but didn't want to initiate the migration until I made a snapshot.
        So it is really an AND statement, until phase 3 is rolled out šŸ™‚

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

          @fmarais007 Hi, it should have worked with a halted VM

          would you be able to get the full error message ? It will help us improve the process

          F 1 Reply Last reply Reply Quote 0
          • F Offline
            fmarais007 @florent
            last edited by

            @florent
            Hi, error below as requested.

            āœ– Cannot convert undefined or null to object
            JsonRpcError: Cannot convert undefined or null to object
                at Peer._callee$ (/usr/local/lib/node_modules/xo-cli/node_modules/json-rpc-peer/dist/index.js:139:44)
                at tryCatch (/usr/local/lib/node_modules/xo-cli/node_modules/@babel/runtime/helpers/regeneratorRuntime.js:44:17)
                at Generator.<anonymous> (/usr/local/lib/node_modules/xo-cli/node_modules/@babel/runtime/helpers/regeneratorRuntime.js:125:22)
                at Generator.next (/usr/local/lib/node_modules/xo-cli/node_modules/@babel/runtime/helpers/regeneratorRuntime.js:69:21)
                at asyncGeneratorStep (/usr/local/lib/node_modules/xo-cli/node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:24)
                at _next (/usr/local/lib/node_modules/xo-cli/node_modules/@babel/runtime/helpers/asyncToGenerator.js:22:9)
                at /usr/local/lib/node_modules/xo-cli/node_modules/@babel/runtime/helpers/asyncToGenerator.js:27:7
                at new Promise (<anonymous>)
                at Peer.<anonymous> (/usr/local/lib/node_modules/xo-cli/node_modules/@babel/runtime/helpers/asyncToGenerator.js:19:12)
                at Peer.exec (/usr/local/lib/node_modules/xo-cli/node_modules/json-rpc-peer/dist/index.js:182:20)
            
            florentF 1 Reply Last reply Reply Quote 0
            • florentF Offline
              florent Vates 🪐 XO Team @fmarais007
              last edited by

              @fmarais007 I can reproduce this, it's the snapshot code that fails when there is no snapshot
              I will work on it and update the branch when fixed

              thank you

              1 Reply Last reply Reply Quote 1
              • SheffSixS Offline
                SheffSix
                last edited by

                I feel really dumb. The blog says all you need to do is build from the vmware branch - but I cannot find the vmware branch. I'm probably looking in the wrong place. My assumption is it should be a branch of the xen-orchestra repo on github, but I cannot see it.

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

                  @florent did you create the branch as requested? Same question for the release channel, I didn't test myself

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

                    @SheffSix my bad, I publichsed the branch with the wrong name

                    the PR is here https://github.com/vatesfr/xen-orchestra/pull/6595 with the branch name vmware and it contains fix of the bug detected by @fmarais007

                    Edit: fixed link and branch name

                    fbeauchamp opened this pull request in vatesfr/xen-orchestra

                    closed feat(xo-server): import VM from esxi #6595

                    1 Reply Last reply Reply Quote 1
                    • A Offline
                      alexredston
                      last edited by

                      Hi, very excited by this migration tool, as after much faffing about with Vmware converter I found that my VMs were quite impractical to import do to the size fo the OVA files, so I have built XO with the vmware branch but the xo-cli command does not give me the vm.importFomEsxi / vm.importFromEsxi command.

                      Perhaps I am being a muppet? My xo-cli is v0.14.2

                      I have also tried checking out the the vmware PR #6595 which is 18 commits ahead.

                      Running xo-cli system.getServerVersion I seem to be way ahead on 5.107.5

                      Keen to test this important feature out, but a little confused as to how to get the correct version of xo-cli and XO to test it.

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

                        Are you using the xo-cli binary built from XO folder?

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

                          @alexredston nice catch, the methods weren't listed in list-command, it's fixed on the vmware branch

                          Regards

                          Florent

                          A 1 Reply Last reply Reply Quote 1
                          • A Offline
                            alexredston
                            last edited by

                            Hi guys, thank you both for your helpful and very prompt responses. I am just running a build with the latest vmware source and will report back.

                            Had hoped to do it over Christmas but it was really busy for us with many colleagues away.

                            1 Reply Last reply Reply Quote 0
                            • A Offline
                              alexredston @florent
                              last edited by

                              @florent Excellent!

                              1 Reply Last reply Reply Quote 0
                              • Y Offline
                                ysageev @alexredston
                                last edited by

                                @alexredston How do we get the "vmware branch" so that we can execute importFomEsxi? I also just used 0.14.2 and have the same problem.

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

                                  @ysageev if you are using XO from the sources, you should know how to change a branch on Git šŸ˜‰
                                  If you are on XOA, it's just typing vmware in the custom release channel.

                                  1 Reply Last reply Reply Quote 0
                                  • olivierlambertO olivierlambert referenced this topic on
                                  • brezlordB Offline
                                    brezlord
                                    last edited by

                                    I'm running the latest build form source and from the vmware branch but I cant get the import from ESXi to XCP-ng working, below is the error.

                                    root@xoa:~# xo-cli vm.importFromEsxi host=192.168.40.203 user='root' password='password' sslVerify=false vm=11 sr=648548b5-a789-6c72-2518-407a12717fad network=b71bcce1-0d59-0c13-7ca9-f28e24982355
                                    āœ– no server to connect to!
                                    Error: no server to connect to!
                                        at connect (file:///opt/xo/xo-builds/xen-orchestra-202301220427/packages/xo-cli/index.mjs:35:11)
                                        at async Object.call (file:///opt/xo/xo-builds/xen-orchestra-202301220427/packages/xo-cli/index.mjs:425:14)
                                        at async main (file:///opt/xo/xo-builds/xen-orchestra-202301220427/packages/xo-cli/index.mjs:268:12)
                                    

                                    Any help would be appreciated.

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

                                      @brezlord said in VMware migration tool: we need your feedback!:

                                      192.168.40.203

                                      hi,

                                      are you sure the XO server can access this ip ? is there an esxi 6 / 7 running there ?

                                      regards

                                      brezlordB 1 Reply Last reply Reply Quote 0
                                      • brezlordB Offline
                                        brezlord @florent
                                        last edited by

                                        @florent it's esxi 7 and yes XO is in the same sub net and can ping the esxi server

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

                                          @brezlord before using xo-cli to connect to the esxi, you must connect xo-cli to your installation

                                          with xo-cli --register <url of your xo> <login> and it will sk for the password

                                          brezlordB 1 Reply Last reply Reply Quote 0
                                          • brezlordB Offline
                                            brezlord @florent
                                            last edited by

                                            @florent said in VMware migration tool: we need your feedback!:

                                            xo-cli --register

                                            I get the following error when regisering.

                                            root@xoa:~# xo-cli --register xoa.corp.com 'admin@corp.com'
                                            Password: ************
                                            āœ– unable to verify the first certificate
                                            Error: unable to verify the first certificate
                                                at TLSSocket.onConnectSecure (node:_tls_wrap:1545:34)
                                                at TLSSocket.emit (node:events:513:28)
                                                at TLSSocket._finishInit (node:_tls_wrap:959:8)
                                                at ssl.onhandshakedone (node:_tls_wrap:743:12)
                                            
                                            florentF 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post