Creating Storage Repository for XCP-NG Pool
A storage repository is where VM files or ISOs resides on in XCP-NG. For VM storage, XCP-NG calls this VDI SR. For ISOs, it is called ISO SR.
XCP-NG also supports many different shared storage options for its storage repository, such as Windows SMB File Share, NFS Share, iSCSI, etc.
To add a new storage, got to New -> Storage.
Here, you will see all the different options for storage type. Select the option you need, fill out the fields, and add.
NFS
NFS is a great, fast and reliable option for a VM storage repository. This is the option to go if you are using TrueNAS as your primary storage.
iSCSI
iSCSI is another good option to use if you needed block-level storage target.
SMB
In a Windows enviroment, you can also use SMB as your storage repository.