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

    How to increase XOA-memory with XOA

    Scheduled Pinned Locked Moved Management
    16 Posts 6 Posters 806 Views 4 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.
    • B Offline
      blackliner
      last edited by

      could XCP-ng support the use case by accepting new resource quotas, and apply them on the next reboot?

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

        I'm not sure to get your question @blackliner

        Can you rephrase or detail it?

        1 Reply Last reply Reply Quote 0
        • B Offline
          blackliner
          last edited by

          Instead of forcing a reboot when changing the CPU or memory resources, the new settings could be "saved" and applied at the next possible time, e.g. when there is a reboot.

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

            Okay so:

            1. You are not forced to reboot to add or remove vCPU, depending on the vCPU max value
            2. However, I understand what you mean and the potential use case. However a VM reboot is different than a halt+boot, and a VM.reboot isn't enough to change it. Maybe we could have a modal telling "can't apply now, would you like to do the change by shutdown/start the VM?". But the issue if we store it, and the "surprise" you can have if you set it and forgot then
            B tjkreidlT 2 Replies Last reply Reply Quote 0
            • B Offline
              blackliner @olivierlambert
              last edited by blackliner

              @olivierlambert said in How to increase XOA-memory with XOA:

              "can't apply now, would you like to do the change by shutdown/start the VM?"

              ⬆ this 100%! Because then the approach looks like this:

              • UI - changing the resources
              • UI - trigger a shutdown
              • UI - go to the xo-lite and launch the VM

              instead of

              • UI - change the resources, get prompted for a halt+boot, press ok, resulting in the chicken and egg problem plus an error message shortly before the UI goes dark
              • UI - go to the xo-lite and figure out what is going on, realize you can't change resources in xo-lite
              • CLI - ssh to the master
              • CLI - run the command to upgrade resources
              • CLI - start the VM (I hope you copied the UUID, because this command does not take vm names)
              1 Reply Last reply Reply Quote 0
              • Tristis OrisT Offline
                Tristis Oris Top contributor
                last edited by

                simple way - clone XO vm or use Xen client.

                B 1 Reply Last reply Reply Quote 0
                • B Offline
                  blackliner @Tristis Oris
                  last edited by

                  @Tristis-Oris

                  clone XO

                  Is running multiple identical XO a supported use case?

                  Tristis OrisT 1 Reply Last reply Reply Quote 0
                  • Tristis OrisT Offline
                    Tristis Oris Top contributor @blackliner
                    last edited by

                    @blackliner you need for a 1 minute task.
                    also you can run multiple xo along.

                    1 Reply Last reply Reply Quote 0
                    • tjkreidlT Offline
                      tjkreidl Ambassador @olivierlambert
                      last edited by

                      @olivierlambert I guess migrating the VM to a different host would not kick in the changes, either, since the VM is technically not shut down in the process?

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

                        Yeah, this raises a lot of question. If you do the change and forgot about it, many things could happen before a shutdown/start.

                        B 1 Reply Last reply Reply Quote 0
                        • B Offline
                          blackliner @olivierlambert
                          last edited by

                          @olivierlambert But it does not sound like a proble. As long as the UI is doing a good job in making the pending change visible, what's the harm? Others do it in a similar fashion 😬
                          53574a32-17e1-4cc5-a404-95cf35271001-image.png

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

                            Not a problem, something to be done correctly, and not implemented at all in the current XCP-ng API. In other words, it's not trivial 🙂 You can create an issue in XO repo with all the details (and the screenshot), this at least needs some serious work to find what would be the best approach (and then sorted from our backlog)

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