In order to do advanced installs or installations where there are no templates under XenCenter and you wish to use your own custom ISO images, you can add an ISO repository. The following steps outlines what needs to be done;
mkdir -p /var/opt/xen/iso_import
Copy your ISO image to this directly, but be careful as the control domain filesystem has limited space and if this fills up, unpredictable behaviour will follow.
Next up you need to create the repository by running
xe sr-create name-label=ISOs type=iso device-config:location=/var/opt/xen/iso_import device-config:legacy_mode=true content-type=iso
You need to mount the new repository so it’s available on XenCenter
xe-mount-iso-sr /var/opt/xen/iso_import
You can now proceed to create your VM using the ISO repository you just added.
Thanks for this. I have been looking around for some instructions of how to mount an ISO file and this is the only place that gave me the information I required.
Most of the other references didn’t have the below line.
xe sr-create name-label=ISOs type=iso device-config:location=/var/opt/xen/iso_import device-config:legacy_mode=true content-type=iso
Thanks
Sukhjit