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.
    • A Offline
      akaylee @florent
      last edited by

      @florent it doesn't seem to work, still stuck on 'Connect', 20 minutes elapsed

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

        @akaylee what is your current commit ?
        this is the right one : 0f0c0ec

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

          @florent sorry, overlooked!
          Yes, I was able to connect to my esxi host after updating to 0f0c0ec, testing migration right now
          Thank you!

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

            @florent Just updated from sources, but my latest commit looks to be 0f0c0ec0d. Have I missed something ?

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

              @andyh that's ok, I only pasted the start of the hash

              As long as you're up to date on master, it should work (also it does not disable certifictae check for the whole process now )

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

                @florent I still look to be receiving the same error, after updating to 0f0c0ec

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

                Any further thoughts?

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

                  Gave this is a try earlier with some changes to my openssl.cnf

                  Sadly still coming across the same error, is there a minimum ESXi version that the import tool will connect to ?

                  K 1 Reply Last reply Reply Quote 0
                  • K Offline
                    KPS Top contributor @andyh
                    last edited by

                    Hi!

                    I did try the migration from the GUI for the first time.
                    The job did start and create a VM on XCP-ng. But there is no snapshot on the "VMWare-side" and there is no progress on the import.

                    The job did start and XO-tasks is now showing "importing vms, duration a few seconds, status green"

                    There is no "cancel" option.

                    On the XCP-ng-SR, there are the new disks, but they are empty.

                    Do you have any idea, what I did wrong and how I can proceed?

                    Tested on XOA on latest stable

                    Thank you and best wishes

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

                      @KPS is there anything in the log ( journalctl ) ?

                      we can't migrate live data. Is the VM running ?

                      K 1 Reply Last reply Reply Quote 0
                      • K Offline
                        KPS Top contributor @florent
                        last edited by

                        @florent
                        Sorry, that was the problem.
                        I was mislead by the wording "Source VM stopped before the last delta transfer (after final snapshot). Needed to fully transfer a running VM" in the GUI.

                        K 1 Reply Last reply Reply Quote 0
                        • olivierlambertO olivierlambert moved this topic from News on
                        • K Offline
                          KPS Top contributor @KPS
                          last edited by

                          Hi!

                          I am still struggeling with the VMWare migration tool.

                          According to the docs, it should be possible to "warm-migrate" a VM, but when I try to, I am getting errors:

                          "message": "500 Internal Server Error https://vcenter/folder/InetTS00_U20.04/InetTS00_U20.04-flat.vmdk?dcPath=HZ&dsName=OpenE-2_vmware-1_LUN2",
                          

                          What is the "right" way to migrate a running VM?

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

                            @KPS It should, but there are some case where the esxi lock all the files of a VM, and other where it only locks the last snapshot. We're still working on the exact limit, what is the version of esxi used ? what storage do you use ( local VMFS, iscsi, NFS, ... ) ?

                            In parallel we're putting the finishing touch of a huge change that give a big speedup. that way the penalty of stopping the VM will be lighter. You can test by switching to the branch xva_generation
                            https://github.com/vatesfr/xen-orchestra/pull/7323

                            fbeauchamp opened this pull request in vatesfr/xen-orchestra

                            closed Import disks from ESXi to XCP-ng using XVA format #7323

                            K 1 Reply Last reply Reply Quote 0
                            • K Offline
                              KPS Top contributor @florent
                              last edited by

                              @florent
                              Thank you for your answer. I am using vSphere 7 with iSCSI-storage.
                              Can you give me a hint on the "most stable" way to migrate?

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

                                @KPS the most stable is always to stop the VMs
                                Trying to warm migrate a running VM between different hypervisor is always tricky, if not brittle, and we work to harden this process, define more clearly the limits and extends the possibilty (for example vsan)

                                What are the rough sizes of the VMs ? how many VM ? What is the timeframe of the full migration ?

                                Do you think you can give a try to the xva import on a stopped VM ? on some of my tests, this migration is completely saturating my network link and my disks, as shown in the PR. The fastest way is to have the XO doing the migration directly in the ESXI. As an additional bonus, the disk produced is thin

                                1 Reply Last reply Reply Quote 1
                                • N Offline
                                  neologic
                                  last edited by

                                  When migrating VMs from ESXi, the CPU count and Memory allocation is taken over to XCP-ng.
                                  That's all fine for me.
                                  However, after import, the static min memory allocation cannot be reduced.
                                  Is there a workaround?

                                  [02:56 xcp01 ~]# xe vm-param-get uuid=... param-name=memory-static-min
                                  8589934592
                                  [02:57 xcp01 ~]# xe vm-memory-static-range-set uuid=... min=4294967296 max=8589934592
                                  The dynamic memory range violates constraint static_min <= dynamic_min <= dynamic_max <= static_max.

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

                                    If you want to change the min, just change the min not the whole range 🙂

                                    1 Reply Last reply Reply Quote 0
                                    • N Offline
                                      neologic
                                      last edited by

                                      Hello Olivier

                                      Min value is deactivated and not changeable via GUI.

                                      However, I found out, that the static max value can be changed below the currently set static min value. (looks a bit strange to me?)

                                      Example:
                                      before change
                                      => min 8GB max 8GB
                                      change max value via GUI to 4GB
                                      after change
                                      => min 4GB max 4GB
                                      Then change the max value to 8GB again.
                                      => min 4GB max 8GB

                                      Best regards
                                      Thomas

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

                                        Yes, because there's no reason to modify the static min. I was asking why are you trying to change the whole range via the CLI.

                                        But first, what do you want to achieve functionally speaking?

                                        1 Reply Last reply Reply Quote 0
                                        • N Offline
                                          neologic
                                          last edited by

                                          To be able to start with dynamic memory at 4GB (min max) for the Windows Guest.
                                          And then if needed, to be able, to expand to 8GB (min max) on the fly.
                                          However, it seems, that the Windows Guest (2022 Server) always sees static max correct?

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

                                            Do you really need dynamic memory? I would prefer to avoid it if you can. Each migration will deflate the VM to the dynamic min, which is a cause of a lot of crashes and migration issues (if not taken into account, eg dynamic too low vs current usage). Keep it with static as far as possible.

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