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
  • XO Dashboard

    3
    1
    0 Votes
    3 Posts
    743 Views
    F
    @gskger Thank you. I tough it would be but wanted to be sure
  • Connecting xen to vault

    5
    0 Votes
    5 Posts
    966 Views
    S
    @olivierlambert its custom config, not any bug. Ill point it out what i mean below. I have standard ubuntu template -> I would like my vm to be already customize, when its created, because its faster and easier when everything is in one place -> So for that i have created cloud-init for eg.-> #cloud-config hostname: <hostname> package_update: true package_upgrade: true write_files: - path: /etc/ssl/certs/mydomain.crt content: | <certificate data> - path: /etc/ssl/private/mydomain.key content: | <private key data> runcmd: - apt-get update - DEBIAN_FRONTEND=noninteractive apt-get upgrade -y So my main problem is that this, particular cloud-init has fixed <certificate data> and <private key data>, that i would like to not be passed as a plain text, because it is a secret. To me its not done (for now) with best practices, but its very comfortable. So finally, i am wondering what is the best solution, for not putting secrets as a plain text, but rather keep them as a secret. I could create templates and later delete cloud-config with those data, but it would be more flexible, if there would be any chance to connect it to Hashicorp Vault or something that will dynamically fetch secrets.
  • XO task watcher issue/CR broken

    Solved
    71
    0 Votes
    71 Posts
    42k Views
    JamfoFLJ
    @julien-f I just wanted to update and let you know that whatever changes you made fixed the issue for me permanently! I have been able to routinely update since that time and have had no further issues. Thanks for all of your hard work, Julien-f!
  • Bug: 55k Snapshot

    Solved
    6
    1
    0 Votes
    6 Posts
    1k Views
    olivierlambertO
    I think we fixed this bug in latest
  • self signed certificate in certificate chain

    19
    0 Votes
    19 Posts
    10k Views
    E
    FWIW I just got bit by this same thing, spending half a day yesterday kicking the wall. I think I got about 2/3 of the way just by trial and error on the cert's. Would love to see this doc'd with the proper method, using an in-house local CA (not a public CA).
  • Delta Backups using wrong Base Backup

    Solved
    3
    3
    0 Votes
    3 Posts
    797 Views
    H
    @Andrew okay now I understand! Thanks a lot!!!
  • Adding VMs to "smart mode" DR / Delta backup? (FIXED)

    Solved
    5
    0 Votes
    5 Posts
    1k Views
    Z
    @olivierlambert The update has fixed it, thanks!
  • NFS SR VMs data lost

    Solved
    5
    2
    0 Votes
    5 Posts
    2k Views
    T
    @olivierlambert ... Thank you Olivier, I feel so stupid... I found everything back as you said Thank you very much ! Now I understood my mistake Best regards, Martin
  • Installing XOA on XCP-ng 8.3.0 alpha

    15
    0 Votes
    15 Posts
    9k Views
    D
    @olivierlambert Oh, this makes more sense now. I somehow mixed up the appliance with the actual XO platform. Will go through the docs. Thanks!
  • Trouble doing Continuous Replication on pool (XOA)

    15
    0 Votes
    15 Posts
    2k Views
    olivierlambertO
    Also a dmesg might be interesting
  • XOA stuck on Importing stage

    7
    3
    0 Votes
    7 Posts
    2k Views
    olivierlambertO
    I can only assume that the nested mechanism is blocking the network at some stage, but I don't have time myself to investigate deeper.
  • VMware import 404 error

    27
    0 Votes
    27 Posts
    7k Views
    S
    @florent
  • error when modifying backup metadata

    3
    0 Votes
    3 Posts
    722 Views
    julien-fJ
    @Gheppy It should be fixed, thanks for your report! https://github.com/vatesfr/xen-orchestra/commit/b5578eadf7356098ac2fa4af63b75b18d34ba558
  • Continuous Replication on a large VM

    6
    0 Votes
    6 Posts
    2k Views
    J
    @Gheppy cool thanks. Good to see some real-world experience with a similar setup!
  • OpenId Login via Keycloak

    16
    0 Votes
    16 Posts
    3k Views
    julien-fJ
    @prononext @mandrav The problem of empty username has been fixed in master. The support of email for username field is currently in review in the PR linked in my previous message and will be available soon Thanks for your help!
  • USB Passthrough of licensing dongle

    9
    0 Votes
    9 Posts
    5k Views
    K
    I am using USB-servers from SEH and Silex. Both of them are working. Silex can provide higher Performance - SEH is IMHO nicer for license-dongels, etc.
  • XOA - Browse backups and filter by Remote

    2
    0 Votes
    2 Posts
    153 Views
    DarkbeldinD
    @KPS Hi, I don't think it's possible but I could be wrong perhaps an advance filter could do that.
  • 0 Votes
    5 Posts
    2k Views
    julien-fJ
    @hannes Full backup interval (and Force full backup in the schedule settings) forces the job to do a full export of the disk and not a delta based on a previous one. It is not impacted by the retention as XO will always makes sure every chain has at least a full export at the beginning so that all backups are viable. Which means you will have multiple full backups, always one at the beginning, and, those that have been triggered by the settings above.
  • How to turn imported Windows VHD disk into VM?

    12
    3
    0 Votes
    12 Posts
    4k Views
    J
    @rk9268vc sorry if this is too simple but I just went through this and had the same error in your screen shot.. .my problem was finding the correct uuid,, then my second problem was forgetting to change the VHD to vhd as the program I used left the letters in caps.
  • xcp having issues with dates for vms

    Solved date
    8
    1
    0 Votes
    8 Posts
    2k Views
    D
    @julien-f thank you, much appreciated!