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
  • Remotes - NFS - Disk (Used / Total) blank after update

    8
    0 Votes
    8 Posts
    2k Views
    C
    @badrAZ w00t! Thank you! I look forward to the update. BTW, I went ahead and threw my updated XO CE into "production" here at home where it runs 10 VMs. So far no other issues seen by me. XCP-NG/XO.
  • NFS Backups and Xen Orchestra

    9
    0 Votes
    9 Posts
    5k Views
    olivierlambertO
    Doc now updated with 2 pictures here: https://xen-orchestra.com/docs/proxy.html#architecture
  • 0 Votes
    29 Posts
    8k Views
    olivierlambertO
    Have you read https://xen-orchestra.com/docs/delta_backups.html ? Use normal backup it will work. Or stick with delta and advanced option, a full every 1 backup.
  • Xen Orchestra editions

    Solved
    6
    0 Votes
    6 Posts
    4k Views
    olivierlambertO
    You are welcome
  • Delta backup always full for running VMs

    14
    0 Votes
    14 Posts
    3k Views
    J
    @julien-f Thank you and @olivierlambert for the quick and outstanding support!
  • sexilog ova import... causes xoa to drop import task

    10
    0 Votes
    10 Posts
    2k Views
    nraynaudN
    you can follow the fix is in this pull request: https://github.com/vatesfr/xen-orchestra/pull/5085
  • Unable to register XOA

    Solved
    7
    0 Votes
    7 Posts
    5k Views
    olivierlambertO
    Did it for you
  • 0 Votes
    28 Posts
    13k Views
    M
    Hi, I've noticed the addition of the commit about the 99 limit warning. That's good news. I am now having trouble trying to understand the meaning of the Full Backup Interval setting. I have the following scenario: Backups for the last 30 days, daily. Backups for the last 52 weeks, weekly. I want to make sure that the delta backups are not corrupt periodically (let's say once a month). I don't understand how to set the schedules, the backup retention, the full backup interval. I also need answers to the following questions, and I haven't been able to understand this from the documention. Do I need one delta backup with 2 schedules, or 2 backups with one schedule each ? I've noticed that full backup interval is per backup, whereas retention is per schedule. How do these two settings interact with multiple schedules? On what dates will the transfers be large ? How many full backups will be stored on the remote at any given time ? When will the merges happen? Thanks
  • All plugins missing after upgrade from sources

    Solved
    5
    0 Votes
    5 Posts
    1k Views
    olivierlambertO
    https://xen-orchestra.com/docs/community.html Always pull the latest commit and rebuild before opening a thread
  • Increase dynamic minimal memory limit on increasing RAM

    1
    0 Votes
    1 Posts
    492 Views
    No one has replied
  • New Error w/ Backups

    2
    0 Votes
    2 Posts
    451 Views
    olivierlambertO
    Hi, Have you checked that before? https://xen-orchestra.com/docs/community.html
  • set up NFS remotes

    2
    0 Votes
    2 Posts
    806 Views
    jedimarcusJ
    Do you get any errors that would help? You might only need to add the user correctly in /etc/sudoers
  • XOA load balancing

    11
    0 Votes
    11 Posts
    3k Views
    olivierlambertO
    @segfaultex a patch release will come this month fixing a condition preventing correct migration.
  • Can I run multiple XOA

    7
    0 Votes
    7 Posts
    2k Views
    F
    THank you. Its up and running nothing broke
  • Turned off network boot for XOA in advanced and now broken

    Solved
    9
    0 Votes
    9 Posts
    3k Views
    olivierlambertO
    No problem, happy to help
  • Blank Screen CentOS 8 in fresh xcp-ng 8 installation

    14
    0 Votes
    14 Posts
    6k Views
    m076162M
    @MichaelCropper, to answer your question, yes, I enabled networking during the installation process. This allowed me to SSH in following the subsequent reboot to run yum groupinstall "Workstation". VGA was enabled for me and then Video RAM was at 16MiB. @ben20ben brings up good advice with the XCP-ng tools, install it and life gets easier.
  • Installed from sources - no plugins

    Solved
    10
    0 Votes
    10 Posts
    2k Views
    olivierlambertO
    Thanks for the feedback
  • suggestions for future upgrade...

    3
    0 Votes
    3 Posts
    822 Views
    cbaguzmanC
    @olivierlambert said in suggestions for future upgrade...: web hooks Thank @olivierlambert I'm going to read about web hooks in xoa.
  • Trusted headers - auth plugin

    6
    0 Votes
    6 Posts
    926 Views
    julien-fJ
    The idea is to give the best visibility to your plugin Though I don't think we'll ship it directly to our customer because it's an advanced use case
  • How do I remove "duplicate" host

    2
    0 Votes
    2 Posts
    599 Views
    T
    Nevermind. I don't know what I did, but eventually, the host was listed a halted and a Forget option was available. That did the trick.