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

    MajorP93

    @MajorP93

    50
    Reputation
    14
    Profile views
    141
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    MajorP93 Unfollow Follow

    Best posts made by MajorP93

    • 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: 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

      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: Remote syslog broken after update/reboot? - Changing it away, then back fixes.

      @rzr Thank you very much!

      @michmoor0725 Absolutely! The community is another aspect of why working with XCP-ng is a lot more fun compared to working with VMWare!

      posted in Compute
      M
      MajorP93
    • RE: [VDDK V2V] Migration of VM that had more than 1 snapshot creates multiple VHDs

      @florent said in [VDDK V2V] Migration of VM that had more than 1 snapshot creates multiple VHDs:

      @MajorP93 the size are different between the disks, did you modify it since the snapshots ?

      would it be possible to take one new snapshot with the same disk structure ?

      Sorry it was my bad indeed.
      On the VMWare side there are 2 VMs that have almost the exact same name.
      When I checked for disk layout to verify this was an issue I looked at the wrong VM. 🤦

      I checked again and can confirm that the VM in question has 1x 60GiB and 1x 25GiB VMDK.

      So this is not an issue. It is working as intended.

      Thread can be closed / deleted.
      Sorry again and thanks for the replies.

      Best regards
      MajorP

      posted in Xen Orchestra
      M
      MajorP93
    • RE: Xen Orchestra Node 24 compatibility

      said in Xen Orchestra Node 24 compatibility:

      After moving from Node 22 to Node 24 on my XO instance I started to see more "Error: ENOMEM: not enough memory, close" for my backup jobs even though my XO VM has 8GB of RAM...

      I will revert back to Node 22 for now.

      I did some further troubleshooting and was able to pinpoint it down to SMB encryption on Xen Orchestra backup remotes ("seal" CIFS mount flag).
      "ENOMEM" errors seem to occur only when I enable previously explained option.
      Seems to be related to some buffering that is controlled by Linux kernel CIFS implementation that is failing when SMB encryption is being used.
      CIFS operation gets killed due to buffer exhaustion caused by encryption and Xen Orchestra shows "ENOMEM".
      Somehow this issue gets more visible when using Node 24 vs Node 22 which is why I thought it was caused by the Node version + XO version combination. I switched Node version at the same time I enabled SMB encryption.
      However this seems to be not directly related to Xen Orchestra and more a Node / Linux kernel CIFS implementation thing.
      Apparently not a Xen Orchestra bug per se.

      posted in Xen Orchestra
      M
      MajorP93
    • RE: XCP-ng center 25.04.0 does not see guest-tools.iso

      @dom0 As already previously mentioned XCP-ng Center / XenCenter are not officially supported and a third-party product.
      It is generally advised to use Xen Orchestra for all administration / management tasks.

      If it is a requirement for you to use a thick client (such as XCP-ng Center) you might want to try XenAdminQt: https://github.com/benapetr/XenAdminQt

      It is also not officially supported but a very new project that gets updated frequently. Maybe that one works better for you.

      posted in XCP-ng
      M
      MajorP93

    Latest posts made by 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: XOA - Memory Usage

      @florent Thanks!
      I did not have time (yet) to look into the heap export due to weekend being in between.
      I will update to current master and provide you with the heap export in the following days.
      Best regards

      posted in Xen Orchestra
      M
      MajorP93
    • RE: XOA - Memory Usage

      @florent Yes I am using XO from sources:

      f3222523-abf2-4c99-a9ce-30574cf8615d-image.jpeg

      Currently on the branch that @bastien-nollet asked me to test.

      Yeah sure I can export a memory heap. Can you give me instructions for that?
      Also: currently I have one backup job running. Is it better to take the memory heap snapshot while backup is running or afterwards?

      Best regards

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

      Hello @MathieuRA , @florent

      Moving the discussion to this thread as it seems to be tackling the same issue: https://xcp-ng.org/forum/topic/11892/xoa-memory-usage/28?_=1776334896974

      I reported my findings so far over there

      Best regards

      posted in Backup
      M
      MajorP93
    • RE: XOA - Memory Usage

      Hello @bastien-nollet @florent

      moving the discussion from this thread (link), to this one as it seems to be tackling the same issue.

      This is the RAM usage of my Xen Orchestra instance before applying "fix(rest-api): fix memory-leak on subscription" 7b109c5e-67b5-4994-95f1-4e51815807a0-image.jpeg

      Between 04/07 and 04/10 the system was not rebooted. The RAM usage increased step by step as shown in the screenshot caused by backup runs. Each backup run increased RAM usage and it did not go back to where it was before the backup run.

      This is the RAM usage after applying said fix via branch "mra-fix-rest-memory-leak".

      5a8bfa32-a467-4fa5-b88e-4904b5603a7e-image.jpeg

      Between 04/14 and 04/16 the VM was not restarted.
      Backup jobs are scheduled to run every day.
      RAM usage still increased a bit by each backup run but it seems to be less.
      Looks like an improvement (which is great!) but maybe the issue is not fully fixed yet.

      I can not fully tell as I need to keep monitoring this a bit more.

      I will keep having an eye on this and report back.

      Thanks for working on this and best regards.

      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 ?

      @MathieuRA Sounds promising! Once my backup job finished I will update my XO instance and start testing. Thanks for the heads up and for working on this.
      Best regards

      posted in Backup
      M
      MajorP93
    • RE: clean-vm (end) is stalling ?

      @simonp Hello! Sorry for the delay. I had some time to test the branch that you mentioned.
      6e26aafb-2ab6-48e2-b68d-daa11a2acc01-image.jpeg

      I can say that the backup job took way less time to finish after you applied those fixes.
      In my case it came down from 2 days to 10 hours.

      I wanted to compare all of the backup runs of the last weeks and give you some real data but unfortunately my Xen Orchestra seems to not show the backup runs that took place before updating to your branch in backup history.

      I still feel like backups take a little bit longer compared to before the merge-refactor but it is only a small difference.

      Anyways. It is a big improvement and the jobs finish in reasonable time again. Thank you!

      posted in Backup
      M
      MajorP93
    • RE: clean-vm (end) is stalling ?

      @simonp I'll have to wait for the currently running backup job to finish.
      I will update my XO instance afterwards and re-test.
      I can probably give you feedback in this regard tomorrow or the day after at latest.
      Thanks and best regards

      posted in Backup
      M
      MajorP93
    • RE: clean-vm (end) is stalling ?

      @simonp Awesome. Thanks for working on this.

      posted in Backup
      M
      MajorP93