Subcategories

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

    458 Topics
    4k Posts
    C
    I have two PE R630 and one PE R730xd. The two R630s show the IPMI data in XO but the R730xd does not. If I run ipmitool sensor from an ssh session, I get very similar data back on the 730 and 630. This isn't critical to me, just letting you know that there are cases that functioning ipmitool on a Dell does not seem to be enough to show it. There are some differences in the labels. The R730 has "Fan1 RPM", "Fan2 RPM" while the R630 has "Fan1A", "Fan2A", "Fan1B". Most of the other interesting fields seem to have the same names but the order is a bit different and I didn't do an exhaustive comparison. It's very cool that you are surfacing this data now.
  • ACLs, Self-service, Cloud-init, Load balancing...

    102 Topics
    843 Posts
    H
    Are the users from the oidc provider unique and not already present as local users? I ran into this issue because my already existing local user was the same as the oidc provided user
  • All XO backup features: full and incremental, replication, mirrors...

    481 Topics
    5k Posts
    F
    Retrying the job after the above failure results in a full replication and a new VM being created just as before.
  • Everything related to Xen Orchestra's REST API

    84 Topics
    625 Posts
    K
    Hi Vates team, I'm building an automated deployment tool that provisions VMs via the XO REST API (/rest/v0/). The tool needs to work on both Xen Orchestra from Sources (XOCE) and XO Appliance (XOA). I ran into a few API limitations and wanted to share what I found, along with the workarounds I implemented. Hopefully this feedback is useful. 1. cpus field in create_vm — XOCE vs XOA inconsistency When calling POST /rest/v0/pools/{id}/actions/create_vm, XOCE accepts a cpus field in the request body to set the vCPU count on the new VM. XOA rejects the same payload with a 400 error citing "excess property". Workaround: I send the payload with cpus included, and if the response contains "excess property", I retry without it. The VM inherits the template's vCPU count in that case, which is acceptable but not ideal — it means XOA users can't set vCPUs at creation time via the REST API. Request: Could the cpus field be added to XOA's CreateVmBody schema to match XOCE behavior? Or if there's a different field name XOA expects, documentation would be appreciated. 2. No way to rename VDIs via REST API When cloning a VM from a template, the new VM's VDIs (virtual disks) inherit their names from the template. In a Storage Repository with many VMs, this creates confusing duplicate names. I wanted to rename VDIs after creation to follow a {vm_name}_Disk0_OS convention, but the REST API doesn't appear to support PATCH or PUT on /rest/v0/vdis/{id}. I also attempted using the JSON-RPC API (/api/) with vdi.set, but discovered that the JSON-RPC endpoint only supports WebSocket connections — HTTP POST to /api/ returns an HTML redirect rather than a JSON-RPC response. Workaround: I document that users should name the template's VDIs descriptively before converting to a template, since those names propagate to all clones. Request: Would it be possible to add PATCH support for VDI properties (at minimum name_label) to the REST API? Alternatively, if there's an existing method I'm missing, I'd appreciate a pointer. I see that this may have been mentioned here as well: https://xcp-ng.org/forum/topic/11970/request-add-patch-vms-id-for-updating-vm-properties-name_description-name_label 3. Boot order altered when cloning without vdis array (XO #4980) When creating a VM via create_vm with clone: true and no vdis array in the payload, the resulting VM has network boot prepended to its boot order (e.g., "ncn" instead of "cn"). This causes the VM to PXE boot instead of booting from disk. Including a vdis array in the payload — even if the VM doesn't need a new disk — preserves the correct boot order from the template. Workaround: When no data disk is needed, I inject a temporary 1 GB dummy VDI in the vdis array to force the correct boot order, then delete it immediately after VM creation (before the first boot). This is obviously a hack, but it works reliably. I believe this is related to XO issue #4980. Any update on whether this will be addressed in the REST API? Environment XO versions tested: XOCE 5.x (built from sources, commit d1736) and XOA (v6.1.2) XCP-ng: 8.3 API version: REST v0 (/rest/v0/) Automation context: Bash-based installer using curl for all API calls Happy to provide payload examples or logs if any of the above would benefit from more detail. Thanks for the great platform — these are relatively minor friction points in an otherwise excellent API.
  • Terraform, Packer or any tool to do IaC

    49 Topics
    463 Posts
    dalemD
    Version 1.4.0 is released: https://codeberg.org/NiXOA/system/releases/tag/v1.4.0 It includes significant changes and improvements, including: dedicated getting started section, migration to valkey, only needing to clone system, and helper scripts. the xen-orchestra-ce nixpkg now references the libvhdi nixpkg, and the core flake now references and pulls from the xen-orchestra-ce repo as an overlay. System (the user input flake) now uses the Core repo as an overlay, reducing the need to clone both locally AND allowing system to pull new updates and releases from core. XO, and libvhdi as needed. The next goal is: Make an xsconsole-like TUI Automate package updates for libvhdi and xen-orchestra-ce using CI/CD pipelines Submit libvhdi and xen-orchestra-ce as official nixpkgs
  • XOA - backups skipped to protect VDI chain

    23
    1
    0 Votes
    23 Posts
    6k Views
    olivierlambertO
    VDI to coalesce number should decrease over time yes. If it's not, you might have a coalesce issue in your storage, check the /var/log/SMlog in the relevant host (master for shared storage, the host attached to its local storage otherwise). Rescan will scan for the LV/VHD files. But coalesce is automatically checked/started every 5 minutes. Coalesce can take time (depending on SR read/write and quantity to "merge"). Next releases will have a visible task for pending coalesce (next major XCP-ng release). Until then, you can do a ps axf | grep coalesce to see if there's something happening.
  • CD drive not completely installed in XOA

    16
    0 Votes
    16 Posts
    6k Views
    julien-fJ
    @olivierlambert Done: https://github.com/vatesfr/xen-orchestra/commit/33b45d2eda2ce6d8071541da246bdcfd06b133b8 It's not perfect but that should help Example: vm.start { "id": "123e4f2b-498e-d0af-15ae-f835a1e9f59f", "bypassMacAddressesCheck": false, "force": false } { "errors": [ "R620-L3: VM_REQUIRES_SR(OpaqueRef:21fa00fc-62ce-4694-8b49-fcecd600a89e, OpaqueRef:4dd615a7-9a8c-4698-aceb-c10f782321c8)", "R620-L1: HOST_NOT_ENOUGH_FREE_MEMORY(216430280704, 18778341376)", "R620-L2: VM_REQUIRES_SR(OpaqueRef:21fa00fc-62ce-4694-8b49-fcecd600a89e, OpaqueRef:4dd615a7-9a8c-4698-aceb-c10f782321c8)" ], "message": "", "name": "Error", "stack": "Error: at Xapi._startVm (file:///home/julien/dev/vatesfr/xen-orchestra/packages/xo-server/src/xapi/index.mjs:1358:15) at Xapi.startVm (file:///home/julien/dev/vatesfr/xen-orchestra/packages/xo-server/src/xapi/index.mjs:1393:7) at Api.callApiMethod (file:///home/julien/dev/vatesfr/xen-orchestra/packages/xo-server/src/xo-mixins/api.mjs:307:20)" } 2 julien-f committed to vatesfr/xen-orchestra feat(xo-server): better info when failing to start a VM Fixes https://xcp-ng.org/forum/post/47329
  • Enable Advanced Live Telemetry option disabled

    Solved
    3
    0 Votes
    3 Posts
    1k Views
    M
    @Danp K great, thanks.
  • Anti affinity on xoa

    7
    0 Votes
    7 Posts
    2k Views
    R
    @olivierlambert well, yes, there is definitely room for improvement on that part of the gui ;). although I was able to get any other plugin working no worries though, the quick fix is to remove the (optional)
  • Cant delete templates, error 'incorrect state'

    2
    0 Votes
    2 Posts
    429 Views
    olivierlambertO
    There's an open issue about this on Github, just check on the forum
  • XO logging me out after only afew seconds

    4
    0 Votes
    4 Posts
    391 Views
    olivierlambertO
    Something is maybe interfering with websockets. Have you tried in private mode in case there's a problem with your cookies? If you have pro support, that might be the right time to open a support ticket so we can assist you remotely
  • Reverse Proxy with Apache

    16
    0 Votes
    16 Posts
    8k Views
    olivierlambertO
    Good If there's anything wrong in the doc, you can correct it!
  • Need help with delta backup retention

    Solved
    5
    3
    0 Votes
    5 Posts
    1k Views
    olivierlambertO
    You are welcome Remember to always keep on latest commit to see if your issue persists.
  • Xen Orchestra 5.67 and VMDK export

    4
    2
    0 Votes
    4 Posts
    903 Views
    olivierlambertO
    Are you sure your XOA is up to date? The question mark icon might indicate your XOA isn't registered. In that case, it's not up to date
  • Problem with file level restore from delta backup from LVM parition

    53
    0 Votes
    53 Posts
    23k Views
    W
    @ilidza no unfortunately not I opend a github issue. Here the link - Maybe you can ad something. https://github.com/vatesfr/xen-orchestra/issues/6097 @olivierlambert i have tried it on XOA - the same Issue. wuchererbe created this issue in vatesfr/xen-orchestra closed unknown filesystem type LVM2_member #6097
  • Proxy Backup speed

    7
    2
    0 Votes
    7 Posts
    1k Views
    julien-fJ
    @olivierlambert XO and XO Proxy are using the same code and the same backup workers to run backup jobs. If there are differences in perf, IMHO, they come from the appliances themselves and/or their networks. Keep in mind that data flows from the host, via XO or XO proxy, to the remote storage. Maybe the proxy is further from the host and/or the remote regarding the network?
  • XOSANv2 Trial in XOCE?

    5
    0 Votes
    5 Posts
    4k Views
    C
    Ok, I'll look into it some more. Right now, I'm just looking for XOCE to be hosted in the XOSTOR to avoid any issues with an NFS in my homelab going down. I have a spare M.2 NVME in each host that I can use, I'm pretty sure that my XOCE isn't very big.
  • Incremental backup - force full backup

    6
    3
    0 Votes
    6 Posts
    797 Views
    olivierlambertO
    That's correct. It's the new "reference" for the following delta, so we need to be able to read the full when we restore the backup (or a file) or when we coalesce (when reaching the retention). That's why compressing the full isn't trivial.
  • Backup report template

    6
    0 Votes
    6 Posts
    1k Views
    ronivayR
    Wouldn't that support something like doesn't match pattern? I got similar monitoring, although i have a custom script that does the check but essentially i just look for status being successand if not, then alert.
  • ENAMETOOLONG in orchestra.log during merge

    5
    0 Votes
    5 Posts
    976 Views
    julien-fJ
    @anonabhar You can safely delete these files
  • please add a paste option into the console in XOA

    2
    2 Votes
    2 Posts
    1k Views
    olivierlambertO
    It's probably broken in that version of noVNC sadly This will change in XO 6/XO Lite
  • "Alt Gr" key locked

    5
    0 Votes
    5 Posts
    5k Views
    A
    Same here with a German keyboard where backshlashes require using the AltGR key. With most other (especially when cascaded) remove viewers, hitting Ctr, Alt and AlgGr keys alone helps to get shift states back in order, but not here. BTW I also noted that hitting the RDP button, didn't lauch RDP, just lost the mouse but not they keyboard, which is also rather strange.
  • Alpine 3.14 not detected correctly

    4
    3
    0 Votes
    4 Posts
    931 Views
    ForzaF
    I created an issue on https://gitlab.alpinelinux.org/alpine/aports/-/issues/13506 to track this.
  • Restore backup to multiple target SR

    3
    0 Votes
    3 Posts
    656 Views
    marcungeschiktsM
    @olivierlambert and @lukas , indeed it is already in our backlog. We 'll do our best to deliver it in the first trimester. FYI: Github issues : #4016 #4605 and also in our private Wekan board #725 For each VDI, select target SR (or ignore) - Vates team use only
  • Functionality of the RDP button in XOA?

    2
    0 Votes
    2 Posts
    1k Views
    olivierlambertO
    It's an RDP URL available in your browser. You need to have configured your browser with a working app to link the rdp:// URL to your remote desktop application.