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
  • This topic is deleted!

    1
    0 Votes
    1 Posts
    3 Views
    No one has replied
  • Creating network bonds in XO

    5
    0 Votes
    5 Posts
    1k Views
    olivierlambertO
    You can change the bond name yes.
  • Offline host vm removal

    Solved
    6
    0 Votes
    6 Posts
    2k Views
    olivierlambertO
    I just did
  • Backups & CR of same VM - Storage impact

    Solved
    5
    0 Votes
    5 Posts
    620 Views
    olivierlambertO
    That's a way to do it. Use smart backup on tags. Eg a tag called "delta only" and a tag "delta+CR", so you'll be sure to assign the right tag to your VM
  • LICENSE_RESTRICTION (PCI_device_for_auto_update)

    Solved
    15
    0 Votes
    15 Posts
    3k Views
    olivierlambertO
    Ahh finally!! Enjoy saying goodbye to Citrix We'll be delighted to get you on board (as a user or even as a contributor via our pro support!)
  • New XOA Remote not Working from previous install

    4
    0 Votes
    4 Posts
    516 Views
    olivierlambertO
    No. The parent folder. XO will search for the folder xo-vm-backups directly edit: if your share was previously <NFS_IP>:/myshare, then you should use this very same one, and NOT <NFS_IP>:/myshare/xo-vm-backups
  • Stuck tasks within XO (rrd_updates)?

    32
    1
    0 Votes
    32 Posts
    13k Views
    olivierlambertO
    That's why I don't know, I don't have any answer without digging more and sadly I can't If there's other people around to assist, go ahead
  • Enhancement: provide sha256 on XOA download

    2
    2
    0 Votes
    2 Posts
    211 Views
    olivierlambertO
    We'll add sha256, thanks.
  • Backup cancelled still marked as successful

    4
    0 Votes
    4 Posts
    587 Views
    olivierlambertO
    There's 2 reasons: XAPI doesn't tell us if the transfer is complete or just cut. We just stop to receive chunks, and after a bit, we decide that's it, there's no more data to send (that's the normal behavior even when it works!) XVAs are hard to validate, depending on various factors. We do a VHD validation (so for delta backup) but XVAs are another thing
  • Backup of Fast Cloned VM

    4
    0 Votes
    4 Posts
    2k Views
    olivierlambertO
    On the remote side, right? It won't be "dedup" if it's your question (for now at least). We are thinking on a smart way to dedup it efficiently It's not trivial because we don't have a lot of control on the host itself, but we might find solutions.
  • Unable to import vmdk Error: not a VMDK file

    10
    0 Votes
    10 Posts
    3k Views
    M
    @nraynaud well i just used the datastore browser to download the vmdk. i did the same thing with some other (smaller) VMs without any problems. All of this from the same ESXi host. Thanks for looking into it though, i will try the export VM way next but have to find the right time for a shutdown ...
  • Backup scheduling suggestions

    Solved
    7
    0 Votes
    7 Posts
    1k Views
    mauzillaM
    @badraz perfect thank you! Answered all my questions!
  • Storage impact on CR multiple retentions

    2
    0 Votes
    2 Posts
    240 Views
    olivierlambertO
    That's correct @mauzilla We use a VHD chain on destination so it's equivalent to get "snapshots" of a VM So it's delta everywhere with the same full parent for the same original VM.
  • New install does not load logs or perform backups

    32
    0 Votes
    32 Posts
    10k Views
    olivierlambertO
    You can rely on XOA for now, we can extend the trial as long you need
  • Handling of large VM's with delta backups

    4
    0 Votes
    4 Posts
    555 Views
    olivierlambertO
    The delta isn't computed over the network, but directly on the host itself
  • Reboot XOA

    9
    0 Votes
    9 Posts
    6k Views
    olivierlambertO
    It's hard to tell. Let's say next time it happens please report
  • Ubuntu 18.04 Cloud-Init Networking Problem

    13
    0 Votes
    13 Posts
    7k Views
    fohdeeshaF
    @slynch OK, that's very good news then! Debian was still having issues where any configuration applied via cloud-init would just be added to the existing default DHCP config, unless you took care to build the VM without the default interfaces config beforehand.
  • PCI Passthru Error not working on 8.2 but was 8.1

    5
    0 Votes
    5 Posts
    2k Views
    L
    @olivierlambert said in PCI Passthru Error not working on 8.2 but was 8.1: Hi! IOMMU should be enable in the BIOS. Double check that Also please share your grub config to see if it's correctly written. After playing with it more, the issue appears to be passing multiple devices of the same type. In this case RADEON WX7100. If I take it down to one card it works as expected. If I add more than 1, pick any quantity, then I run into the issue. The issue goes away once I reboot the host, and then I can assign a card, but the second the VM reboots the error comes back
  • Error: Expected "actual" to be strictly unequal to: false

    Solved
    5
    0 Votes
    5 Posts
    617 Views
    olivierlambertO
    This can happen from time to time on master (despite we do every "broken" code in dedicated branches), sometimes you can have a surprise. That's why it's important, before anything, to get the latest commit and rebuild, to see if the issue persist. If it's the case, then reporting the problem will be helpful
  • Auto coalescing of disks

    coalesce storage
    14
    0 Votes
    14 Posts
    8k Views
    C
    @olivierlambert thanks - I'll continue to look into it.