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

    MajorP93

    @MajorP93

    74
    Reputation
    17
    Profile views
    173
    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

      @rzr Thanks! How long does it take for these patches go be available?

      [17:00 xcpng01 ~]# yum update
      Geladene Plugins: fastestmirror
      Loading mirror speeds from cached hostfile
      Excluding mirror: updates.xcp-ng.org
       * xcp-ng-base: mirrors.xcp-ng.org
      Excluding mirror: updates.xcp-ng.org
       * xcp-ng-updates: mirrors.xcp-ng.org
      No packages marked for update
      
      

      //EDIT: Nevermind. After running yum clean metadata they are being picked up.

      posted in News
      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: Veeam for Xen Orchestra has been release today 13.1

      @acebmxer Hello, thanks for sharing this here! 🙂

      Me and my team have been waiting for this release!

      I signed up for the Veeam newsletter hoping I would get notified once Veeam 13.1 (an XCP-ng plugin) gets released but they seem to be a bit slow.

      So I found out about this release due to your post.

      Will start testing!

      posted in Backup
      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

      Installed these patches on a pool of 4 hosts, can confirm everything looking good!

      posted in News
      M
      MajorP93
    • RE: Veeam for Xen Orchestra has been release today 13.1

      @acebmxer Hello, thanks for sharing this here! 🙂

      Me and my team have been waiting for this release!

      I signed up for the Veeam newsletter hoping I would get notified once Veeam 13.1 (an XCP-ng plugin) gets released but they seem to be a bit slow.

      So I found out about this release due to your post.

      Will start testing!

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

      Hello,

      the issue is back on my end.
      Pool and metadata backup failed on all remotes due to "body timeout error".

      dc6631af-5178-4347-9cb9-e9ef388b3606-image.jpeg

      Attached please find full backup log:
      https://paste.vates.tech/?f781d8cb757e56b1#8MN4cyjHhkWKzhhvvggckf8mqjT9gxDY6t4vkSVQcWUY

      I can confirm what @christopher-petzel said. Before commit 63f8d got pushed this issue did not occur.

      I am currently running commit 1d82c (feat: release 6.6.2).

      Best regards

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

      Installed these patches on a pool of 4 hosts, can confirm everything looking good!

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

      @rzr Thanks! How long does it take for these patches go be available?

      [17:00 xcpng01 ~]# yum update
      Geladene Plugins: fastestmirror
      Loading mirror speeds from cached hostfile
      Excluding mirror: updates.xcp-ng.org
       * xcp-ng-base: mirrors.xcp-ng.org
      Excluding mirror: updates.xcp-ng.org
       * xcp-ng-updates: mirrors.xcp-ng.org
      No packages marked for update
      
      

      //EDIT: Nevermind. After running yum clean metadata they are being picked up.

      posted in News
      M
      MajorP93
    • RE: xcp-ng server crashed/rebooted due to issues with drbd/linstor?

      @Jonathon I think @mathieu-l asked it you rebooted after installing drbd 9.2.18 from test repository. Your message sounds like you rebooted after installing 9.2.16 but not after applying the 9.2.18 update from test repository.

      posted in XOSTOR
      M
      MajorP93
    • RE: xcp-ng server crashed/rebooted due to issues with drbd/linstor?

      @jonathon are you using your LINSTOR/DRBD stack in the form of licensed XOSTOR? Your issue looks a case for pro support. Did you consider opening a case with pro support?

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

      @rzr Since the targeted test window is over by now, I wonder: what are your plans regarding this set of patches? Will it be released soon?

      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