You can support us by downloading this article as PDF from the Link below. Download the guide as PDF

In our previous articles we walked you through the installation of XCP-ng Hypervisor and how to manage XCP-ng Hypervisor with XenCenter | XCP-ng Center. Once the hypervisor and management from XenCenter is configured, configuration of networking and storage repositories can be performed. In Xen virtualization Storage Repository is the place for your VM disks (VDI SR) and storage of  ISO files. In this guide we look at how you can configure ISO Library Storage Repository in Xen and upload some ISO files to it.

There are two types of ISO SR that can be configured in Xen:

  • NFS ISO – This SR type handles CD images stored as files in ISO format available as an NFS share.
  • Windows File Sharing (SMB/CIFS) – This SR type handles CD images stored as files in ISO format available as a Windows (SMB/CIFS) share.

Configure new ISO Storage Repository in Xen

We’ll be using XenCenter/XCP-ng Center in this setup but Xen Orchestra can also be used to achieve the same.

NFS Server is needed for the storing ISO images. We’ll configure NFS share on a Linux server.

Step 1: Install NFS Server

Use the commands below to install NFS Server on Ubuntu / Debian system:

# Debian / Ubuntu
sudo apt update
sudo apt install nfs-kernel-server -y

Install NFS Server on CentOS 8 / CentOS 7:

sudo yum -y install nfs-utils

Once NFS Server is installed use the commands below to enable the service:

sudo systemctl enable --now rpcbind nfs-server

Step 2: Configure NFS Share

Create ISO Library directory in your NFS Server:

sudo mkdir -p /mnt/isos

Configure NFS Share by editing the file /etc/exports

$ sudo vim /etc/exports
# Examples
/mnt/isos *(rw,no_root_squash,no_subtree_check) #Allow access from any IP
/mnt/isos,no_root_squash,no_subtree_check) #Allow access only from hosts in subnet
/mnt/isos,no_root_squash,no_subtree_check) #Allow access only from single host IP

Export your shares

$ sudo exportfs -rrv

On CentOS NFS Server

If you have Firewalld running allow NFS service:

$ sudo firewall-cmd --add-service=nfs --permanent
$ sudo firewall-cmd --reload

#If use NFSv3 allow the following
$ sudo firewall-cmd --add-service={nfs3,mountd,rpc-bind} --permanent
$ sudo firewall-cmd --reload

Step 3: Add ISO Storage Repository

Open your XenCenter/XCP-ng Center console and click “Storage” > “New SR” on the toolbar.

Configure ISO Library Storage Repository Xen XCP ng 01

In the next screen choose “ISO library

Configure ISO Library Storage Repository Xen XCP ng 02 02

Give the storage repository a name. The default can be used without renaming.

Configure ISO Library Storage Repository Xen XCP ng 03 02

Enter NFS share path inside “Share Name” box. Example:


  • is the IP Address of NFS server
  • /mnt/isos is the path to ISO files directory as exported in NFS server.
Configure ISO Library Storage Repository Xen XCP ng 04 02

For Windows File Sharing SMB/CIFS the share name will have format like \server\sharename

Confirm storage repository has been added and visible.

Configure ISO Library Storage Repository Xen XCP ng uuid

Step 4: Add ISO files to NFS share

Let’s download some ISO files to the NFS share.

Switch to nfs share directory:

sudo su -
cd /mnt/isos

Download ISO files to the directory. See below examples;

# Ubuntu 20.04 ISO

# CentOS 8 Stream Minimal ISO

# Debian 10 netinstall ISO

Confirm if ISO files can be seen on the XCP-ng server end:

Configure ISO Library Storage Repository Xen XCP ng 06

In our next guide we’ll discuss installation of Linux and Windows virtual machines from the ISO files in the ISO Library.

More guides on Virtualization:

 Configure NFS Filesystem as OpenNebula Datastores

How To Add Compute Host to oVirt Virtualization

OpenNebula LXD Node Installation on Debian

As an appreciation for the content we put out,
we would be thrilled if you support us!

As we continue to grow, we would wish to reach and impact more people who visit and take advantage of the guides we have on our blog. This is a big task for us and we are so far extremely grateful for the kind people who have shown amazing support for our work over the time we have been online.

Thank You for your support as we work to give you the best of guides and articles. Click below to buy us a coffee.


Please enter your comment!
Please enter your name here