XCP-NG Xen Disk Passthrough

In XCP-NG Xen host, show the available disks:
# lsblk

In this example, we’re passing through a nvme disk

Create a directory in /srv
# mkdir /srv/pass_disks

Create the Storage Repository:

# xe sr-create name-label=Pass_Disks type=udev content-type=disk /
host-uuid=YourHostUUID device-config:location=/srv/pass_disks

You can get Your Host UUID from XenOrchestra

Create symbolic link inside the /srv/pass_disks directory:
# ln -s /dev/nvme0n1

The disk should show up in XenOrchestra, if not “Rescan All Disks”