When building my homelab with XenServer 5.6 FP1, I needed an ISO repository on local storage. Although I found some guides on the internet none of them actually worked/suited my needs. However after some research I found this way working. In my case I wanted to use the free space of volume SDA3.

Only use this procedure in your LAB environment as it is not supported.

Before you start you have to delete existing SR’s/LVM’s/VG’s on SDA3 [search]

Now create the File System the filesystem on empty sda3.

  • mkfs.ext3 -m 0 /dev/sda3 <where sda3, is the volume I want to use on local disk>

Create a mount point for your new created File System.

  • mkdir /mnt/iso_import

Add the following line to /etc/rc.local to mount the filesystem on boot.

  • mount /dev/sda3 /mnt/iso_import

To prevent a reboot, let’s mount it manually.

  • mount /dev/sda3 /mnt/iso_import

Now add the repository to XenServer

  • xe sr-create name-label=<desired name> type=iso \device-config:location=/mnt/iso_import \device-config:legacy_mode=true content-type=iso

Now the repository should be available within XenCenter. Copy your ISO’s to the repository location with your favorite SSH client.