In this blog post, we’ll explore how to create a local ISO repository in XenServer, download ISO images, and verify the setup. This process is essential for managing virtual machines effectively, allowing you to install operating systems directly from ISO files.
Step 1: Create a Directory for ISO Files
The first command you will execute is:
mkdir /var/opt/iso
This command creates a new directory named iso under /var/opt. This directory will serve as the storage location for your ISO files. Organizing your files in specific directories helps maintain a clean and manageable file system.
Step 2: Create an ISO Storage Repository
Next, you need to create an ISO storage repository (SR) using the following command:
xe sr-create name-label=ISO_IMAGES_LOCAL type=iso device-config:location=/var/opt/iso device-config:legacy_mode=true content-type=iso
xe sr-create: This command initializes the creation of a new storage repository.name-label=ISO_IMAGES_LOCAL: This is the name you assign to your SR, making it easier to identify later.type=iso: Specifies that this repository will store ISO images.device-config:location=/var/opt/iso: Points to the directory where your ISO files will be stored.device-config:legacy_mode=true: Enables legacy mode, which may be necessary for compatibility with certain ISOs.content-type=iso: Defines the type of content stored in this repository.
Upon successful execution, the command will return a UUID (Universally Unique Identifier) for the newly created storage repository.
Step 3: Navigate to the ISO Directory
Now that your directory and storage repository are set up, navigate to the directory you created:
bashcd /var/opt/iso
This command changes your current working directory to /var/opt/iso, where you’ll download your ISO files.
Step 4: Download an ISO File
To download an ISO image, use the wget command:
wget --no-check-certificate https://download.nus.edu.sg/mirror/ubuntu-releases/24.04.1/ubuntu-24.04.1-desktop-amd64.iso
wget: A command-line utility used to download files from the web.--no-check-certificate: This option tellswgetto ignore SSL certificate verification, which can be useful if you’re downloading from a site with self-signed certificates.- The URL points directly to the Ubuntu 24.04.1 desktop ISO file.
After executing this command, you should see the downloaded file in your /var/opt/iso directory.
Step 5: List Files in the Directory
To verify that your ISO files are present, use:
ls /var/opt/iso
This command lists all files in the specified directory. You should see your downloaded Ubuntu ISO alongside any other ISOs you may have added.
Step 6: List Storage Repositories
Finally, check that your storage repositories are correctly configured by running:
xe sr-list
This command displays a list of all storage repositories available on your XenServer. You should see your newly created ISO_IMAGES_LOCAL repository listed among others, confirming that it’s ready for use.
Visual Confirmation with XenCenter
Further illustrate this process, here are two screenshots from XenCenter:

LocalISO Pool Screenshot:
LocalISO Pool Screenshot
This screenshot shows the LocalISO pool in XenCenter, confirming that our storage repository has been successfully created.

Installation Media Popup Screenshot:
Installation Media Popup Screenshot
This screenshot displays the Installation Media popup in XenCenter, listing the available ISO files including ubuntu-24.04.1-desktop-amd64.iso. This confirms that our downloaded ISOs are recognized by XenCenter.
By following these steps, you’ve successfully set up a local ISO repository in XenServer, downloaded an operating system image, and verified both the repository and its contents. This setup is crucial for creating virtual machines and managing installations efficiently. Whether you’re deploying Linux distributions or other operating systems, having a well-organized storage strategy enhances your virtualization experience.
Taking a side track, we provide a comprehensive solution for monitoring and managing Citrix Hypervisor environments through eG Enterprise Suite platform. Feel free to reach out if you have any questions or need further assistance with XenServer!