Set up NFS shares that will serve as a data domain and an export domain on a Red Hat Enterprise Linux 6 server.
1: Install nfs-utils, the package that provides NFS tools:
# yum install nfs-utils
2:Configure the boot scripts to make shares available every time the system boots:
# chkconfig –add rpcbind
# chkconfig –add nfs
# chkconfig rpcbind on
# chkconfig nfs on
3:Start the rpcbind service and the nfs service:
# service rpcbind start
# service nfs start
4:Create the data directory and the export directory:
# mkdir -p /exports/iso
5:Add the newly created directories to the /etc/exports file. Add the following to /etc/exports:
/exports/iso *(rw)
6:Export the storage domains:
# exportfs -r
7:Reload the NFS service:
# service nfs reload
8:Create the group kvm:
# groupadd kvm -g 36
9:Create the user vdsm in the group kvm:
# useradd vdsm -u 36 -g 36
10: Set the ownership of your exported directories to 36:36, which gives vdsm:kvm ownership. This makes it possible for the Manager to store data in the storage domains represented by these exported directories:
# chown -R 36:36 /exports/iso
11: Change the mode of the directories so that read and write access is granted to the owner, and so that read and execute access is granted to the group and other users:
# chmod 0755 /exports/iso
Attaching NFS Storage
Attach an NFS storage domain to the data center in your Red Hat Enterprise Virtualization environment. This storage domain provides storage for virtualized guest images and ISO boot media.
1: In the Red Hat Enterprise Virtualization Manager Administration Portal, click the Storage resource tab.
2:Click New Domain.

3:Enter a Name for the storage domain
4:Accept the default values for the Data Center, Domain Function / Storage Type, Format, and Use Host lists.
5:Enter the Export Path to be used for the storage domain.
The export path should be in the format of 192.168.0.10:/data or domain.example.com:/data.
6:Click OK.
The new NFS data domain is displayed in the Storage tab with a status of Locked until the disk is prepared. The data domain is then automatically attached to the data center.
# engine-iso-uploader list
Please provide the REST API password for the admin@internal oVirt Engine user (CTRL+D to abort):
ISO Storage Domain Name | ISO Domain Status
ISO_Domain | ok
# engine-iso-uploader –iso-domain=ISO_Domain upload /iso-image-path/rhel-server-7.5-x86_64-dvd.iso
Please provide the REST API password for the admin@internal oVirt Engine user (CTRL+D to abort):
Uploading, please wait…
INFO: Start uploading /iso-image-path/rhel-server-7.5-x86_64-dvd.iso
Uploading: [########################################] 100%
INFO: /iso-image-path/rhel-server-7.5-x86_64-dvd.iso uploaded successfully
Now the iso image is ready in the attach cd drop-down as in the pic.
