Subcategories

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

    481 Topics
    4k Posts
    olivierlambertO
    No problem, this is always good to have feedback and cases showing an error and the explanation
  • ACLs, Self-service, Cloud-init, Load balancing...

    106 Topics
    867 Posts
    olivierlambertO
    Question for @Team-XO-Backend
  • All XO backup features: full and incremental, replication, mirrors...

    525 Topics
    6k Posts
    msupportM
    our solution to the problem we want to share a post-incident analysis of a data-loss event on XCP-ng 8.3 LTS (shared block storage over FC, Veeam B&R 13.1 with CBT enabled on the pool) — consolidated from our own incident, topic 12402, the CBT feedback thread 9268, and the still-open blktap PR #17. The pieces fit together into one coherent failure chain, and we believe it may be worth a sticky/KB article. A note on the trigger, to be fair and complete: in our case the interrupted jobs (step 2) were caused by expired/invalid worker tokens on the XCP-ng hosts, so the backups died mid-run with the locks in place. We consider that our availability problem. However, an interrupted backup must never be able to damage production VM data — cleaning up VDI locks on job abort is the hypervisor's job, and that is the part that turned a backup hiccup into guest data loss. Failure chain (as we understand it) Veeam backup job with CBT runs and sets locks on VDIs — paused: true + host_OpaqueRef:xxx: RW entries in the VDI sm_config (XAPI state.db). The job is interrupted (timeout / crash / restart). The locks are never cleaned up → stale paused: true remains in sm_config. These entries are MRO, so xe vdi-param-remove can't clear them. A later leaf coalesce / commit runs into a cbtlog disk: per PR #17, tapdisk_vbd_first_image returns the cbtlog disk on td_commit, and the cbtlog driver has no commit action → commit fails early. Result: broken VDI chains, CBT metadata VDIs without a vhd parent, hundreds of orphaned VDIs, and .cbtlog files hanging coalesces (as reported in thread 9268). SR rescan believes a GC is already running and aborts; a host reboot was the only way to force the coalesce through (also reported in 9268). Storage cleaning freezes the VM disk briefly, but the un-freeze fails on the stale lock → failed to unpause tapdisk ... VMs using this tapdisk have lost access to the corresponding disk(s). The guest keeps writing on a frozen/lost disk → NTFS corruption inside the guest and, in our case, actual SQL Server data loss. Step 5 matches exactly the theory Veeam R&D is currently investigating ("storage cleaning freezes VM disks briefly during backup and sometimes fails to un-freeze them"). The stale paused:true lock appears to be the missing "why" behind the failed unpause. What helped us recover Patching the stale lock out of XAPI state.db (stop xapi, backup state.db, remove paused + host_OpaqueRef entries from the affected VDI's sm_config, start xapi). Then: reset CBT on the affected VDIs and trigger a full backup so CBT re-initializes cleanly — otherwise the next interrupted job re-creates the same situation. For the coalesce backlog: with the affected VMs powered off and CBT disabled, snapshot-create-then-delete to kick the GC, watch SMlog, iterate. (Same recipe a user documented in 9268.)
  • Everything related to Xen Orchestra's REST API

    87 Topics
    650 Posts
    A
    @poddingue Borrow away - "smoke alarm" is a better name for it than anything we had, so we might borrow it right back. Since you mentioned reading the matrix - here is the classification you would be reading, straight from the file: grep access: dadl/xen-orchestra.dadl | sort | uniq -c 49 access: admin 21 access: dangerous 122 access: read 75 access: write 122 of the 267 tools are plain read - that is the entire surface a review-capped agent gets. The other 145 exist in the same file, but for that agent they might as well not. The whole security taxonomy is greppable plaintext - which is rather the point of a declarative format. And if anything in the matrix looks wrong or missing, this thread is exactly the right place - real-world corrections are how it improves.
  • Terraform, Packer or any tool to do IaC

    51 Topics
    472 Posts
    JeremyLARDENOISJ
    New releases! Terraform Provider Xen Orchestra v0.40.0 This new release allows users to import VMs directly from Xen Orchestra into Terraform without recreating it or modifying manually the Terraform state. There is still some drift when importing it, but nothing that changes the real state of VM and we are currently on it! https://github.com/vatesfr/terraform-provider-xenorchestra/releases/tag/v0.40.0 Golang SDK for Xen Orchestra v1.17.0 v2 The network service is now available from the v2 client! You can now create, get and delete your network directly from it! v1 & v2 The template value in VM struct params has been fixed, We can now get the template id directly from it. https://github.com/vatesfr/xenorchestra-go-sdk/releases/tag/v1.17.0
  • This topic is deleted!

    1
    0 Votes
    1 Posts
    23 Views
    No one has replied
  • NBD Backup not working

    23
    0 Votes
    23 Posts
    4k Views
    florentF
    @KLSsandman yes NBD is only used for delta backups
  • Backups never finish

    3
    0 Votes
    3 Posts
    946 Views
    julien-fJ
    @magicker If you are able to deploy an official XOA and reproduce the problem in it, I'll be able to investigate once you open a support tunnel: https://xen-orchestra.com/docs/xoa.html#support-tunnel
  • Managing HA-cluster in case of dead master

    2
    0 Votes
    2 Posts
    541 Views
    olivierlambertO
    Hi, The best practice is just to connect XOA to the master. You are thinking as if this situation will happen on regular basis, but it won't, and if it does you have a bigger problem than an XOA disconnection. If you have a backup job with email reporting, you'll be notified if XOA lost connection to the pool. There's nothing specific to do.
  • Scalability of XOA

    5
    0 Votes
    5 Posts
    1k Views
    J
    @Darkbeldin Parfait, merci ! I shall write to the Help email address!
  • Restoring Xen Orchestra from backup

    3
    0 Votes
    3 Posts
    983 Views
    A
    @olivierlambert Oh I see, thanks for the help.
  • First New Local Storage - "No VDIs in this storage"

    Solved
    6
    1
    0 Votes
    6 Posts
    2k Views
    olivierlambertO
    Yes, you need to get them flat in the folder, it doesn't crawl subfolders.
  • Website XOA XCP-NG missing

    2
    0 Votes
    2 Posts
    648 Views
    olivierlambertO
    Very likely indeed. We hope to recreate the XO website from scratch at some point, but it doesn't mean we'll let this slip Thanks a lot for the report, adding @Marc-pezin in the loop
  • Backing up the VM that is running Xen Orchestra

    Solved
    10
    0 Votes
    10 Posts
    3k Views
    olivierlambertO
    Ah the issue make sense now No worries about asking here, happy to see it works for you now
  • Backup warning: incorrect backup size

    7
    1
    0 Votes
    7 Posts
    641 Views
    M
    @julien-f Thx. I can safely ignore this then.....
  • Backup - Error: Lock file is already being held

    Solved
    5
    0 Votes
    5 Posts
    2k Views
    D
    @olivierlambert Got it, sorry I glossed right over the updates. Ran the updates and everything is green with success. Thanks for taking the time to answer my noob questions!
  • Correct Template for installed OS?

    1
    0 Votes
    1 Posts
    374 Views
    No one has replied
  • Update disk size via API?

    4
    0 Votes
    4 Posts
    996 Views
    olivierlambertO
    You can with the JSON-RPC API. The REST API is still very young, and we only started to modify objects during January release.
  • Xen Orchestra Load Balancer - turning on hosts

    20
    0 Votes
    20 Posts
    5k Views
    ronan-aR
    @berish-lohith Just FYI I created a card in our backlog, I don't see too many blocking points to implement it correctly.
  • CR endless run on backup tab

    2
    1
    0 Votes
    2 Posts
    500 Views
    A
    @Gheppy @julien-f I have the same problem.... post 6940 Check Dashboard->Health and look at the bottom to see if the Importing VMs are still there. So far, no solution, other than to rollback to a working version.
  • What is Viridian?

    4
    0 Votes
    4 Posts
    8k Views
    olivierlambertO
    No, it's useless on Linux.
  • Issues synchronizing LDAP groups (Active Directory)

    bugs blocked
    16
    0 Votes
    16 Posts
    8k Views
    TheNorthernLightT
    @cjackson The reason the login is just username, is because you've specified sAMAccountName. If you want to use email address, change this to UserPrincipleName. Obviously, verify the UPN in your AD box, but that should be the persons email address if your domain it setup correctly. I dont believe most LDAP query tools support nested group security (its a common issue). Not an excuse, just an observation btw.
  • auth-ldap (v0.6.4) - LDAP authentication plugin for XO-Server

    21
    0 Votes
    21 Posts
    16k Views
    C
    I had a lot of trouble getting the LDAP integration to work with Active Directory domain controllers, and i kept finding this post over and over. So i wanted to share my configuration and make it easier on others trying to do the same thing in the future. Using this config i was able to get everything working, but i found a few limitations: Xen Orchestra cannot find any group members where the member has the "Primary Group" attribute set. Only direct members of a group are recognized (nested groups don't work). When signing in, i have to specify "username" instead of "username@cxlab.domain.com" Groups are created by clicking "Synchronize LDAP groups", however users are not created until they sign into XOA the first time. Users are not deleted from Xen Orchestra when they are removed from the domain. (but they can no longer log in to XOA) auth-ldap (v0.10.6) - LDAP authentication plugin for XO-Server Auto-load at server start [checked] Configuration URI: ldap://domaincontroller1.cxlab.domain.com **Certificate Authorities** Check certificate [disabled] Use StartTLS [disabled] Base: DC=cxlab,DC=domain,DC=com **Credentials** dn: cxadmin@cxlab.domain.com password: ****************** User filter: (sAMAccountName={{name}}) ID attribute: dn **Synchronize groups** [checked] Fill information (optional) Base: CN=Users,DC=cxlab,DC=domain,DC=com Filter: (ObjectClass=group) ID attribute: dn Display name attribute: cn **Members mapping** Group attribute: member User attribute: dn
  • Enable NBD Backups for a network

    3
    0 Votes
    3 Posts
    3k Views
    florentF
    hi @lawrencesystems You still need to enable it in config fr now. I hope we 'll be able to improve the ui to enable it on a per backup setting later The nbd protocol use the 10809 port in TCP by default. XO only read from this port f the host. The Nbd setting is used for the whole xo, regardeless of the pool The lock have been replaced by a select, which is more self explanatory . I think the main control pint is to check if there is multiple NBD network for a VM, XO use the first one returned by the Xapi, and it may be , for example, a managemet network as opposed to a backup / high speed one Regards
  • XO Lite in xcp-ng 8.2

    18
    0 Votes
    18 Posts
    10k Views
    olivierlambertO
    @Brice it's included within XCP-ng pro support.