Create local ISO Library on Xenserver

The Xenserver ISO type handles CD images stored as files in ISO format. This SR type is useful for creating shared ISO libraries. In order to create VMs based on ISO disks, you need a local ISO Storage Repository on Citrix XenServer. There are several options of ISO Storage repositories in Xen Server based on the location of the repository.

First check your available disk space. If it does not have enough FREE DISK space then you should mount separate drive or create LVM storage for Local ISO folder (/var/opt/xen/ISO_Store)

diskspace

Otherwise you can create new NFS storage repository for ISO via XenCenter.

New SR

and check mounted folder.

nfsmount

Goto mounted folder and create ISO library folder.

#cd /var/run/sr-mount/bdd95432-c693-9439-1fe6-b9465ee7aec4

#mkdir ISO_Store

Once disk space verification completed, create the ISO Library Folder.

#mkdir /var/opt/xen/ISO_Store

Issue the following command to Create local ISO Library on Xenserver

#xe sr-create name-label=LocalISO type=iso device-config:location=/var/opt/xen/ISO_Store device-config:legacy_mode=true content-type=iso

 

location=<your ISO folder path>

Ex:
[root@xen1 ~]# xe sr-create name-label=LocalISO type=iso device-config:location=/var/opt/xen/ISO_Store device-config:legacy_mode=true content-type=iso

aa8e3367-d59e-a142-5b1e-19608a4fb0e5
You have successfully created new local ISO library. Download ISO files through wget or FTP.

#wget http://centos.communilink.net/6.5/isos/x86_64/CentOS-6.5-x86_64-LiveCD.iso

 

localISO