@bvitnik It's specific to XCP-ng.
Posts
-
RE: How to reliably determine VDI format (vhd, qcow2, raw) via XAPI across versions
@bvitnik Hello,
sm-config:vdi_typeis the pre-existing one so we are still writing it for compatibility reasons.
But you might notice thatvdi_typeis only written for LVM-based SRs.
Whileimage-formatis always written in XCP-ng with the QCOW2 feature.So it might be safe to just look at
image-formatif it exist and if it's not, it's likely a VHD.
On LVMSR, you can fallback onvdi_type(and it should work for XS too).Indeed, ISO SRs do not advertise a VDI format. Technically, ISOs could be considered to be
raw.It should also be noted that our implementation of QCOW2 is very different from GFS2 QCOW2 of XenServer.
Our implementation uses the existing SR types to allow VHD and QCOW2 to co-exist. -
RE: XCP-ng 8.3 updates announcements and testing
@probain Hello,
It's likely linked to the
List index out of rangebug.
That bug was linked to the SR scan failing to introduceCBT_metatadataVDI in the XAPI database, could you try to launch axe sr-scan uuid=<SR UUID>and try again to disable CBT?
If it does not work, could you share the/var/log/SMlogof around the time you are trying to disable CBT? -
RE: XCP-ng 8.3 updates announcements and testing
@Andrew Hello,
I'm also getting error on some VMs while trying to export a disk and also trying to even start some VMs from NFS (that were fine before).
Is it still a problem? It might have multiple causes. If it's still an issue, could you share the logs:
/var/log/{SMlog,xensource.log,daemon.log}. It contains information that could help us investigate.The VDI not detached cleanly means that the VDI still has a reference to the host it was running on before.
It's might be caused by the xenopsd error earlier or maybe it's the cause.If you are sure no tapdisk are using the VDI, you can look at
tap-ctl listoutput on each host.
You can clean this reference with the script in/opt/xensource/sm/resetvdis.py single <VDI UUID>. -
RE: Attach a Physical HD to a VM?
@nasheayahu Sorry, I made a mistake, it's
device-config:location--'
I'll edit my first post with the correct configuration, you will also likely need to give thehost-uuidof the host the disk is on. -
RE: Attach a Physical HD to a VM?
@nasheayahu Hello,
I do this in my homelab with a disk since I imported it from a physical machine:
mkdir /srv/NAS xe sr-create type=udev device-config:location=/srv/NAS name-label="NAS Disks" host-uuid=<UUID of the host with the disks>Then you make a symlink to the device:
ln -s /dev/sda /srv/NAS/sda #although it might be better to use a stable identifier if you have multiple disks xe sr-scan uuid=<UUID of the udev SR>The disk will appear as a VDI in the SR that you can then plug to a VM.
I also renamed the VDI
[NOSNAP][NOBAK] NAS Drive
[NOSNAP][NOBAK]instruct XO to not snapshot and export the disk in backups (since it can't).It's not passthrough, as in the disk is not directly given to the VM, but tapdisk (the process virtualizing storage) will give access to the whole disk to the guest, so it can mount any FS on it.
The udevSR is usually used for plugging USB from what I could gather from existing code. But users in homelabs have been using it like this for a while.
Though you will likely not have native performance level since it's not exactly passthrough. -
RE: XOSTOR appears to be broken on the new XCP-NG May 2026 update
Hello again,
The updates have been made available and RPU with xostor should be safe to run

https://xcp-ng.org/blog/2026/05/07/may-2026-updates-2-for-xcp-ng-8-3-lts/ -
RE: XOSTOR appears to be broken on the new XCP-NG May 2026 update
@ccooke Hello,
We have a fix, we are aiming to validate it rapidly so it shouldn't happen for others.
Thank you for reporting the issue. I'll update the thread again when the update is available and it should be safe for other people going through here to update using the RPU. -
RE: XOSTOR appears to be broken on the new XCP-NG May 2026 update
@ccooke Hello,
You should be able to make the XOSTOR SR work again if you update
smandsm-fairlockon the other hosts.yum update sm sm-fairlockThen you should be able to re-plug the SR on the master and proceed with the RPU.
-
RE: XCP-ng 8.3 updates announcements and testing
@IgorGlock Hello,
Could you share the exception that should be in
/var/log/SMlog? -
RE: XCP-ng 8.3 updates announcements and testing
@Andrew Hello,
I have been able to find the problem and make a fix, it's in the process of being packaged.
I can confirm it only happen for file based SR when using purge snapshots.
For some reason, the vdi type of CBT_metadata is cbtlog for FileSR but stays the image format it was for LVMSR
And it would make a condition fail during thelist_changed_blockscall. -
RE: XCP-ng 8.3 updates announcements and testing
@Andrew Hello Andrew,
Thank you for reporting.
It appear that the CBT on FileSR-based SR is not working in addition to data-destroy (the option that allow to remove the VDI content and only keep the CBT).
Can you confirm that you are using a FileSR (ext or nfs)?
Is it possible to disable purge data on the CR job? -
RE: XCP-ng 8.3 updates announcements and testing
@acebmxer Hello,
The error
VDI_CBT_ENABLEDmeans that the XAPI doesn't want to move the VDI to not break the CBT chain.
You can disable the CBT on the VDI before migrating the VDI but if you have snapshots with CBT enabled it can be complicated and it might necessitate to remove them before moving the VDI.
We have changes planned to improve the CBT handling in this kind of case. -
RE: XCP-ng 8.3 updates announcements and testing
@ovicz Hello,
From what I saw in your logs, you have a non QCOW2
smversion, it made the QCOW2 VDIs not available to the storage stack and the XAPI lost them.
If you update again while enabling the QCOW2 repo:yum update --enablerepo=xcp-ng-testing,xcp-ng-candidates,xcp-ng-qcow2A SR scan will make the VDI available to the XAPI. Though you will have to identify them and connect them to the VM manually, since this information was lost.
-
RE: Booting to Dracut (I trusted ChatGPT)
@nuentes Hello,
Following an IA seem to be dangerous already, no need for Skynet

There is a documentation part about regenerating the initrd: https://docs.xcp-ng.org/troubleshooting/common-problems/#initrd-is-missing-after-an-update
You can likely used what you did above to mount the XCP-ng FS and then regenerate the initrd using this command.
It's not an initramfs that you need to generate but a initrd
-
RE: SR_BACKEND_FAILURE_78 when trying to create VDI
@cmanos No problem, glad I could helped.
As Olivier also pointed above, it's not an issue anymore when using QCOW2 which is currently in beta, so hopefully it's only a short workaround
-
RE: SR_BACKEND_FAILURE_78 when trying to create VDI
@cmanos Hello, there is a problem with VHD on 4KiB block size devices, you can use the largeblock SR to workaround the issue:
https://xcp-ng.org/forum/topic/8901/largeblocksr-for-4kib-blocksize-disks -
RE: Unable to add new node to pool using XOSTOR
@olivierlambert In 8.2 yes, linstor sm version is separated, it's not the case in 8.3 anymore.
-
RE: SR Garbage Collection running permanently
@Razor_648 While I was writing my previous message, I have been reminded that there are also issues with LVHDoISCSI SR and CBT, you should disable CBT on your backup job and on all VDI on the SR. It might help with the issue.