Subcategories

  • VMs, hosts, pools, networks and all other usual management tasks.

    486 Topics
    4k Posts
    johnnezeroJ
    Affinity Manager Plugin WHAT: In keeping with my previous project (Tag-Automation Plugin, found here), I am releasing the Affinity Manager Plugin, which is a fully tag-driven plugin for Xen Orchestra. It is designed to provide VM placement and grouping controls based on assigned tags, which are managed by predefined tag rules. PROGRAM FEATURES Host Affinity (RunOn) Run VMs on specific host group (e.g. a particular data center or set of hosts) Host Anti-Affinity (NotOn) Keep VMs off of specific host group VM Keep-Together (KeepTogether) Keep named group of VMs on the same host (follows Leader VM) VM Separation (KeepApart) Spread named group of VMs across unique hosts (best-effort) VM TAG SYNTAX Apply tags to VMs in the XO UI: VM TAG / RULE EXAMPLE MEANING AM-RunOn_{HostGrpName} AM-RunOn_P1-DC2-HOST VM should run on hosts tagged P1-DC2-HOST AM-NotOn_{HostGrpName} AM-NotOn_P2-DC1-HOST VM should NOT run on hosts tagged P2-DC1-HOST AM-KeepTogether_{GrpName} AM-KeepTogether_AppStack1 Keep all group VMs on same host (follows Leader VM) AM-KeepApart_{GrpName} AM-KeepApart_DBCluster1 Spread group VMs across unique hosts (best effort) Note: Multiple rules can be combined on a single VM. For example, a VM can have both AM-RunOn_P1-DC1-HOST and AM-KeepTogether_WebCluster simultaneously. HOST TAG SYNTAX Apply tags to hosts in the XO UI (i.e. to define host groups): EXAMPLE HOST TAG POOL LOCATION P1-DC2-HOST POOL-1 Data Center 2 P2-DC1-HOST POOL-2 Data Center 1 INSTALLATION Download the latest airgap release tarball from GitHub: https://github.com/johnezero/xo-affinity-manager/releases SCP the tarball to your XOA: scp xo-affinity-manager-airgap-vX.X.X.tar.gz <xoa-user>@<xoa-ip>:/tmp/ Create the plugin folder: sudo mkdir -p /usr/local/lib/node_modules/xo-server-affinity-manager Extract directly into the plugin directory: sudo tar -xzvf /tmp/xo-affinity-manager-airgap-vX.X.X.tar.gz -C /usr/local/lib/node_modules/xo-server-affinity-manager/ --strip-components=1 Restart xo-server: sudo systemctl restart xo-server Verify registration: sudo journalctl -u xo-server -n 100 --no-pager | grep -A3 "affinity-manager" You should see: [INFO] xo-affinity-manager: Plugin factory called -- xo context: YES [INFO] xo-affinity-manager: Plugin loaded -- waiting for core started. xo:plugin INFO successfully register affinity-manager Enable and configure the plugin in XO: Settings -> Plugins -> affinity-manager -> Enable CONFIGURATION (XO > Settings > Plugins) Enforcement Schedule — Run every 15 minutes, hourly, or daily (configurable) Dry Run Mode — Logs all intended actions without migrating anything (default: ON) Log Path — Configurable path to the log (Created automatically if it does not exist). Pool Safety — Cross-pool migration is always blocked (i.e. Plugin only migrates VMs within the same pool) Log Rotatate — Rotate/compress log files at 10 MB (keeping 3 archives) LINKS GitHub: https://github.com/johnezero/xo-affinity-manager STANDARD DISCLAIMER HERE This software is provided AS-IS without any express or implied warranty. While this plugin is being used in a production environment managing live VMs, you should always review the code and test it in a non-production environment before full deployment. Note: The plugin is designed to ONLY take action on VMs with specific predefined tags assigned -- all other VMs are never touched. Use Dry-Run mode to preview all changes before applying them. That said, as always - your mileage may vary... [image: 1788399103619-johnezero-logo-small.png]
  • ACLs, Self-service, Cloud-init, Load balancing...

    106 Topics
    869 Posts
    T
    @mpiton Thanks for looking into this, I guess it wasn't apparent that I needed to click the Save Configuration button for that plugin. I did that and confirmed that the secret now survives an xo-server restart. Thanks again!
  • All XO backup features: full and incremental, replication, mirrors...

    528 Topics
    6k Posts
    acebmxerA
    @florent I sent pm with support tunnel. Are you able to apply patch or will patch be pushed live soon?
  • Everything related to Xen Orchestra's REST API

    87 Topics
    650 Posts
    A
    @poddingue Borrow away - "smoke alarm" is a better name for it than anything we had, so we might borrow it right back. Since you mentioned reading the matrix - here is the classification you would be reading, straight from the file: grep access: dadl/xen-orchestra.dadl | sort | uniq -c 49 access: admin 21 access: dangerous 122 access: read 75 access: write 122 of the 267 tools are plain read - that is the entire surface a review-capped agent gets. The other 145 exist in the same file, but for that agent they might as well not. The whole security taxonomy is greppable plaintext - which is rather the point of a declarative format. And if anything in the matrix looks wrong or missing, this thread is exactly the right place - real-world corrections are how it improves.
  • Terraform, Packer or any tool to do IaC

    51 Topics
    485 Posts
    CyrilleC
    @koushik you have to use the Helm controller addons for RKE2 to deploy autmatically the Helm chart for the Xen Orchestra CCM with the field spec.bootstrap set to true: Field | Default | Description -------------------------------------------------- `spec.bootstrap` | `false` | Set to True if this chart is needed to bootstrap the cluster (Cloud Controller Manager, etc) EDIT: I wrote a wiki page with what I've tested https://github.com/vatesfr/xenorchestra-cloud-controller-manager/wiki/Rancher-RKE2
  • 2 Votes
    11 Posts
    4k Views
    akurzawaA
    https://github.com/vatesfr/xen-orchestra/issues/4472
  • Continuous Replication Manual initial seed

    Solved
    7
    0 Votes
    7 Posts
    1k Views
    julien-fJ
    FYI, an extremely basic command line to encode passwords: > node -e 'process.stdin.on("data", _ => {console.log(encodeURIComponent(_.toString().trim())); process.exit()}); process.stdout.write("Password: ")' Password: foo@bar foo%40bar
  • Remotes - NFS - Disk (Used / Total) blank after update

    8
    0 Votes
    8 Posts
    2k Views
    C
    @badrAZ w00t! Thank you! I look forward to the update. BTW, I went ahead and threw my updated XO CE into "production" here at home where it runs 10 VMs. So far no other issues seen by me. XCP-NG/XO.
  • NFS Backups and Xen Orchestra

    9
    0 Votes
    9 Posts
    6k Views
    olivierlambertO
    Doc now updated with 2 pictures here: https://xen-orchestra.com/docs/proxy.html#architecture
  • 0 Votes
    29 Posts
    8k Views
    olivierlambertO
    Have you read https://xen-orchestra.com/docs/delta_backups.html ? Use normal backup it will work. Or stick with delta and advanced option, a full every 1 backup.
  • Xen Orchestra editions

    Solved
    6
    0 Votes
    6 Posts
    4k Views
    olivierlambertO
    You are welcome
  • Delta backup always full for running VMs

    14
    0 Votes
    14 Posts
    3k Views
    J
    @julien-f Thank you and @olivierlambert for the quick and outstanding support!
  • sexilog ova import... causes xoa to drop import task

    10
    0 Votes
    10 Posts
    2k Views
    nraynaudN
    you can follow the fix is in this pull request: https://github.com/vatesfr/xen-orchestra/pull/5085
  • Unable to register XOA

    Solved
    7
    0 Votes
    7 Posts
    5k Views
    olivierlambertO
    Did it for you
  • 0 Votes
    28 Posts
    13k Views
    M
    Hi, I've noticed the addition of the commit about the 99 limit warning. That's good news. I am now having trouble trying to understand the meaning of the Full Backup Interval setting. I have the following scenario: Backups for the last 30 days, daily. Backups for the last 52 weeks, weekly. I want to make sure that the delta backups are not corrupt periodically (let's say once a month). I don't understand how to set the schedules, the backup retention, the full backup interval. I also need answers to the following questions, and I haven't been able to understand this from the documention. Do I need one delta backup with 2 schedules, or 2 backups with one schedule each ? I've noticed that full backup interval is per backup, whereas retention is per schedule. How do these two settings interact with multiple schedules? On what dates will the transfers be large ? How many full backups will be stored on the remote at any given time ? When will the merges happen? Thanks
  • All plugins missing after upgrade from sources

    Solved
    5
    0 Votes
    5 Posts
    1k Views
    olivierlambertO
    https://xen-orchestra.com/docs/community.html Always pull the latest commit and rebuild before opening a thread
  • Increase dynamic minimal memory limit on increasing RAM

    1
    0 Votes
    1 Posts
    494 Views
    No one has replied
  • New Error w/ Backups

    2
    0 Votes
    2 Posts
    466 Views
    olivierlambertO
    Hi, Have you checked that before? https://xen-orchestra.com/docs/community.html
  • set up NFS remotes

    2
    0 Votes
    2 Posts
    819 Views
    jedimarcusJ
    Do you get any errors that would help? You might only need to add the user correctly in /etc/sudoers
  • XOA load balancing

    11
    0 Votes
    11 Posts
    3k Views
    olivierlambertO
    @segfaultex a patch release will come this month fixing a condition preventing correct migration.
  • Can I run multiple XOA

    7
    0 Votes
    7 Posts
    3k Views
    F
    THank you. Its up and running nothing broke
  • Turned off network boot for XOA in advanced and now broken

    Solved
    9
    0 Votes
    9 Posts
    3k Views
    olivierlambertO
    No problem, happy to help
  • Blank Screen CentOS 8 in fresh xcp-ng 8 installation

    14
    0 Votes
    14 Posts
    6k Views
    m076162M
    @MichaelCropper, to answer your question, yes, I enabled networking during the installation process. This allowed me to SSH in following the subsequent reboot to run yum groupinstall "Workstation". VGA was enabled for me and then Video RAM was at 16MiB. @ben20ben brings up good advice with the XCP-ng tools, install it and life gets easier.
  • Installed from sources - no plugins

    Solved
    10
    0 Votes
    10 Posts
    2k Views
    olivierlambertO
    Thanks for the feedback
  • suggestions for future upgrade...

    3
    0 Votes
    3 Posts
    832 Views
    cbaguzmanC
    @olivierlambert said in suggestions for future upgrade...: web hooks Thank @olivierlambert I'm going to read about web hooks in xoa.