XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login
    1. Home
    2. gtuminauskas
    G
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 5
    • Groups 0

    gtuminauskas

    @gtuminauskas

    0
    Reputation
    1
    Profile views
    5
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    gtuminauskas Unfollow Follow

    Latest posts made by gtuminauskas

    • RE: VM templates override

      I am fed up with XCP-ng, using default values, which are insane.. if VM is using 720MB, so I could lower ram to 768MB (or at least to 1GB, it is NOT feasible)[it must be set to 2GB]

      posted in Compute
      G
      gtuminauskas
    • RE: VM templates override

      @gtuminauskas Also, there is a setting for CentOS Stream 9 - 4GB ram - which is overkill 4x times WTF?

      posted in Compute
      G
      gtuminauskas
    • RE: VM templates override

      @nick-lloyd said in VM templates override:

      Home -> Templates -> Find the template you want to change

      No, it is not possible to do it [also, it is set not to 2GB, but to 4GB (wtf?)]
      Screenshot from 2024-10-30 21-21-57.png

      posted in Compute
      G
      gtuminauskas
    • RE: VM templates override

      2gm ram probably would be OK if using GUI (desktop version) - but for minimal setup 2GB ram is simply overkill 2x times

      posted in Compute
      G
      gtuminauskas
    • VM templates override

      Screenshot from 2024-10-30 18-47-13.png Screenshot from 2024-10-30 18-58-04.png

      When creating new CentOS Stream 9 (or Rocky9) VM, there is somewhere in the template set statically minimum RAM to 2GB.
      I have no idea where these values are taken from, but to run VM in minimal installation, 1GB ram would be plenty and sufficient. Especially in home-lab or very limited environment this setting (coming from template) is not friendly at all (due to limited RAM available on the XCP-NG Host.

      Would it be possible to override those templates?

      For example, if I need to run simple nginx with few vhosts, for me it is just simply wasting of RAM (<800MB vs 2GB)
      Basically choosing memory lower than 2GB gives an error in XCP-NG: MEMORY_CONSTRAINT_VIOLATION_ORDER()

      vm.setAndRestart
      {
        "memory": 1610612736,
        "id": "91f37e6e-d386-1dd5-c88d-b0245e2e4f1d",
        "force": false
      }
      {
        "code": "MEMORY_CONSTRAINT_VIOLATION_ORDER",
        "params": [],
        "call": {
          "method": "VM.set_memory_limits",
          "params": [
            "OpaqueRef:fe6860c3-3158-4728-9fdb-fbf84a57b701",
            2147483648,
            1610612736,
            1610612736,
            1610612736
          ]
        },
        "message": "MEMORY_CONSTRAINT_VIOLATION_ORDER()",
        "name": "XapiError",
        "stack": "XapiError: MEMORY_CONSTRAINT_VIOLATION_ORDER()
          at Function.wrap (file:///usr/local/lib/node_modules/xo-server/node_modules/xen-api/_XapiError.mjs:16:12)
          at file:///usr/local/lib/node_modules/xo-server/node_modules/xen-api/transports/json-rpc.mjs:38:21
          at runNextTicks (node:internal/process/task_queues:60:5)
          at processImmediate (node:internal/timers:447:9)
          at process.callbackTrampoline (node:internal/async_hooks:128:17)"
      }
      

      Screenshot from 2024-10-30 19-04-20.png

      posted in Compute
      G
      gtuminauskas