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
  • xo-cli vm.migrate mapVifsNetworks object syntax

    3
    0 Votes
    3 Posts
    495 Views
    olivierlambertO
    @julien-f I think someone should update the doc with a real example
  • Xen Orchestra Quick Deploy Fails

    5
    1
    0 Votes
    5 Posts
    2k Views
    P
    @Danp Good catch, can't believe I missed that. Unfortunately, that produced a new error; Error code: SR_BACKEND_FAILURE_77 Error parameters: , Logical Volume group creation failed, From some googling around it appears the issue is that the disks still have a zfs_member tag on them. lsblk -f produces this: NAME FSTYPE LABEL UUID MOUNTPOINT sdd zfs_memb ├─sdd2 zfs_memb data 305869021769108511 └─sdd1 zfs_memb sdb linux_ra localhost:127 1d7d1927-dfdb-c8a8-4af1-b25c2b355a7a └─md127 zfs_memb boot-pool 17799519329276801846 ├─md127p5 ext3 logs-efkbam 0deeb614-6788-45f9-92b7-0f6acc05da6d /var/log ├─md127p3 zfs_memb boot-pool 17799519329276801846 ├─md127p1 ext3 root-efkbam 62e0f462-29f8-4c2a-8df7-bed45c144a4a / ├─md127p6 swap swap-efkbam 26a6ce99-d4fd-43d1-8a27-79bddafb8707 [SWAP] ├─md127p4 vfat BOOT-EFKBAM 0B9B-C4C7 /boot/efi └─md127p2 sde zfs_memb ├─sde2 zfs_memb data 305869021769108511 └─sde1 zfs_memb sdc linux_ra localhost:127 1d7d1927-dfdb-c8a8-4af1-b25c2b355a7a └─md127 zfs_memb boot-pool 17799519329276801846 ├─md127p5 ext3 logs-efkbam 0deeb614-6788-45f9-92b7-0f6acc05da6d /var/log ├─md127p3 zfs_memb boot-pool 17799519329276801846 ├─md127p1 ext3 root-efkbam 62e0f462-29f8-4c2a-8df7-bed45c144a4a / ├─md127p6 swap swap-efkbam 26a6ce99-d4fd-43d1-8a27-79bddafb8707 [SWAP] ├─md127p4 vfat BOOT-EFKBAM 0B9B-C4C7 /boot/efi └─md127p2 sda └─sda1 So it appears my next step is sorting that out. Unfortunately the only way of clearing these tags that I've found so far seems to be wiping the drives completely and starting over? If so that's going to suck as I don't have physical access to the machine right now. If anyone has any suggestions for removing errant zfs_member tags (this machine previously hosted a TrueNAS install) without wiping the whole damn machine, I'd be eager to hear them. If not it'll have to wait until I'm back in the office I guess. Thank you again @Danp for your help.
  • xen orchestra installation failed

    22
    2
    0 Votes
    22 Posts
    11k Views
    olivierlambertO
    You need to set a default sr with this command: xe pool-param-set uuid=<pool-uuid> default-SR=<sr-uuid>
  • Can't move VM - operation failed

    2
    0 Votes
    2 Posts
    567 Views
    E
    Well, it seems like it works if I create a snapshot and create a new VM from the snapshot on the new server. Should be workable for my need.
  • Backup error with space available

    ticket closed
    50
    0 Votes
    50 Posts
    19k Views
    olivierlambertO
    That's really weird
  • i can't load my network dhcp in my xoa

    1
    3
    0 Votes
    1 Posts
    387 Views
    No one has replied
  • S3 backup fails without alert

    4
    0 Votes
    4 Posts
    366 Views
    A
    @florent It looks like the restore test failed because the connection stream failed (and did not retry). It's hard to test this particular one because it is rather large. A good reminder to have more than one backup method (I do). I'll look for a XO update and see what changes. It is scheduled to do a full backup soon (as normal) to make sure issues like this are not a long term problem.
  • Start VM based on powerstate

    2
    0 Votes
    2 Posts
    335 Views
    AtaxyaNetworkA
    @wahla Hello ! In XO you can search "power_state:halted", select all VMs, and start If you want to do it automatically, I think you can script it with xe, but the best way is to understand why VM are shutting down or doesn't restart
  • Upper limit for XVA import size

    4
    0 Votes
    4 Posts
    895 Views
    olivierlambertO
    Try with xe then.
  • New server pool not showing in XOA

    3
    0 Votes
    3 Posts
    820 Views
    2
    @Andrew all that was okay. The proxy string was incorrect, now working. Thanks
  • Debian template console login

    6
    0 Votes
    6 Posts
    1k Views
    olivierlambertO
    If you want to login manually without any SSH key, you have to add a password for the account (passwd). Then you can log in with your Debian user with this password.
  • Xen orchestra VM Console broken?

    36
    0 Votes
    36 Posts
    15k Views
    B
    Updated to Master build, a66ae, xo-server 5.92.0, xo-web 5.96.0. Consoles seem to work fine again. thanks all!
  • 0 Votes
    3 Posts
    376 Views
    planedropP
    @Danp I'll do some more digging on this once I have some time and see if I can find anything in the logs. I didn't have a chance to look yesterday when I was working on this. It might be worth noting that I was trying to setup an S3 remote, not sure if it would happen with another one and maybe it has something to do with timing out (was trying to hook into Backblaze which doesn't seem to be working right either, works fine on all my other machines running TrueNAS and stuff but can't get it connected with XCP-ng, other S3 places like Wasabi and Amazon work fine though). I'll update this thread with more info once I do some more testing, might have time this weekend but not sure yet, and this is in a production environment, so I do want to be careful about causing potential issues.
  • Default Login for the Ubuntu 20.04 XO Hub Template

    4
    0 Votes
    4 Posts
    2k Views
    olivierlambertO
    Click on "More details" to get it
  • Zstd for Delta Backup

    2
    0 Votes
    2 Posts
    428 Views
    olivierlambertO
    Zstd is for XVA file format compression. There's no compression on delta, because we need to merge them on destination, when retention is reached (inside the backup repository). So it doesn't really worth it (since you'll have to decompress them to do the merge).
  • Problems with trying to recover data after full local storage

    5
    1 Votes
    5 Posts
    2k Views
    O
    Hello, mtill ! In this situation, you may try to recover the stored data on the RAM because, in your case, the data was overwritten in the RAM. The number of recovered files by this method depends on the RAM size, the size of files that was overwritten by this way and by the time running this process. I can suggest you use a specialized recovery service like raid recovery service to ensure that you will restore more data you can. I wish you a bit of good luck.
  • Not a real issue, just looking for some knowledge ...

    4
    0 Votes
    4 Posts
    840 Views
    olivierlambertO
    I agree, I don't think it's a technical limitation, just a use case not "covered"
  • DNS queries during backup job

    27
    0 Votes
    27 Posts
    12k Views
    julien-fJ
    The DNS cache has been merged, keep us posted if you have any issues.
  • LDAP Groups are Empty

    3
    0 Votes
    3 Posts
    1k Views
    K
    @Darkbeldin Got ya, thanks!
  • Restore 'expected values' error

    4
    0 Votes
    4 Posts
    356 Views
    olivierlambertO
    Oh okay, it's a problem on restore. Then there's something wrong on the backup chain. Any hint @julien-f ?