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

    Best way to migrate VMs from old pool to new?

    Scheduled Pinned Locked Moved Management
    14 Posts 7 Posters 1.9k Views 5 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.
    • DanpD Offline
      Danp Pro Support Team
      last edited by

      I would setup a Continuous Replication backup job to create a duplicate VM on the new storage repository. When you are ready to perform the cutover, shutdown the original VM, perform one final run of the CR job, and then start the new VM on the new pool.

      S D 2 Replies Last reply Reply Quote 3
      • S Offline
        simpleisbest @Danp
        last edited by

        @Danp Darn it.

        I should have been able to figure out that one on my own.

        Thanks!

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

          Note this is done almost automagically via our warm migration option (doing the same but integrated)

          E 1 Reply Last reply Reply Quote 0
          • D Offline
            DustinB @Danp
            last edited by

            @Danp said in Best way to migrate VMs from old pool to new?:

            I would setup a Continuous Replication backup job to create a duplicate VM on the new storage repository. When you are ready to perform the cutover, shutdown the original VM, perform one final run of the CR job, and then start the new VM on the new pool.

            This is exactly what I did years ago on another environment that I managed. Worked great and was seemless.

            1 Reply Last reply Reply Quote 0
            • E Offline
              ediazcomellas @olivierlambert
              last edited by

              @olivierlambert There is a slight but important difference: with the replication you still have the VM in the old pool as a failsafe. I just love warm migrations between clusters. They look like magic to me BUT precisely that magic feeling makes me worry about "what happens if something goes wrong?"

              It would be super cool to be able to check "leave the old machine powered off, I will delete it myself" when doing a warm migration between clusters.

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

                In that case, use replication, it's exactly what you need. With warm, you can always "warm back" to the original machine though.

                E 1 Reply Last reply Reply Quote 0
                • E Offline
                  ediazcomellas @olivierlambert
                  last edited by

                  @olivierlambert That is what I do right now. It would be very convenient to have warm migration without deleting the VM disk and configuration in the old cluster, though, as I would have the convenience of warm migration (don't need to shutdown, all actions automated) and the peace of mind that if something goes wrong, I can always start the VM again in the old cluster.

                  Thanks for the answer!

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

                    @ediazcomellas
                    Did I miss anything, or: Why don't you just live-migrate between the hosts? Did you change the CPU manufacturer?

                    If the VMs size is below 1TB, that should work fine, but - of course - the VM is removed from the source.

                    E 1 Reply Last reply Reply Quote 0
                    • E Offline
                      ediazcomellas @KPS
                      last edited by

                      @KPS live/warm migration between clusters is what we were discussing here. Yes, we do it routinely and it is a fantastic feature.

                      We have some VMs with more than 1 and 2 TBs of storage, so that takes ages. In that case, it is easier to assume some downtime and follow the continuous replication strategy, with the last copy done while the VM is powered off. The only advantage of this strategy over the live migration is that you retain a copy of the VM in the old cluster.

                      The ability to do a live migration but retain a copy of the VM in the old cluster, just in case, would be greatly appreciated. Best of both worlds.

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

                        Issue created: https://github.com/vatesfr/xen-orchestra/issues/8034

                        olivierlambert created this issue in vatesfr/xen-orchestra

                        closed Enable "keep original" in VM warm migration feature #8034

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

                          But… but. It's already there 😨

                          bbc9e8aa-ed5d-427a-9330-72a8d7eb39a7-image.png

                          I don't know how it could have been missed 😆

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

                            @olivierlambert Never seen that !?

                            Use this:
                            ScreenShot 2024-10-04 at 10.36.29.png

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

                              @manilx Just out about this 🤔
                              ScreenShot 2024-10-04 at 10.39.51.png

                              Stupid me.... Could have used that a few times, between our production and backup pools which are different.

                              There's always something "new"

                              1 Reply Last reply Reply Quote 0
                              • D danieeljosee referenced this topic on
                              • First post
                                Last post