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 176.1k 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.
    • M Offline
      michmoor0725 @julien-f
      last edited by julien-f

      @julien-f Here is the details from the log

      vm.importMultipleFromEsxi
      {
        "concurrency": 2,
        "host": "192.168.50.20",
        "network": "17519ece-8817-4e93-4afd-2a00f96927f0",
        "password": "* obfuscated *",
        "sr": "ea9202e0-dce9-244e-5983-69fea9aab6b8",
        "sslVerify": false,
        "stopOnError": true,
        "stopSource": false,
        "thin": false,
        "user": "admin",
        "vms": [
          "11"
        ]
      }
      {
        "generatedMessage": true,
        "code": "ERR_ASSERTION",
        "operator": "notStrictEqual",
        "succeeded": {},
        "message": "Expected \"actual\" to be strictly unequal to:
      
      undefined",
        "name": "AssertionError",
        "stack": "AssertionError [ERR_ASSERTION]: Expected \"actual\" to be strictly unequal to:
      
      undefined
          at Task.onProgress (/usr/local/lib/node_modules/xo-server/node_modules/@vates/task/combineEvents.js:48:16)
          at Task.#emit (/usr/local/lib/node_modules/xo-server/node_modules/@vates/task/index.js:130:21)
          at Task.#emit (/usr/local/lib/node_modules/xo-server/node_modules/@vates/task/index.js:124:17)
          at Task.run (/usr/local/lib/node_modules/xo-server/node_modules/@vates/task/index.js:137:17)
          at MigrateVm.migrationfromEsxi (file:///usr/local/lib/node_modules/xo-server/src/xo-mixins/migrate-vm.mjs:175:18)
          at file:///usr/local/lib/node_modules/xo-server/src/api/vm.mjs:1374:30
          at Task.runInside (/usr/local/lib/node_modules/xo-server/node_modules/@vates/task/index.js:149:22)
          at Task.run (/usr/local/lib/node_modules/xo-server/node_modules/@vates/task/index.js:134:20)
          at asyncEach.concurrency.concurrency (file:///usr/local/lib/node_modules/xo-server/src/api/vm.mjs:1372:11)"
      }
      
      julien-fJ 1 Reply Last reply Reply Quote 0
      • julien-fJ Offline
        julien-f Vates 🪐 Co-Founder XO Team @michmoor0725
        last edited by

        @michmoor0725 The same as the previous one then.

        Which commit are you on?

        M 1 Reply Last reply Reply Quote 0
        • M Offline
          michmoor0725 @julien-f
          last edited by

          @julien-f Im new to this so not really sure how to answer that question.

          xo-server 5.113.0
          xo-web 5.116.1

          I can PM my support ID if you need to poke around.

          julien-fJ 1 Reply Last reply Reply Quote 0
          • julien-fJ Offline
            julien-f Vates 🪐 Co-Founder XO Team @michmoor0725
            last edited by

            @michmoor0725 If you are using an official XOA, I think the best would be to wait for the future patch release (very very soon) and re-test after having upgraded 🙂

            M 1 Reply Last reply Reply Quote 1
            • M Offline
              michmoor0725 @julien-f
              last edited by

              @julien-f No worries. I dont mind waiting a bit. I do know a patch was pushed by @florent a few days ago.
              Im hoping the patches in the upcoming release fixes the imports. Right now i cant migrate anything. Not critical at this time.

              julien-fJ 1 Reply Last reply Reply Quote 0
              • julien-fJ Offline
                julien-f Vates 🪐 Co-Founder XO Team @michmoor0725
                last edited by

                @michmoor0725 XO 5.82.1 has just been released in the latest channel with a few bug fixes, please let me know if that helps.

                M 1 Reply Last reply Reply Quote 0
                • M Offline
                  michmoor0725 @julien-f
                  last edited by

                  @julien-f well well well....lol...
                  You are correct. There is an update and im able to import from VMware. No error messages so far.
                  Taking about 40 minutes or so but i dont know if thats good or not. I selected a NFS storage thats running on mechanical disks so i suspect thats the bottleneck.

                  I will keep everyone here up to date if i run into any issues.
                  Job well done you guys/gals. Job well done

                  M 1 Reply Last reply Reply Quote 1
                  • M Offline
                    michmoor0725 @michmoor0725
                    last edited by

                    @julien-f VM has been imported but the problem now is networking.
                    The VM cannot pick up an IP regardless of what network i place it in. The eth0 interface is down. I bring it up no IP. VM is set for DHCP.
                    I know the vlans work as thats how ive been building test VMs which are configured with a dhcp scope.

                    For example, ive built a DMZ Host from XO. No issue.
                    Ive imported a VM from ESXi and placed it in the DMZ vlan. No IP

                    I took a pcap from the firewall and sure enough I dont see any DHCP Discover packets at all.

                    M 1 Reply Last reply Reply Quote 0
                    • M Offline
                      michmoor0725 @michmoor0725
                      last edited by

                      disregard. I rebooted the VM a few times but the solution was to force a dhcp renew
                      $sudo dhclient

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

                        Good news then 🙂

                        M 1 Reply Last reply Reply Quote 1
                        • M Offline
                          michmoor0725 @olivierlambert
                          last edited by

                          @olivierlambert Very very good news. Great job on the import tool.

                          1 Reply Last reply Reply Quote 1
                          • A Offline
                            andyh
                            last edited by olivierlambert

                            I have a legacy host running VMWare 5.1.0, when attempting to execute

                            xo-cli --register --allowUnauthorized <host> <user>
                            

                            I receive the following error

                            ✖ Error: write EPROTO C057D8B5357F0000:error:0A000102:SSL routines:ssl_choose_client_version:unsupported protocol:../deps/openssl/openssl/ssl/statem/statem_lib.c:1987:
                            
                                at WriteWrap.onWriteComplete [as oncomplete] (node:internal/stream_base_commons:94:16) {
                              code: 'EPROTO',
                              errno: -71,
                              syscall: 'write'
                            }
                            

                            Would VMWare 5.1.0 be too old to transfer via Import from ?

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

                              Hi,

                              I'm not sure to understand why are you using XO CLI in the first place? Have you tried from the UI directly?

                              A 1 Reply Last reply Reply Quote 0
                              • A Offline
                                andyh @olivierlambert
                                last edited by olivierlambert

                                @olivierlambert

                                When I try the import from the UI directly I receive the following in the logs:

                                write EPROTO C0A77278D27F0000:error:0A000102:SSL routines:ssl_choose_client_version:unsupported protocol:../deps/openssl/openssl/ssl/statem/statem_lib.c:1987:
                                

                                I am using Xen Orchestra from sources (commit 6fe79)
                                xo-server 5.116.3
                                xo-web 5.119.1

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

                                  Sounds like very old SSL libs that are not supported anymore? 🤔

                                  A 1 Reply Last reply Reply Quote 0
                                  • A Offline
                                    andyh @olivierlambert
                                    last edited by

                                    @olivierlambert

                                    This was my initial thought, I tried to drop the MinProtocol to TLSv1.0 in openssl.cnf and recomplile from source. But the error persisted,

                                    Worst case I can look at manually exporting and importing the VMs.

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

                                      Let's wait to see if @florent got an idea 🙂

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

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

                                        @olivierlambert

                                        This was my initial thought, I tried to drop the MinProtocol to TLSv1.0 in openssl.cnf and recomplile from source. But the error persisted,

                                        Worst case I can look at manually exporting and importing the VMs.

                                        I have some work to do on the SSL ( the current implementation of the lib have some serious limit) , I will try to handle this at the same time.

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

                                          @florent thanks for the response

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

                                            @andyh hi

                                            could you tests this branch : https://github.com/vatesfr/xen-orchestra/pull/6859

                                            I rewrote the https handling, and I 'm curious of the behaviour with older host

                                            regards

                                            fbeauchamp opened this pull request in vatesfr/xen-orchestra

                                            closed feat(node-vsphere-soap): security improvements #6859

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