XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    XenOrchestra not showing VM Disks on Pool (on single Server working) - XCP-ng Center is showing them

    Scheduled Pinned Locked Moved Xen Orchestra
    21 Posts 7 Posters 1.9k Views 8 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C Offline
      conitrade-as
      last edited by

      Same problem here. But I noticed it only appears with the latest updates from XCP-ng 8.3. The log file shows me the following packages were updated / installed on my host:

      May 07 19:44:54 Updated: xen-libs-4.17.6-6.2.xcpng8.3.x86_64
      May 07 19:44:54 Updated: gnutls-3.3.29-10.2.xcpng8.3.x86_64
      May 07 19:44:54 Updated: 1:net-snmp-libs-5.9.3-8.2.xcpng8.3.x86_64
      May 07 19:44:54 Updated: ipmitool-1.8.19-11.2.xcpng8.3.x86_64
      May 07 19:44:54 Updated: openssh-9.8p1-1.2.3.xcpng8.3.x86_64
      May 07 19:44:54 Updated: openssh-clients-9.8p1-1.2.3.xcpng8.3.x86_64
      May 07 19:44:54 Updated: openssh-server-9.8p1-1.2.3.xcpng8.3.x86_64
      May 07 19:44:54 Updated: 1:net-snmp-agent-libs-5.9.3-8.2.xcpng8.3.x86_64
      May 07 19:44:55 Updated: 1:net-snmp-5.9.3-8.2.xcpng8.3.x86_64
      May 07 19:44:55 Updated: blktap-3.55.5-6.7.xcpng8.3.x86_64
      May 07 19:44:55 Updated: message-switch-26.1.3-1.10.xcpng8.3.x86_64
      May 07 19:44:55 Updated: xcp-ng-xapi-plugins-1.16.0-1.xcpng8.3.noarch
      May 07 19:44:55 Updated: xen-hypervisor-4.17.6-6.2.xcpng8.3.x86_64
      May 07 19:44:55 Updated: xen-dom0-libs-4.17.6-6.2.xcpng8.3.x86_64
      May 07 19:44:56 Updated: vhd-tool-26.1.3-1.10.xcpng8.3.x86_64
      May 07 19:44:56 Updated: squeezed-26.1.3-1.10.xcpng8.3.x86_64
      May 07 19:44:56 Updated: xen-tools-4.17.6-6.2.xcpng8.3.x86_64
      May 07 19:44:56 Updated: xen-dom0-tools-4.17.6-6.2.xcpng8.3.x86_64
      May 07 19:44:57 Updated: xcp-rrdd-26.1.3-1.10.xcpng8.3.x86_64
      May 07 19:44:57 Updated: xapi-tests-26.1.3-1.10.xcpng8.3.x86_64
      May 07 19:44:57 Updated: xo-lite-0.20.0-1.xcpng8.3.noarch
      May 07 19:44:57 Updated: wsproxy-26.1.3-1.10.xcpng8.3.x86_64
      May 07 19:44:58 Updated: xapi-storage-script-26.1.3-1.10.xcpng8.3.x86_64
      May 07 19:44:58 Updated: xcp-networkd-26.1.3-1.10.xcpng8.3.x86_64
      May 07 19:44:59 Updated: forkexecd-26.1.3-1.10.xcpng8.3.x86_64
      May 07 19:44:59 Updated: sm-cli-26.1.3-1.10.xcpng8.3.x86_64
      May 07 19:44:59 Updated: xapi-rrd2csv-26.1.3-1.10.xcpng8.3.x86_64
      May 07 19:45:00 Updated: rrdd-plugins-26.1.3-1.10.xcpng8.3.x86_64
      May 07 19:45:01 Updated: xapi-nbd-26.1.3-1.10.xcpng8.3.x86_64
      May 07 19:45:01 Updated: sm-fairlock-3.2.12-17.8.xcpng8.3.x86_64
      May 07 19:45:01 Updated: sm-3.2.12-17.8.xcpng8.3.x86_64
      May 07 19:45:01 Updated: xenopsd-26.1.3-1.10.xcpng8.3.x86_64
      May 07 19:45:01 Updated: xenopsd-cli-26.1.3-1.10.xcpng8.3.x86_64
      May 07 19:45:02 Updated: xenopsd-xc-26.1.3-1.10.xcpng8.3.x86_64
      May 07 19:45:05 Updated: xcp-ng-pv-tools-8.3-17.xcpng8.3.noarch
      May 07 19:45:05 Installed: 3:traceroute-2.1.5-2.xcpng8.3.x86_64
      May 07 19:45:05 Updated: xapi-xe-26.1.3-1.10.xcpng8.3.x86_64
      May 07 19:45:05 Updated: qcow-stream-tool-26.1.3-1.10.xcpng8.3.x86_64
      May 07 19:45:08 Updated: xapi-core-26.1.3-1.10.xcpng8.3.x86_64
      May 07 19:45:08 Updated: xcp-ng-deps-8.3-14.noarch
      May 07 19:45:08 Updated: gnutls-utils-3.3.29-10.2.xcpng8.3.x86_64
      May 07 19:45:08 Updated: gnutls-devel-3.3.29-10.2.xcpng8.3.x86_64
      May 07 19:45:09 Updated: varstored-guard-26.1.3-1.10.xcpng8.3.x86_64
      May 07 19:45:12 Updated: kernel-4.19.19-8.0.46.2.xcpng8.3.x86_64

      So I guess one of these packages could be the culprit?

      1 Reply Last reply Reply Quote 0
      • C Offline
        conitrade-as
        last edited by

        Another interesting observation. On a VM where we took a snapshot today (post Windows Update install) and deleted an older snapshot, the disk shows up (both v5 and v6).

        1 Reply Last reply Reply Quote 0
        • C Offline
          conitrade-as
          last edited by

          Dug a little deeper. For a VM where the disks are not shown the following XO API call fails:

          /rest/v0/vms/a519e879-3971-9210-51b6-7df14336e7b7/vdis
          {
            "error": "no such VDI ac37700d-3157-4df7-b8e8-e1799a994591",
            "data": {
              "id": "ac37700d-3157-4df7-b8e8-e1799a994591",
              "type": [
                "VDI"
              ]
            }
          }
          

          Also the VDI cannot be retrieved over the XO API:

          /rest/v0/vms/a519e879-3971-9210-51b6-7df14336e7b7
          ...
           "$VBDs": [
              "4ea8a3cd-0d1b-dc60-4d9c-fd70e060f06c",
              "9f4ca686-9fc2-35a9-c3e9-c871c9f68aba"
            ],
          ...
          
          /rest/v0/vbds/9f4ca686-9fc2-35a9-c3e9-c871c9f68aba
          {
            "type": "VBD",
            "attached": false,
            "bootable": false,
            "device": "xvda",
            "is_cd_drive": false,
            "position": "0",
            "read_only": false,
            "VDI": "ac37700d-3157-4df7-b8e8-e1799a994591",
            "VM": "a519e879-3971-9210-51b6-7df14336e7b7",
            "id": "9f4ca686-9fc2-35a9-c3e9-c871c9f68aba",
            "uuid": "9f4ca686-9fc2-35a9-c3e9-c871c9f68aba",
            "$pool": "93d361b7-f549-53b7-a3aa-c9695bf0abe4",
            "$poolId": "93d361b7-f549-53b7-a3aa-c9695bf0abe4",
            "_xapiRef": "OpaqueRef:1d424d94-f540-2eb4-9e52-2a9b21ec0a19"
          }
          
          /rest/v0/vdis/ac37700d-3157-4df7-b8e8-e1799a994591
          {
            "error": "no such VDI ac37700d-3157-4df7-b8e8-e1799a994591",
            "data": {
              "id": "ac37700d-3157-4df7-b8e8-e1799a994591",
              "type": "VDI"
            }
          }
          

          However the VDI can be listed using the xe cli:

          $ xe vm-list uuid=a519e879-3971-9210-51b6-7df14336e7b7
          uuid ( RO)           : a519e879-3971-9210-51b6-7df14336e7b7
               name-label ( RW): XXX
              power-state ( RO): halted
          
          $ xe vbd-list vm-uuid=a519e879-3971-9210-51b6-7df14336e7b7
          uuid ( RO)             : 4ea8a3cd-0d1b-dc60-4d9c-fd70e060f06c
                    vm-uuid ( RO): a519e879-3971-9210-51b6-7df14336e7b7
              vm-name-label ( RO): XXX
                   vdi-uuid ( RO): <not in database>
                      empty ( RO): true
                     device ( RO): xvdd
          
          
          uuid ( RO)             : 9f4ca686-9fc2-35a9-c3e9-c871c9f68aba
                    vm-uuid ( RO): a519e879-3971-9210-51b6-7df14336e7b7
              vm-name-label ( RO): XXX
                   vdi-uuid ( RO): ac37700d-3157-4df7-b8e8-e1799a994591
                      empty ( RO): false
                     device ( RO): xvda
          
          $ xe vdi-list uuid=ac37700d-3157-4df7-b8e8-e1799a994591
          uuid ( RO)                : ac37700d-3157-4df7-b8e8-e1799a994591
                    name-label ( RW): XXX Disk 0
              name-description ( RW): Created by XO
                       sr-uuid ( RO): 977b7e63-bb84-57b2-3e0d-206afea553bf
                  virtual-size ( RO): 34359738368
                      sharable ( RO): false
                     read-only ( RO): false
          

          Seems almost like something changed in the XCP-ng API which XO cannot consume.

          1 Reply Last reply Reply Quote 0
          • K Online
            kagbasi-wgsdac
            last edited by kagbasi-wgsdac

            Another confirmed data point, with package delta and the specific malformed field.

            Host: XCP-ng 8.3.0, xapi 26.1 (build 26.1.4), Xen 4.17.6-9.

            Setup: XO from sources (community). All VDIs vanished from the per-VM Disks tab (XO 5 and XO 6); xe and the SR Disks tab show them fine; VMs run normally. Trigger was the 8.3 host update + reboot this morning — XO build unchanged since May 28, disks visible yesterday.

            Host update delta (today): all 26.1.3-1.10 → 26.1.4-3.1 (xapi-core, xenopsd, sm-cli, sm-fairlock, xapi-storage-script, vhd-tool, message-switch, etc.), plus sm 3.2.12-17.8 → 17.9 as an independent bump.

            The malformed field. An affected live OS disk (VM running):

            is-a-snapshot: false
            snapshot-of:   <populated, points to another VDI>
            snapshot-time: <populated>
            

            A normal base VDI should have an empty snapshot-of. After the update, snapshot-of/snapshot-time are populated on real, non-snapshot base VDIs, and XO filters anything with a non-empty snapshot-of out of the per-VM Disks view — which is the disappearance.

            The VDI that snapshot-of points to is a legitimate base image in my environment (a heavily-reused Win2022 build template with a large genuine snapshot/clone lineage), so I can't tell from the host side whether the parentage links themselves changed or only the snapshot-of on live VDI labeling did. Either way, the consumer-visible effect is the same.

            REST confirms: /rest/v0/vms/<uuid>/vdis → []; /rest/v0/vdis/<uuid> → "no such VDI" for the VBD's referenced UUID, while xe vdi-list shows it.

            Caution for others: since live disks now carry snapshot-like metadata, be careful with Health-dashboard "orphan" cleanup and snapshot deletion on affected VMs until this is understood.

            Workaround that restored the per-VM Disks view: snapshot → revert → delete-snapshot (tested on a powered-off VM, immediate).

            Happy to provide more diagnostics.


            Quick Follow-up:

            Additional symptom, same root cause: ISO-SR VDIs are also affected. Pre-existing ISOs disappeared from the XO ISO picker (only ISOs uploaded after the patch still show). An affected ISO's vdi-param-list shows:

            is-a-snapshot: false
            snapshot-of:   937c3945-...   (same anchor UUID as an affected VM disk on a different SR)
            snapshot-time: 19700101T00:00:00Z   (Unix epoch — clearly synthetic)
            

            Notably the spurious snapshot-of on both an ISO VDI and an unrelated VM OS disk points to the same anchor UUID, with an epoch timestamp — so this looks like the update is stamping pre-existing VDIs with a bogus snapshot-of rather than any real lineage. VHD chains/GC are clean (GC reports no work).

            Tagging a related GitHub Issue for easy correlation - https://github.com/vatesfr/xen-orchestra/issues/9578

            Meninyelow created this issue in vatesfr/xen-orchestra

            open VM disk with status => no item found on XOA #9578

            K 1 Reply Last reply Reply Quote 0
            • K Online
              kagbasi-wgsdac @kagbasi-wgsdac
              last edited by

              @olivierlambert Any chance you can have someone please take a look at this thread? The issue persists and is creating problems for me. If someone out there has figured out the solution, kindly share, thanks.

              1 Reply Last reply Reply Quote 0
              • olivierlambertO Offline
                olivierlambert Vates 🪐 Co-Founder CEO
                last edited by

                Hi,

                I think it's a known problem, let me ping @poddingue so he gives you a quick recap on the situation (or someone from the team storage)

                K 1 Reply Last reply Reply Quote 1
                • K Online
                  kagbasi-wgsdac @olivierlambert
                  last edited by

                  @olivierlambert Thanks for the response, much appreciated.

                  I'm getting ready to file a bug report, as I noticed this morning that this issue is now causing a VDI-IN-USE error; preventing me from starting a VM. Fortunately, that VM isn't critical, so I want to report it and help with the troubleshooting that will lead to a fix before it spreads.

                  poddingueP 1 Reply Last reply Reply Quote 0
                  • poddingueP Offline
                    poddingue Vates 🪐 @kagbasi-wgsdac
                    last edited by

                    Here's the short version: this looks like the known "VDIs show up as snapshots" bug, and you haven't done anything wrong.
                    What happens is a metadata flag on the VDI, is-a-snapshot, gets flipped to true after some of the recent 8.3 host updates, so XO (both 5 and 6) thinks those disks are snapshots and hides them from the per-VM Disks tab, even though the VDIs are fine and xe / XCP-ng Center still show them. 🤷
                    A few older threads track the same thing, the main one is https://xcp-ng.org/forum/topic/11715/vdi-not-showing-in-xo-5-from-source . From what's said there, the fix is expected in two parts: stopping it from happening again, and a way to repair the flag on VDIs that are already affected.
                    I don't have a timeline and could be off on the details, so please don't take that as official.
                    In the meantime people have made the disks reappear by migrating the affected VDI to another SR, or snapshot then revert then delete the snapshot, but it's a visual fix and can come back.
                    The VDI_IN_USE you're now hitting on start does sound worth its own detailed report, so yes please file it with the xapi/sm versions and that malformed is-a-snapshot field, and it'd be good to loop in @Team-Storage. Sorry you're stuck on this.

                    K 2 Replies Last reply Reply Quote 0
                    • K Online
                      kagbasi-wgsdac @poddingue
                      last edited by

                      @poddingue Thanks for the response. I got side tracked with another issue and didn't get that bug report filed, I'll do that as soon as possible.

                      It feels like I'm playing with a hand grenade...lol, quite scary!

                      1 Reply Last reply Reply Quote 1
                      • K Online
                        kagbasi-wgsdac @poddingue
                        last edited by

                        @poddingue Bug report filed as requested — https://github.com/xcp-ng/xcp/issues/825 — and tagging @Team-Storage per your suggestion.

                        Full evidence bundle is attached to the issue (versions, sweep output, vhd-util vs xe comparison, SMlog). Summary of what I found:

                        One correction to the mechanism, and I think it matters. The recap describes is-a-snapshot being flipped to true. On my system that isn't what's happening — is-a-snapshot is false on every affected VDI. The field being wrongly written is snapshot-of, which is getting populated on base disks that aren't snapshots at all. XO's disappearing-disks symptom is consistent with either (it filters on a non-empty snapshot-of), but if the storage team is hunting for a bad is-a-snapshot write, that may be the wrong field. Every affected VDI here looks like:

                        is-a-snapshot: false      <-- correct
                        snapshot-of:   <populated with an unrelated VDI's UUID>   <-- wrong
                        

                        A VDI that is a snapshot of itself. The clearest single artifact:

                        uuid:          806f7f42-083f-4a40-b3f1-0700d00bab5a
                        name-label:    WinSrv2022SHB_Disk1_Data
                        is-a-snapshot: false
                        snapshot-of:   806f7f42-083f-4a40-b3f1-0700d00bab5a   <-- itself
                        snapshot-time: 20260709T11:19:15Z
                        sm-config:     vhd-parent: c86e3247-...   <-- bears no relation to the snapshot-of value
                        

                        No valid code path produces snapshot-of = self. Whatever writes this field isn't validating the target.

                        It's still actively corrupting new VDIs — this is not just legacy damage. That self-referential VDI was created 2026-07-09, a week after my patch + reboot. Sweeps 9 days apart went from ~180 → 191 affected VDIs on one SR, and a fourth anchor UUID appeared that didn't exist in the first sweep. Newly created VHDs keep landing in the affected set. So "stop it happening again" is the urgent half of the two-part fix, at least in my case.

                        The bogus targets cluster onto a tiny anchor set, and the anchors point at each other:

                        Count Anchor
                        97 937c3945 (→ a893fdb4)
                        50 a893fdb4 (→ ea150883)
                        37 ea150883
                        7 806f7f42 (→ itself, new since Jul 9)

                        That looks less like corrupted lineage and more like the field being filled from an incorrect/uninitialised source.

                        On-disk VHDs are completely healthy. vhd-util check says valid, parent locators are consistent, GC reports no work. The two VDIs the DB calls parent/child are, on disk, siblings under a common parent. The corruption is purely in the XAPI database — which is good news for recoverability.

                        The VDI_IN_USE is not a real lock. current-operations is empty, xe task-list is empty, no tapdisk holds it. VM.start fails because it's walking a snapshot relationship that doesn't exist on disk. Reproduces from xe on the pool master with XO entirely out of the path — which is why I filed against xcp-ng/xcp rather than the XO tracker.

                        Versions: XCP-ng 8.3.0, xapi 26.1.11 (xapi-core-26.1.11-1.2), sm-3.2.12-17.9, sm-fairlock-3.2.12-17.9, blktap 3.55.5-9.1, build 20260618.

                        I have not attempted to bulk-clear the fields — on-disk data is intact and I'd rather not do a mass write against the XAPI DB on a live SR without guidance. Backing store snapshotted as a safety net.

                        Happy to run whatever diagnostics would help. And +1 to the hand-grenade feeling — the affected set growing on its own is the part that worries me.

                        kismetgerald created this issue in xcp-ng/xcp

                        open XAPI DB corruption: base VDIs mass-stamped with invalid `snapshot-of` (incl. a VDI that is a snapshot of *itself*), blocking `VM.start` with VDI_IN_USE — and still ongoing #825

                        1 Reply Last reply Reply Quote 0

                        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                        With your input, this post could be even better 💗

                        Register Login
                        • First post
                          Last post