How to Copy ISOs to Local Storage
Summary
In XenServer 3.2 and earlier, ISOs could be copied directly to the control domain into the /opt/xensource/packages/iso directory. In XenServer 5.0.0 hosts, this directory is reserved for use of the built-in ISO images, and is not intended for general use. This directory is considered to be identical across hosts in a resource pool, and CD images might fail to attach if the contents are modified.
Procedure
Use the following steps to use local ISO storage from the control domain.
- Log on to the host console.
- Use the command below to create an ISO storage repository:
xe sr-create name-label=<name> type=iso \
device-config:location=/var/opt/xen/iso_import/<name> \
device-config:legacy_mode=true content-type=iso
- Copy the ISO images into this directory, taking care not to fill up the control domain file system.
- Verify that the ISO image is available for use by xe vdi-list, or checking the CD drop-down box in XenCenter.
Caution! Be extremely careful with copying ISOs directly on to the control domain file system because it has limited space available. A network share is a much safer mechanism for storing large numbers of ISO images. If the control domain fills up, unpredictable behavior results.