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
  • xoa token expire date - how can i set it to an later date?

    7
    0 Votes
    7 Posts
    3k Views
    V
    Thanks guys! Absolut Legends
  • Gracefully "Ask" XO to Reboot After Tasks Are Done

    8
    0 Votes
    8 Posts
    2k Views
    olivierlambertO
    That's how I can make the choices to improve it into the right direction
  • This topic is deleted!

    1
    0 Votes
    1 Posts
    2 Views
    No one has replied
  • This topic is deleted!

    1
    0 Votes
    1 Posts
    3 Views
    No one has replied
  • Search filters

    4
    0 Votes
    4 Posts
    520 Views
    Tristis OrisT
    @julien-f said in Search filters: affinityHost:* check it again affinityHost:* works now, my bad. got it. i mean if selected 16sockets\1core instead of 1socket\16cores i can only search for coresPerSocket:<2, but small vms really use 1-2 cores\socket.
  • XOA halted on reboot

    4
    0 Votes
    4 Posts
    2k Views
    olivierlambertO
    Yes, this one
  • XOA Updater does no more work

    2
    0 Votes
    2 Posts
    503 Views
    olivierlambertO
    Hi, XOA in Debian 9 is outdated/deprecated. You should export your config and import it on a freshly deployed XOA
  • Restore Delta Backup with RAM

    bugs planned
    9
    0 Votes
    9 Posts
    3k Views
    H
    @florent @olivierlambert Thank you both for your quick reaction! I know that you guys have a lot on your hands with this great piece of software! Just let me know as soon as we can test-drive something.
  • Unable to import VMDK file

    15
    0 Votes
    15 Posts
    5k Views
    DanpD
    This issue is no longer present when testing with latest sources.
  • XOA Source Error: socket hang up

    Solved
    3
    0 Votes
    3 Posts
    1k Views
    H
    @olivierlambert "Please always use latest Node LTS."... Ok my bad. I didn't check which version is the LTS version. Indeed, it works much better. Thank you!
  • Move build to use npm and Turbo

    11
    2 Votes
    11 Posts
    4k Views
    julien-fJ
    @zizzithefox Indeed, this is probably easier, thanks for the info
  • Installed certificates Section in XO - What does it do?

    5
    1
    0 Votes
    5 Posts
    1k Views
    JSylvia007J
    @olivierlambert - I'd also like to say that I'm a very recent homelab convert over to XCP-NG. I've been using VMWare for like... 15 years. I have a project at work that I use native Xen for, and have been really impressed with the security and control that we get out of it. I've been in the process of shifting over to XCP-NG over this Christmas break, and I've been really, really happy. There was a bit of a learning curve, but I'm very happy that I'm going to be getting an increase in functionality over my free ESXi instance. Really great work you're all doing!
  • Continuous Replication within same pool

    4
    0 Votes
    4 Posts
    809 Views
    olivierlambertO
    Yes you can do that, there's a tag on a replicated VM to avoid being replicated again.
  • Migration between pools slow down or interrupted

    21
    2
    0 Votes
    21 Posts
    8k Views
    olivierlambertO
    Good catch
  • Power on Settings configuration

    xenorchestra xcp-ng xcp-ng center
    4
    0 Votes
    4 Posts
    3k Views
    olivierlambertO
    The issue is within pools: XCP-ng isn't meant to have pool members down (for various reasons), so the scenario is only limited to pools with one host only
  • Can I replicate between 2 different versions

    4
    0 Votes
    4 Posts
    740 Views
    mauzillaM
    The XO team is also bringing the magic!
  • Replication Backup failure

    3
    2
    0 Votes
    3 Posts
    795 Views
    GheppyG
    It's more work, but... you have to stop the VM and export them, delete the current SR (Local Storage), recreate SR (Local Storage) as local ext4 format import the VM back In this way you switch from LVM to ext4 and the space it needs will be small, not double the space
  • 0 Votes
    6 Posts
    2k Views
    DarkbeldinD
    @BigHeadBighetti Just make a snapshot And yes I know I already discuss this with XOA team to have a more obvoious warnin but you already have a "Are you sure you want to shutdown this VM?" even without the box checked
  • Control domain of Xcp-ng

    16
    1
    0 Votes
    16 Posts
    4k Views
    olivierlambertO
    https://xcp-ng.org/docs/troubleshooting.html is a good start to read. In your case, it's likely inside /var/log/SMlog
  • Troubleshooting Backups (in general)

    7
    2
    0 Votes
    7 Posts
    2k Views
    daveD
    @olivierlambert Yes, i will update and have a look if it changes the behaviour anyhow. "For the rest, it's hard to answer without digging more." That`t exactly was i was looking for: Any Information where i can dig deeper? I`m looking for logs or traces of errors or so. It is not that i just wan`t this particular problem to be solved In my limited understanding of interal processes i think somehow a backup process dies and xo-server does not report or recognize this. But shouldn`t it somehow?