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
  • Installation form sources missing xo-server module

    7
    0 Votes
    7 Posts
    2k Views
    DanpD
    @julien-f I believe that you already updated the docs, but that occurred after the postings above. You may want to review the section discussing forever-service to be sure it doesn't need modified.
  • restoring META

    7
    0 Votes
    7 Posts
    2k Views
    C
    @s-pam i'd say use them, always use the. Only a few KB of space and could be every handy. We have 3 servers in the pool so overlooked requirement for full pool recovery. (p.s we didn't fail, it's during DR testing it was flagged) we had the backups on already and if this had been a real issue, would have saved a lot of bacon!! turn it on ! (and check you can get it without a running XOA for quicker restore in full meltdown.)
  • Build from source Error

    Solved
    12
    0 Votes
    12 Posts
    1k Views
    olivierlambertO
    Thanks for the report!
  • NTP Settings XOA?

    13
    2
    0 Votes
    13 Posts
    8k Views
    olivierlambertO
    This section has nothing to do with XOA IP address, but useful to restrict some VMs to some IP address. I agree it's unclear. But as I said, for now, there's 0 GUI to configure the system per se. That's why I said it could be an addition sure, but there's nothing yet, so adding it will take some time or efforts, and it's not a priority as we speak (our backlog is already pretty big). But again, as an Open Source project, we are welcoming contributions!
  • Questions: Placing a new VM in a suitable pool/How is a host chosen ?

    2
    0 Votes
    2 Posts
    371 Views
    olivierlambertO
    To pick a pool: it's up to you to decide, depending on available pool storage capacity, speed. Same for compute and network. It's very very specific to your own needs, there's no universal rules. Host selection for a VM: it's not decided by XO but by XAPI (except if you specifically ask to boot on a host). IIRC, it's a mix of load and memory available, but if you want to dig further, it should be written in the XAPI code somewhere
  • USB Hard drives for VM exports

    13
    0 Votes
    13 Posts
    5k Views
    IndyJI
    @indyj FYI when I ran this test again it worked. this time: I ran it as a "Delta" backup. And then rescanned the removable media. I was then able to restore an individual file from the backup on USB media.
  • creating trunked connections through physical interfaces.

    3
    0 Votes
    3 Posts
    1k Views
    fohdeeshaF
    @garrya Hi, it sounds like you've set up VLAN interfaces correctly on the XCP-ng side, but the switch they are connected to also needs to be aware of VLAN tags to pass them, or else it will only pass untagged traffic as you noticed. You'll need a smart/managed switch with VLAN capability to do so
  • Authentication via Active Directory

    3
    0 Votes
    3 Posts
    2k Views
    B
    @deoccultist Sadly, none of this seemed to make any difference.
  • Can Network be selected for Backups?

    4
    1
    0 Votes
    4 Posts
    1k Views
    olivierlambertO
    See my answer in the other thread.
  • Support for XO in docker container

    21
    0 Votes
    21 Posts
    13k Views
    olivierlambertO
    We are investigating an elegant solution called RunX. Basically, it might be able to transparently any standard "container stack" (Docker and/or k8s). See https://www.youtube.com/watch?v=9m95hojMtsU There's some work to adapt that to XAPI, but it might be doable. This means XCP-ng could be "container" native while having very good level of isolation with very small VMs (only few MiB overhead).
  • Add rescan ISO SR from VM menu

    6
    1
    0 Votes
    6 Posts
    1k Views
    pdoniasP
    This is simple enough so we'll implement it in XO 5. Thanks for the feedback!
  • Wasabi just wont work...

    9
    0 Votes
    9 Posts
    2k Views
    K
    5.79.3 / 5.81.0 All of my backups work (now), and speeds range between 5 MB/s to 20 MB/s. Most of my VM's are smaller (zstd helps a lot), though the largest archive is about 80 GB. Also, all of my backups are sequential -- I seem to remember a previous note where somebody had problems with concurrent uploads. My XOCE VM runs with 12 GB, which was the number that "just works" according to some of my earlier problems (and I haven't bothered to chase down or fine tune further).
  • This topic is deleted!

    3
    0 Votes
    3 Posts
    4 Views
  • backblaze b2 / amazon s3 as remote in xoa

    59
    2
    0 Votes
    59 Posts
    28k Views
    S
  • Migrating VM fails with DUPLICATE_VM error

    12
    0 Votes
    12 Posts
    3k Views
    I
    @olivierlambert having exactly the same issue as wcom939 reported. What did you mean by "Can you try with xe command to see if you have the same error?" ? Migrate using CLI? there are too many options:)
  • Alpine Linux from HUB: xe-daemon: CollectOS error

    9
    0 Votes
    9 Posts
    1k Views
    olivierlambertO
    @fohdeesha let's work on another clean Alpine template.
  • Task aborted before completion

    3
    0 Votes
    3 Posts
    390 Views
    mauzillaM
    @danp thank you, but in our case the 2nd remote is a hypervisor? I dont know how we should run the backup first then copy the VHD files to the the 2nd hypervisor as continuous replication also creates a VM? I am sure that if I can limit the amount of VM's that is exported once (it's currently 2) then the backups for the large VM should complete. Is there a setting available for this?
  • Can't edit XO metatata backup config

    Solved
    12
    2
    0 Votes
    12 Posts
    2k Views
    olivierlambertO
    Thanks @badrAZ for the fix!
  • Is there a feature to auto start a VM?

    4
    0 Votes
    4 Posts
    730 Views
    mauzillaM
    Thanks both, agreed, in hindsight this should be configured on the VM itself as it could lead to unexpected issues (like maintenance and having VM's start by themselves) Thanks for the input
  • VM Memory Limits Question

    2
    0 Votes
    2 Posts
    3k Views
    olivierlambertO
    Here is a good explanation: https://docs.citrix.com/en-us/xencenter/7-1/dmc-about.html Static can only be set while the VM is offline. Dynamic can be changed in live. When you'll live migrate a VM, it will be decreased to the dynamic min. So take care to use a value that's higher than your VM operating system minimum RAM usage.