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
  • "an error has occurred" in home -> storage

    xenorchestra
    6
    3
    0 Votes
    6 Posts
    1k Views
    olivierlambertO
    You can't login to our servers with your source version (from Git), you must download the virtual appliance. If you can't access https://xen-orchestra.com internally, then, indeed, you won't be able to register it in the end. But if you managed to clone it from Github, you have some access to outside
  • Monitor Backups - Last backup for VM

    14
    0 Votes
    14 Posts
    4k Views
    julien-fJ
    @KPS You can use xo-cli --list-objects type=VM. Also you should only get the backup logs once and join with the VM list, because backupNg.getLogs is heavy.
  • XO NTP

    6
    1
    1 Votes
    6 Posts
    7k Views
    lightingman117L
    @olivierlambert Yep, thanks. OP edited to direct link to XOA NTP documentation for those who need that. There was no clear distinction in my mind. Apologies for any confusion caused.
  • Having trouble configuring transport-nagios after latest update

    5
    0 Votes
    5 Posts
    1k Views
    julien-fJ
    Fixed by https://github.com/vatesfr/xen-orchestra/commit/9dda99eb2089eaf163b68ea817bf990872cf2d22 @Danp Thank you
  • Can't register new XOA installation

    Solved
    3
    0 Votes
    3 Posts
    609 Views
    H
    @Danp My fault, I just did register here. When I click on register on my XOA, I was pointed to the forum, so I thought it is the same account. Thank you, that solved my problem.
  • How to set http proxy for connect S3 service?

    7
    0 Votes
    7 Posts
    1k Views
    L
    @julien-f ok, thanks. I will temporary use Transparent proxy to connect S3 service, which can't use my main firewall setting is a downside, other than that is work well.
  • Attaching USB storage via XOA

    22
    1 Votes
    22 Posts
    31k Views
    G
    @SpoonyLove @olivierlambert For usb passthrough we are using USB redirector over network For anything storage related we use something like this: mkdir /adm/passSR passUUID=`xe sr-create name-label="Direct access SR" name-description="Direct acces to hdd with simlink" type=udev content-type=disk device-config:location=/adm/passSR` ln -s /dev/sdb /adm/passSR/sdb xe sr-scan uuid=$passUUID xe vdi-list sr-uuid=$passUUID Remember to replace /dev/sdb with your device.
  • xcp-ng Pro "alert" in the XOA pools page

    6
    0 Votes
    6 Posts
    3k Views
    olivierlambertO
    Participating on the forum is a totally acceptable form of contribution. And to be clear: you have the choice. The choice to do nothing, or to help the project to grow. It's really up to you Freedom of choice is great! Everyone can contribute, spread the word and advocate for our solutions. And believe me, if everybody does, we stand a chance against those juggernauts (VMware for example). Also, you have my words, and I'm not afraid to tell that publicly: every $ we make is 100% re-invested into our projects. No big VC nor investors asking for insane ROI.
  • Ghost Backup job keeps failing

    23
    3
    0 Votes
    23 Posts
    8k Views
    N
    @florent any other ideas in order to resolve this?
  • XOCE shows "success" although backup not successful

    6
    0 Votes
    6 Posts
    797 Views
    olivierlambertO
    Is it a known behavior @julien-f ? To recap: with XVA backup starting the backup cancel the task get a success on the export I vaguely remember something about this
  • It is possible to create a vda VBD disk instead xvda?

    device vbd
    10
    0 Votes
    10 Posts
    3k Views
    olivierlambertO
    Great news then!
  • Adding Server to Pool Hangs/Fails

    4
    0 Votes
    4 Posts
    2k Views
    tjkreidlT
    @sgroel Curious. Are all the NICs the same on the existing pool hosts as well as the new host you add? Do all hosts have the same hotfix levels and the same overall hardware architecture? Seems odd as I ran servers this way for years. Maybe also look at the network switches to make sure they are all configured correctly. Finally, any clues in the /var/log files?
  • Full Backup Successful But In Kilobytes

    4
    0 Votes
    4 Posts
    1k Views
    D
    @Darkbeldin I checked the xensource.log on the server and found the error message "failed with exception Server_error(INVALID_DEVICE, [ autodetect ])" during export, similar to the post here: https://xcp-ng.org/forum/topic/4319/invalid_device-autodetect-during-backup I checked the XO dashboard health and found 256 "Pool Metadata Backup" VDIs attached to Control Domain. Not sure how or why the "Pool Metadata Backup" got stuck attached to Control Domain but I guess it has reached the 256 limit. I "Forget" all of them and full backup seems to be working now. For the record, it wasn't anything to do with snapshots. The VM was OFF so I guess it doesn't need to take a snapshot before transfer hence the log doesn't mention snapshot.
  • A lot of not found and error 127 in yarn build

    Solved
    17
    0 Votes
    17 Posts
    5k Views
    B
    @julien-f It works!!! No more error in the yarn build output. Thanks a lot!
  • Backups are deleted.

    9
    2
    0 Votes
    9 Posts
    2k Views
    V
    @olivierlambert Remote storage - hard drive in raid 5
  • Migrate xva image to hosted solution?

    1
    0 Votes
    1 Posts
    261 Views
    No one has replied
  • search for snapshots sorted by creation date

    13
    0 Votes
    13 Posts
    3k Views
    S
    @olivierlambert here it is: https://github.com/Stevesibilia/check_snapshot Keep in mind i'm not a developer
  • Warm migration - abort and monitor

    8
    0 Votes
    8 Posts
    1k Views
    olivierlambertO
    It's really hard to answer precisely in your case what's your bottleneck without spending more time doing a closer investigation on your setup
  • Attempting open source proxy (Resolved)

    6
    0 Votes
    6 Posts
    2k Views
    S
    @Andrew I got it working, thank you for your help. I just like to learn and test stuff out for fun, frequently unnecessarily, heh.
  • XO Lite (and XCP-NG 8.3 alpha)

    2
    0 Votes
    2 Posts
    772 Views
    olivierlambertO
    No telemetry, but if you have an issue with this alpha, please report it on the dedicated thread There's new graph and VM actions coming this month (if everything goes according to the plan)