Xen ISO folder

Find server UUID:

xe host-list

Create ISO folder

mkdir -p /var/opt/xen/ISO

Create SR for ISO

xe sr-create name-label="Local ISO" type=iso host-uuid=<host-uuid> device-config:location=/var/opt/xen/ISO device-config:legacy_mode=true content-type=iso

Rescan after downloading a new ISO

xe sr-scan uuid=<sr_uuid>

check for ISO

xe cd-list

To remove the SR

Find SR PDB UUID

xe pbd-list sr-uuid=<UUID of SR>

Unplug SR

xe pbd-unplug uuid=<UUID of PBD>

Forget SR

xe sr-forget uuid=<UUID of SR>