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
  • incorrect backup size in metadata

    4
    0 Votes
    4 Posts
    2k Views
    julien-fJ
    @savage79 Please take a look at https://xcp-ng.org/forum/post/58196
  • Stable vs. latest risk assessment

    Solved
    6
    0 Votes
    6 Posts
    1k Views
    olivierlambertO
    You are welcome!
  • Problem with delta backup from xoa 5.79

    6
    0 Votes
    6 Posts
    2k Views
    julien-fJ
    @robyt There are no logs at this time (unless executed as part of a backup), only a notification at the end of the execution. We are currently working on a global task/log system that will be used throughout XO (Restore Health Check is obviously on our todo list)
  • Unable to quick deploy XOA

    Solved
    4
    3
    0 Votes
    4 Posts
    815 Views
    olivierlambertO
    You are welcome
  • 0 Votes
    4 Posts
    667 Views
    olivierlambertO
    As explained in the link, please update to the latest commit, be sure to rebuild everything and try again
  • Unable to import vmdk

    9
    0 Votes
    9 Posts
    2k Views
    S
    @olivierlambert I uploaded the disk. https://mega.nz/folder/53YTGRCI#4qP16Kfj-XtKcwkWduGEOg
  • Netbox plugin: VMs Tags and Platform not populated

    8
    0 Votes
    8 Posts
    2k Views
    olivierlambertO
    If it's a problem or a missing feature, it will be announced in the next changelog for everyone
  • VHD export and (delta) backup stuck at 99%

    16
    1
    0 Votes
    16 Posts
    4k Views
    DanpD
    @OhSoNoob said in VHD export and (delta) backup stuck at 99%: uploading de XVA in XO didn't work for some reason, it prompts about prepairing and then just stops. Hmmm.... never encountered that situation.
  • Max duration for Backup

    3
    0 Votes
    3 Posts
    788 Views
    DanpD
    See this prior thread for explanation and solutions. https://xcp-ng.org/forum/topic/3529/increase-24-hour-timeout-limit-on-backup-copy
  • getting all ip's from every xen's virtual machines

    3
    0 Votes
    3 Posts
    3k Views
    splastunovS
    Maybe this idea will help xe vm-list params=networks | awk '{print $5}'| sed 's/.$//'
  • Orphaned VDI after backup - NBD issue

    3
    0 Votes
    3 Posts
    583 Views
    K
    Hi! I was able to isolate the issue: It does happen, if NBD is activated on one of the network interfaces! xe network-param-remove param-name=purpose param-key=nbd uuid=xxxxxxxx --> Disabling "useNBD" did not solve the issue. I had to disable the feature in XCP-ng
  • Unable to export OVA

    62
    0 Votes
    62 Posts
    21k Views
    DanpD
    @florent Nothing large. Either 10 or 20GB. I'm thinking it's due to the same issue as here.
  • create a new VM instead of a template from a snapshot

    4
    0 Votes
    4 Posts
    1k Views
    olivierlambertO
    So you are using a thick provisioned storage. Any snapshot will create a base copy, but also an active disk (which will be the total size of the disk). You can't cheat on that. Transforming a snapshot into a VM will create a new active drive that will use the total size of the disk.
  • How to browse files in a storage repository?

    9
    0 Votes
    9 Posts
    5k Views
    florentF
    @ysageev we're fisrt making the transfer from vmware work through an HTTP link in xo-cli. After this we'll do a UX, allowing a user to migrate from XO , it will probably be a three steps form : connect to an host, choose which VM(s) to migrate , transfer progress Then, depending on the priority , we may make other transport ( for example if you mounted the VMFS datastore in XO, copied files locally or through SSH) By the way, we fixed a timeout bug in xo-server, that was cutting the vmdk/ova import around the 5mn mark, you may retry the old method
  • Overprovisioning CPU + RAM?

    6
    0 Votes
    6 Posts
    6k Views
    M
    Thanks @lawrencesystems - I've finally got around to watching that video, explains the content well, quite interesting to see that happening in real time when the RAM is being land-grabbed by other VMs when things are getting full based on the different configuration settings.
  • XO Packer template disk issues

    13
    2
    0 Votes
    13 Posts
    4k Views
    D
    The ddelnano/packer-plugin-xenserver release v0.5.1 has been released and includes @bagas's fix for this issue.
  • VM Hang - Can´t restart, can't power on.

    Solved
    7
    0 Votes
    7 Posts
    8k Views
    olivierlambertO
    Sounds like a XAPI bug, I think it's fixed in the next train of updates
  • netdata telemetry not opening?

    2
    0 Votes
    2 Posts
    408 Views
    olivierlambertO
    We are aware aobut it. This is a Debian package bug that will be directly fixed in the next XOA we'll generate (this year, with Debian 12)
  • Vmware OVA to XCP-NG

    4
    2
    0 Votes
    4 Posts
    3k Views
    olivierlambertO
    Doesn't matter, the VMware script is available in there too. Just switch to the vmware release channel and follow instructions there: https://xcp-ng.org/forum/topic/6714/vmware-migration-tool-we-need-your-feedback/
  • Root password to ssh into xoce

    Solved
    9
    0 Votes
    9 Posts
    8k Views
    olivierlambertO
    No problem @mrchip You are welcome. If you explain your issue with enough context, everyone is happy to help!