From the CLI:
- Create a directory on the local filesystem to storage your ISOs
- Copy/move ISOs to this new location
- Create the ISO SR using xe sr-create
- You can add or update ISOs later by placing them into the directory you created in step 1
- Rescan the SR if you change the files stored in the ISO directory
Here’s an example of how to create a Local ISO SR named “ISO Repository” that will be stored in /opt/var/iso_repository:
mkdir -p /opt/var/iso_repository
xe sr-create name-label="ISO Repository" type=iso device-config:location=/opt/var/iso_repository device-config:legacy_mode=true content-type=iso
a6732eb5-9129-27a7-5e4a-8784ac45df27 # this is the output
xe sr-scan uuid=a6732eb5-9129-27a7-5e4a-8784ac45df27
If your host is in a pool of several hosts, you need to add the host-uuid parameter to the xe sr-create command above. You can retrieve the host UUID with xe host-list.
Src: https://xcp-ng.org/docs/storage.html#iso-sr