XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login
    1. Home
    2. MajorP93
    M Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 8
    • Posts 165
    • Groups 0

    MajorP93

    @MajorP93

    65
    Reputation
    15
    Profile views
    165
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    MajorP93 Unfollow Follow
    • Xen Orchestra OpenMetrics Plugin - Grafana Dashboard

      Hello XCP-ng community!

      Since Vates released the new OpenMetrics plugin for Xen Orchestra we now have an official, built-in exporter for Prometheus metrics!

      I was using xen-exporter before in order to make hypervisor internal RRD database available in the form of Prometheus metrics.
      I migrated to the new plugin which works just fine.

      I updated the Grafana dashboard that I was using in order to be compatible with the official OpenMetrics plugin and thought "why not share it with other users"?

      In case you are interested you can find my dashboard JSON here: https://gist.github.com/MajorP93/3a933a6f03b4c4e673282fb54a68474b

      It is based on the xen-exporter dashboard made by MikeDombo: https://grafana.com/grafana/dashboards/16588-xen/

      In case you also use Prometheus for scraping Xen Orchestra OpenMetrics plugin in combination with Grafana you can copy the JSON from my gist, import it and you are ready to go!

      Hope it helps!

      Might even be a good idea to include the dashboard as an example in the Xen Orchestra documentation. 🙂

      Best regards

      posted in Infrastructure as Code
      M
      MajorP93
    • RE: Potential bug with Windows VM backup: "Body Timeout Error"

      @ph7 As a suggestion: it would improve readibility if you paste your logs on Vates official pastebin tool: https://paste.vates.tech/ and share the links here instead of posting the logs in multiple messages.

      posted in Backup
      M
      MajorP93
    • RE: XCP-ng 8.3 updates announcements and testing

      I updated my test environment and performed a few tests:

      • migrating VMs back and forth between VHD based NFS SR and QCOW2 based iSCSI SR --> VMs got converted between VHD and QCOW2 just fine, live migration worked
      • creation of rather big QCOW2 based VMs (2.5+ TB)
      • NBD-enabled delta backups of a mixed set of VMs (small, big, QCOW2, VHD)

      All tests worked fine so far. Only thing that I noticed: When converting VHD-based VMs to QCOW2 format I was not able to storage migrate more than 2 VMs at a time. XO said something about "not enough memory". That might be related to my dom0 in test environment only having 4GB of RAM. Maybe not related to VHD to QCOW2 migration path. I never saw this error in my live environment where all node's dom0 have 8GB RAM.

      Update candidate looks good so far from my point of view.

      posted in News
      M
      MajorP93
    • RE: XO5 breaks after defaulting to XO6 (from source)

      @MathieuRA I disabled Traefik and reverted to my old XO config (port 443, ssl encryption, http to https redirection), rebuild the docker container using your branch and tested:

      it is working fine on my end now 🙂

      Thank you very much!

      I did not expect this to get fixed so fast!

      posted in Xen Orchestra
      M
      MajorP93
    • RE: backup mail report says INTERRUPTED but it's not ?

      I updated to branch "mra-fix-rest-memory-leak".
      I will look at backup job results tomorrow and report back.

      posted in Backup
      M
      MajorP93
    • RE: backup mail report says INTERRUPTED but it's not ?

      @Pilow said in backup mail report says INTERRUPTED but it's not ?:

      @MajorP93 you say to have 8GB Ram on XO, but it OOMkills at 5Gb Used RAM.

      did you do those additionnal steps in your XO Config ?

      You can increase the memory allocated to the XOA VM (from 2GB to 4GB or 8GB).
      Note that simply increasing the RAM for the VM is not enough.
      You must also edit the service file (/etc/systemd/system/xo-server.service) 
      to increase the memory allocated to the xo-server process itself.
      
      You should leave ~512MB for the debian OS itself. Meaning if your VM has 4096MB total RAM, you should use 3584 for the memory value below.
      
      - ExecStart=/usr/local/bin/xo-server
      + ExecStart=/usr/local/bin/node --max-old-space-size=3584 /usr/local/bin/xo-server
      The last step is to refresh and restart the service:
      
      $ systemctl daemon-reload
      $ systemctl restart xo-server
      

      Interesting!
      I did not know that it is recommended to set "--max-old-space-size=" as a startup parameter for Node JS with the result of (total system ram - 512MB).
      I added that, restarted XO and my backup job.

      I will test if that gives my backup jobs more stability.
      Thank you very much for taking the time and recommending the parameter.

      posted in Backup
      M
      MajorP93
    • RE: Xen Orchestra OpenMetrics Plugin - Grafana Dashboard

      @Mang0Musztarda said in Xen Orchestra OpenMetrics Plugin - Grafana Dashboard:

      @MajorP93 hi, how can i scrape openmetrics endpoint?
      i set up openmetrics plugin prometheus secret, enabled it, and ten tried to use curl like that: curl -H "Authorization: Bearer abc123" http://localhost:9004
      but response i got was
      {"error":"Query authentication does not match server setting"}
      what am i doing wrong?

      Hey!
      I scrape it like so:

      root@prometheus01:~# cat /etc/prometheus/scrape_configs/xen-orchestra-openmetrics.yml 
      scrape_configs:
        - job_name: xen-orchestra
          honor_labels: true
          scrape_interval: 30s
          scrape_timeout: 20s
          scheme: https
          tls_config:
            insecure_skip_verify: true
          bearer_token_file: /etc/prometheus/bearer.token
          metrics_path: /openmetrics/metrics
          static_configs:
          - targets:
            - xen-orchestra.domain.local
      

      /etc/prometheus/bearer.token file contains the bearer token as configured in openmetrics xen orchestra plugin.

      best regards

      posted in Infrastructure as Code
      M
      MajorP93
    • RE: XCP-ng 8.3 updates announcements and testing

      @rzr Installed those security update candidates in my XCP-ng test environment.
      So far no issues whatsoever. Basic operations all work. VMs running etc.

      posted in News
      M
      MajorP93
    • RE: XCP-ng 8.3 updates announcements and testing

      I updated both my test and production XCP-ng environments.

      No issues during updates on all 6 hosts.

      posted in News
      M
      MajorP93
    • RE: XCP-ng 8.3 updates announcements and testing

      Can also confirm that I was able to apply this round of patches using rolling update method without any issues or slowdowns on a pool of 5 hosts.

      posted in News
      M
      MajorP93
    • RE: Manual CPU feature Masks (every CPU is a potato)?

      @Tackyone said:

      @MajorP93 said:

      @Tackyone said:
      live migrates between non-pooled [...]

      Hi,

      AFAIK this is not possible. Live migration does only work within the same pool. So you can not live migrate VMs to another pool / host that is not part of the pool.

      But we do that all the time? - i.e. Two non-pool hosts, live migrate between them (these happen to have the same CPU / family etc.)

      Okay I assumed that you use shared storage.

      From the XenServer 8.4 "Migrate VMs" docs:
      "Storage can only be shared between hosts in the same pool. As a result, VMs can only be migrated to hosts in the same pool."

      So for classic live migrations that do not transfer the virtual disk you have to be on the same pool.

      What you are describing must be a storage live migration then (XenMotion). That should work across pools, yes. I stand corrected because I did not factor in this variant in my initial answer.

      //EDIT: also there is no such thing as non-pool hosts. Even a single host setup has it's own pool.

      posted in Hardware
      M
      MajorP93
    • RE: Manual CPU feature Masks (every CPU is a potato)?

      @Tackyone said:
      live migrates between non-pooled [...]

      Hi,

      AFAIK this is not possible. Live migration does only work within the same pool. So you can not live migrate VMs to another pool / host that is not part of the pool.

      Regarding mixing and matching different CPUs within the same pool: do note that you can not mix AMD/Intel together. Different CPU models of the same brand within a pool will work though. And it behaves just like you said: XCP-ng hosts will agree on the least common denominator regarding CPU features and use that across the pool in order to ensure that (live) migrations will work.

      posted in Hardware
      M
      MajorP93
    • RE: Rolling Pool Update fails with HOST_NOT_ENOUGH_FREE_MEMORY, when it really ought to be fine

      @acebmxer @pkgw Do / did you guys have any VMs set to "best-effort" under VM's HA-settings?

      I encountered the exact same issue (HOST_NOT_ENOUGH_FREE_MEMORY) and was able to completely solve it by changing all VMs from "best effort" to "restart".

      Best regards

      68852f5d-70bc-48d1-97f4-c897091e0ca1-image.jpeg

      posted in Management
      M
      MajorP93
    • RE: Potential bug with Windows VM backup: "Body Timeout Error"

      @ph7 As a suggestion: it would improve readibility if you paste your logs on Vates official pastebin tool: https://paste.vates.tech/ and share the links here instead of posting the logs in multiple messages.

      posted in Backup
      M
      MajorP93
    • RE: Potential bug with Windows VM backup: "Body Timeout Error"

      Due to the fact that this is the second XO release in a row that broke backups I do wonder: are all backup job types being tested via automated unit tests? Are those tests being run multiple times in order to catch issues that do not occur during every single test run? There must be a reason for QA not catching these kind of issues…

      posted in Backup
      M
      MajorP93
    • RE: Backup fails with "Body Timeout Error", "all targets have failed, step: writer.run()"

      Actually after latest XO update I also started to see "body timeout error". Interestingly on my metadata backup job.

      posted in Backup
      M
      MajorP93
    • RE: Can't restart stopped VMs; unclear error message

      @the_jest According to my own tests not rebooting after patching XCP-ng hosts can cause several issues. Thats why Xen Orchestra GUI notes to reboot after updating. Documentation has further explanation for this and explains whole update procedure.

      posted in XCP-ng
      M
      MajorP93
    • RE: PCIe Pass-through lanes and lane performance

      Hello!
      Just an idea but maybe the PCI link speed you are seeing is related to some sort of energy saving feature?
      Background: I have a Nvidia GPU in my PC and when there is no load the PCIe speed is lowered from PCIe 4.0 to 1.1 due to energy saving feature.

      fbd06c41-50cb-4334-9c98-92a3b6573389-image.jpeg

      So yeah, I think @teddyastie 's idea is a good approach here. Try how your setup behaves during a workload.

      posted in Compute
      M
      MajorP93
    • RE: How to Setup IPMI in XO

      @marcoi I found out what to enter for "vendor" by running "dmidecode -s system-product-name" on one of my XCP-ng hosts:

      [15:45 xcpng01 ~]# dmidecode -s system-product-name
      Super Server
      

      //EDIT: in your case it looks like you should enter "To Be Filled By O.E.M." for vendor. Not "To Be Filled By O.E.M. (To Be Filled By O.E.M.)"

      posted in Management
      M
      MajorP93
    • RE: How to Setup IPMI in XO

      For my fellow Supermicro enjoyers: I was able to get the plugin to show some information.
      Even if there are some parts missing it is better than nothing in my opinion.

      Go to settings --> plugins --> ipmi-sensors --> "+" --> Add --> Fill information and add the vendor string as well as the Sensor Reg Ex.

      045bb645-4c8b-4ede-8798-38e0b3475b9c-image.jpeg

      a83cee37-0ee2-4939-b6cb-c3884e814618-image.jpeg

      Hope this helps.

      Best regards

      posted in Management
      M
      MajorP93