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

    VM association with shared storage

    Scheduled Pinned Locked Moved Management
    14 Posts 5 Posters 201 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.
    • olivierlambertO Offline
      olivierlambert Vates 🪐 Co-Founder CEO
      last edited by

      The ability to easily move VMs is called "agility" (a VM is agile if it can boot on different hosts thanks to a shared storage and config within the pool).

      As soon as your VMs are agile, there are many strategies for updates and maintenance. You can manually shutdown VMs, update and reboot if you want 🙂

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

        @olivierlambert

        Why did I not do this sooner 🙂

        P 1 Reply Last reply Reply Quote 0
        • P Offline
          ph7 @McHenry
          last edited by

          @McHenry
          You can try to schedule a rolling pool update.

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

            @ph7

            To automatically update the hosts? I expect, to work, a host reboot would be required however how can this be automated if the host has running VMs?

            P 1 Reply Last reply Reply Quote 0
            • P Offline
              ph7 @McHenry
              last edited by

              @McHenry
              Use the builtin function, just press Rolling pool update when there is updates available.
              Home/Pools/"Ryssen#
              82404e6e-8241-427a-b7d3-397813017978-image.png

              The rest is automatic or should I say, magic 🙂

              P 1 Reply Last reply Reply Quote 1
              • P Offline
                ph7 @ph7
                last edited by

                New job, try pool.rollingUpdate

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

                  @ph7

                  When a rolling pool update is performed I imagine the VMs are moved off the host being updated to another host. When the update is completed are the VMs moved back again?

                  I ask as I have a VM that must run on a particular host.

                  A 1 Reply Last reply Reply Quote 0
                  • A Online
                    acebmxer @McHenry
                    last edited by acebmxer

                    @McHenry

                    Depending how you have Load Ballance setup they may or may not move back to the original host. If the VM has hardware passed through from the host: then the vm can not be migrated and will have to be shut down during the update and then fired back up after host has come back.

                    If no hardware is locked to the vm you can set the host affinity and that should lock the vm to that host. (Advance settings of the vm)

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

                      @acebmxer

                      Perfect thanks. The issue is we have an IP address locked to that host so the router needs to live there. The host affinity looks like the correct solution.

                      e16d15f9-2ceb-4b6e-963d-0cc75c23d9fe-image.png

                      Does host affinity also prevent the VM being migrated manually?

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

                        No, it's just on boot, for the original placement. If you want the load balancer to place VM on some host because you prefer, it's called "Affinity". Good news: it will be there on November release of XO 🙂

                        P 1 Reply Last reply Reply Quote 1
                        • P Offline
                          Pilow @olivierlambert
                          last edited by

                          @olivierlambert on vmware we had affinity and anti affiniy rules to regroup or dispatch VMs

                          would be cool to have that managed by tags ?
                          tag VMGROUP1 : affinity rule to get app and database VMs on same host
                          tag VMGROUP2 : anti affinity rule to dispatch domain controllers on different hosts

                          doable ?

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

                            That's already how our load balancer works (with tags). We already have anti affinity, affinity comes soon.

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

                              See https://docs.xen-orchestra.com/load_balancing

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