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

    Need Help Understanding Resource Sets

    Scheduled Pinned Locked Moved Advanced features
    5 Posts 3 Posters 168 Views 2 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.
    • K Offline
      kagbasi-ngc
      last edited by

      Good-day Folks,

      I need some help understanding the Resource Set quotas in Xen Orchestra. I've read through the official documentation but couldn't find anything that addresses what I'm seeing.

      So, it's my understanding that the quotas that can be set in a Resource Set are global and not per VM created - is this correct? If so, then I'm not understanding why I am unable to create a snapshot when it seems I have the resources available to do so. Essentially, as you may gleam from the screenshot below, I created a Resource Set to have a limit of 8 GiB RAM, 150 GiB Storage, and 1 vCPU. With these limits, I thought I should be able to create a snapshot of the VM I created using this Resource Set. Unfortunately, an attempt to snapshot this VM, results in the following error message:

      not enough resources in resource set
      

      It appears my understanding of the quotas may be incorrect and would appreciate some input from the community, thank you.

      Screenshot 2025-02-02 031525.png

      DanpD 1 Reply Last reply Reply Quote 0
      • DanpD Offline
        Danp Pro Support Team @kagbasi-ngc
        last edited by

        @kagbasi-ngc Take a look at this KB article. Also see this prior thread -- https://xcp-ng.org/forum/topic/5902/permissions-for-users-to-be-able-to-snapshot

        K 1 Reply Last reply Reply Quote 0
        • K Offline
          kagbasi-ngc @Danp
          last edited by

          @Danp Aaah, thanks for pointing me to these resources. After reading, I thought it best to simply increase the quotas in my resource set definition to accommodate.

          I felt having to modify the config file was too clunky. This seems like something that should be exposed in the UI when defining the resource set.

          1 Reply Last reply Reply Quote 0
          • E Offline
            ecoutinho
            last edited by

            @kagbasi-ngc You can go to Settings > Logs to display the details of that resources error message. It should say something such as this:

            vm.snapshot
            {
              "id": "7f3d5995-3ab8-bfd5-ec72-c36e98d8cc70"
            }
            {
              "code": 24,
              "data": [
                {
                  "resourceSet": "UXh2bwwr9Lo",
                  "resourceType": "cpus",
                  "available": 0,
                  "requested": 4
                }
              ],
              "message": "not enough resources in resource set",
            

            From my tests, you need to have free cpu, ram and storage of the same amount of the VM. So, to be able to snapshot that VM you would need 2 cpus and 16 GiB of ram in the resource.

            K 1 Reply Last reply Reply Quote 0
            • K Offline
              kagbasi-ngc @ecoutinho
              last edited by

              @ecoutinho Thanks for chiming in. I managed to figure out the math, but thanks nonetheless.

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