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
  • Changing XOA IP

    Solved
    3
    0 Votes
    3 Posts
    3k Views
    F
    @olivierlambert Thank you
  • Hub template request

    5
    0 Votes
    5 Posts
    1k Views
    fohdeeshaF
    @ITJamie Alma Linux 8.5 template is finished and should be added to the hub in the next day or two. I should have Rocky Linux done shortly after that. Note that in CentOS/RHEL related distros, the hostname: {name}% parameter that's filled in under the cloud-init config is not enough to change the hostname for the machine, CentOS (and related) expects a fully qualified domain name. To get the newly spawned VM have the hostname you'd like, supply fqdn parameter as well: use VM name as hostname: #cloud-config hostname: {name}% fqdn: {name}%.localdomain.local use custom hostname: #cloud-config hostname: testvm fqdn: testvm.localdomain.local
  • XOCE - export VM error

    7
    3
    0 Votes
    7 Posts
    854 Views
    julien-fJ
    Fixed, thanks for the report https://github.com/vatesfr/xen-orchestra/commit/7830c89e66e178921695aa5e17670717703ef290 0 julien-f committed to vatesfr/xen-orchestra fix(xo-server/Xapi#exportVm): correctly use getRecord Introduced by 6aa5ec6eb
  • XOA - fail to change pool master

    15
    0 Votes
    15 Posts
    4k Views
    R
    @stormi yes, that we be helpful indeed so we can stick to a build version at least for a while.
  • app.createUserConnection is not a function

    12
    0 Votes
    12 Posts
    2k Views
    olivierlambertO
    I updated the doc accordingly: https://xen-orchestra.com/docs/community.html
  • Windows VM cannot boot, cannot insert ISO

    3
    0 Votes
    3 Posts
    2k Views
    A
    @mauzilla To boot an ISO in a VM, you need to select "DVD" in the boot order, put it first, and hit "Save". Then boot the VM. For ANY system (real or VM), you need boot it with the same type of bootstrap as it was installed to use. BIOS or UEFI. If you change the boot type then you have to make the OS ready to use the new/different settings (not just a VM problem). If you created a Windows image from a working system that booted with UEFI then you have to copy ALL partitions (the whole disk), not just the C windows drive.
  • Cannot resume an imported image

    3
    0 Votes
    3 Posts
    713 Views
    A
    @stormi Thanks for the big help that fixed the issue.
  • 0 Votes
    33 Posts
    14k Views
    Y
    Hi, first of all, thank you for developing and supporting these awesome products. I witnessed a similar issue upon running continuous replication on a VM after growing one of the disks on the source side. I run delta backup to a NFS share and continuous replication to another XCP-ng host in one job. The most important part of the relevant log messages remind me of this issue - this topic is the only similar reference I was able to find, so I hope this is the right place to post. If not, please let me know, and I'll create a new topic Mar 21 01:00:29 xcp-ng-2 xapi: [ info||8947241 INET :::80|Importing raw VDI R:3967654dad6b|vhd_tool_wrapper] Executing /bin/vhd-tool serve --source-format vhd --source-protocol none --source-fd 1f47b1fe-a9ea-4bda-ab8e-2101e5677059 --tar-filename-prefix --destination file:///dev/sm/backend/f7aca870-12e0-8352-9f86-f52d575eb313/6cd16448-6839-476d-93b1-2f8b816c827f --destination-format raw --progress --machine --direct --destination-size 0 --prezeroed Mar 21 01:00:29 xcp-ng-2 xapi: [error||8947241 INET :::80|Importing raw VDI R:3967654dad6b|vhd_tool_wrapper] vhd-tool failed, returning VDI_IO_ERROR Mar 21 01:00:29 xcp-ng-2 xapi: [error||8947241 INET :::80|Importing raw VDI R:3967654dad6b|vhd_tool_wrapper] vhd-tool output: vhd-tool: Non-zero size required (either a pre-existing destination file or specified via --destination-size on the command line)\x0A I'm currently running Xen Orchestra compiled from sources, on commit 5bc44363f9ac9fa534f3247e697f1b3c6991e916. XCP-ng is on version 8.2.0. I know that this is not fully up-to-date, but after retrying that backup as a first measure, Xen Orchestra ran a full backup for that VM, so I can't reproduce that issue anymore, but I figured posting that here might help resolving the aforementioned issue, if the causes correlate.
  • Netbox Plugin

    2
    0 Votes
    2 Posts
    712 Views
    olivierlambertO
    Hi @LTSFGriffin Netbox sync plugin is available in Enterprise tier
  • Transport-email and Google SMTP

    3
    0 Votes
    3 Posts
    1k Views
    J
    @Darkbeldin I wasn't sure about turning on two-factor. I went through that process and generated the "app password" and it seems to be working. Thanks for the info!
  • XOA can't start after installation and contradictory messages

    13
    0 Votes
    13 Posts
    5k Views
    olivierlambertO
    FYI, we modified the deploy script to be able to automatically modify XOA's VIF to run on the management network. So even in case of using only bonded networks like @Low351, this will now work.
  • Dashboard Health gives 'an error has occurred'

    10
    0 Votes
    10 Posts
    1k Views
    DanpD
    @davidg said in Dashboard Health gives 'an error has occurred': 5.58.1 That's ancient, so not a valid comparison. It's likely that a recent commit has broken something that they will eventually identify / fix.
  • New Smart Backup failure

    backup xenorchestra smart backups
    14
    0 Votes
    14 Posts
    3k Views
    mguyattM
    I did for sure. But I noticed that a new commit(886ff2cd7) was made literally in about the last hour and after updating again to that version all is good!
  • Server and VM report

    9
    0 Votes
    9 Posts
    3k Views
    J
    @olivierlambert We are using rrd2csv to get host cpu stats into SQL to provide nice Grafana page sorted by pool. It would be nice to dial even further down to the vm's that are running high cpu or have memory burden.
  • Kubernetes recipe failed - tasks stuck

    3
    0 Votes
    3 Posts
    490 Views
    P
    @BenjiReis XO from the appliance. I hadn't noticed the tasks queue counting up like that before I tried the recipe, but I'm perfectly willing to accept that I'm just not that observant. Thanks!
  • File recovery error

    4
    0 Votes
    4 Posts
    743 Views
    olivierlambertO
    Community version doesn't have a release number, but a commit version on master. Please check you are on the latest commit and rebuild
  • Xen Orchestra from Sources not showing host updates?

    4
    0 Votes
    4 Posts
    1k Views
    olivierlambertO
    That's correct. There's no more updates, that's why you MUST upgrade to 8.2 (see https://xcp-ng.org/docs/releases.html#all-releases )
  • XO HA - Different CPU's?

    2
    0 Votes
    2 Posts
    1k Views
    jedimarcusJ
    @wade_solarch Short answer: try to avoid that. Back in the old XenServer days, you had to manually change the cpu feature flags so it would work at all. https://xcp-ng.org/docs/requirements.html#pool-requirements This confirms that you can't mix Intel & AMD in a pool https://xcp-ng.org/docs/requirements.html#pool-requirements This explains Heterogeneous pools a little
  • Backup started to fail

    17
    3
    0 Votes
    17 Posts
    2k Views
    DarkbeldinD
    @stevewest15 Happy to help
  • 0 Votes
    1 Posts
    392 Views
    No one has replied