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
  • Multiple IP addresses on PIF via GUI

    Unsolved
    2
    1
    0 Votes
    2 Posts
    801 Views
    AtaxyaNetworkA
    @luca-steinke Hi ! IPv6 is not (yet) supported in dom0, but it's a work in progress You can read more here: https://xcp-ng.org/blog/2021/02/09/ipv6-in-xcp-ng/
  • SR space occupied by backup snapshots

    18
    1
    0 Votes
    18 Posts
    3k Views
    olivierlambertO
    Okay let's continue by private chat on the partner thing.
  • Backup with local usb hdd attached - SR_OPERATION_NOT_SUPPORTED

    5
    2
    0 Votes
    5 Posts
    1k Views
    olivierlambertO
    @Gheppy Ah! Great news then
  • A "socket" was not created for HTTP request before 300000ms

    Solved
    90
    0 Votes
    90 Posts
    49k Views
    olivierlambertO
    Great news! Thanks @julien-f for the difficult investigation (it was hard to catch) and obviously everyone who helped to report and provide feedback. That's how we build software: together!
  • Replicating to same pool storage

    2
    0 Votes
    2 Posts
    647 Views
    planedropP
    @mauzilla I personally think having the CR job operate between 2 different pools is a better idea. I am curious though, are these servers located in the same physical location? If so why not try going with high availability instead of a CR job? https://xen-orchestra.com/blog/xenserver-and-vm-high-availability/ I haven't really done HA setups with XCP-ng before, so can't really speak to how good it is. But IMO CR and other backup jobs like that are more meant for geo replication and stuff like that (i.e. a disaster recovery scenario with some offsite XCP-ng host). Which is why I'm asking about location, personally don't see the benefit to CR if in the same physical location, I'd be more interested in HA at that point. This is just my two cents though.
  • RDP not working

    15
    1
    0 Votes
    15 Posts
    2k Views
    M
    @olivierlambert OK. Will have to find a working macos rdp client then. Will report.
  • Backup mergeWorker stuck

    6
    0 Votes
    6 Posts
    1k Views
    olivierlambertO
    In general, it's easier to start on XOA (you can have a free trial with all features) to discover the ecosystem. Because XOA is more tested and also comes with an updater AND a way to give us access remotely to investigate a problem. So please deploy an XOA and report if it's better On which commit are you right now? Are you on the right version of node? (that's the questions you wouldn't have to answer if you were on XOA for example )
  • 0 Votes
    6 Posts
    1k Views
    olivierlambertO
    Great news Enjoy!
  • Mandatory 2FA/OTP for login

    10
    0 Votes
    10 Posts
    3k Views
    W
    @olivierlambert Thank you very much Such prompt response.
  • "Error: self-signed certificate" OIDC

    2
    0 Votes
    2 Posts
    739 Views
    olivierlambertO
    Hi, This is an error regarding your certificates, which are self-signed. I'm afraid it's not related to XO itself. I suppose you can only use self signed certs in your context?
  • metadata backups suddenly failing

    Solved
    22
    1
    0 Votes
    22 Posts
    8k Views
    olivierlambertO
    Thank you @manilx and @Andrew for your feedback!
  • Backup of Linux VM with [nobak] disk failing health check (Solved)

    2
    1 Votes
    2 Posts
    688 Views
    olivierlambertO
    Ah thanks indeed a very interesting feedback! Thanks a lot
  • Rolling Pool Upgrade - Does not reboot hosts

    3
    0 Votes
    3 Posts
    842 Views
    K
    @olivierlambert There are lots of messages about: unable to parse XAPI datetime "2023-03-01T12:41:47.000Z" But nothing about the upgrade process. I was able to upgrade hosts 2+3 without any problem - but not automatically
  • vmware import failing

    2
    0 Votes
    2 Posts
    579 Views
    M
    @manilx I updated XO to the latest release (Updating Xen Orchestra from '63ee6b7f0' to '84e38505c') and tried again: Worked! BUT with this new release I have the following issue: https://xcp-ng.org/forum/topic/7020/metadata-backups-suddenly-failing
  • Backup timeout - hang or didn't work

    36
    2
    0 Votes
    36 Posts
    8k Views
    Tristis OrisT
    @olivierlambert to not create new topic, small continue here. timeout option still ignored. probably because of network problems i got backup error and job hangs every day. doesn't matter why it happens, but job will never get terminated by timeout. 21h job with 7h timeout. https://pastebin.com/U5HgKEzM just 1 Gb. [image: 1677660778089-1c80c5b5-248f-4506-a351-5bca47ee4f8c-image.png] [image: 1677660855604-7458ace9-3e08-4537-a7da-2d304033995e-image.png] i setup scheduled task to reboot xo once a day, to close this endless tasks.
  • Backup Error: 302 Found

    Solved
    20
    0 Votes
    20 Posts
    4k Views
    stucampS
    @julien-f @olivierlambert Heyo... good stuff guys. I have recompiled on latest and can happily confirm that the fix has resolved the issue!! Thanks!
  • Remote Backup needs internet to backup, local network. Static ips.

    3
    0 Votes
    3 Posts
    842 Views
    H
    @cookie-eater2000 make sure your Xen Orchestra also has a connection on the 10GB network (IP address on the xo vm)
  • warning on compile

    7
    0 Votes
    7 Posts
    1k Views
    DanpD
    @florent Thanks for the fix. P.S. @Gheppy was the original reporter.
  • VMGuest disk is missing in Xen Orchestra

    15
    1
    0 Votes
    15 Posts
    3k Views
    A
    @olivierlambert I do not understand wha t you mean by "You probably need to transform the disk in a "regular" and not snapshot". Not sure on how to do that, please provide the steps or if you have SOP ready, please point me to the SOP document.
  • XCP-ng latest - newly imaged CentOS Stream 8 hosts don't do kernel updates

    Unsolved
    3
    0 Votes
    3 Posts
    960 Views
    stormiS
    I don't see any obvious settting, and XCP-ng won't interfere with a guest OS installation, so the root cause for this missing GRUB_ENABLE_BLSCFG=true must be somewhere in the installation process, triggered by I-don't-know-what when being installed in an XCP-ng guest.