192.168.0.10:/Images/ISO
storage.demo.redhat.com:/exports/iso
Install nfs-utils
$ rpm -qi nfs-utils
yum
while logged in as the root
user:
# yum install nfs-utils
Configure Boot Scripts
nfs
and rpcbind
services must start at boot time. Use the chkconfig
command while logged in as root
to modify the boot scripts.
#chkconfig --add rpcbind
#chkconfig --add nfs
#chkconfig rpcbind on
#chkconfig nfs on
#service rpcbind start
#service nfs start
Create Directory
# mkdir /exports/iso
/exports/iso
with the name, and path of the directory you wish to use.
Export Directory
/etc/exports
configuration file. Each export path appears on a separate line followed by a tab character and any additional NFS options. Exports to be attached to the Red Hat Enterprise Virtualization Manager must have the read, and write, options set.
/exports/iso
using NFS for example you add the following line to the /etc/exports
file.
/exports/iso
*(rw)
/exports/iso
with the name, and path of the directory you wish to use.
Reload NFS Configuration
/etc/exports
file to take effect the service must be told to reload the configuration. To force the service to reload the configuration run the following command as root
:
# service nfs reload
Set Permissions
/exports/iso
is the directory to be used as an NFS share.
# chown -R 36:36 /exports/iso
chmod
command. The following command arguments set the required permissions on the /exports/iso
directory.
# chmod 0755 /exports/iso
Name: Enter a suitably descriptive name. |
Data Center: Select the required Data Center from the drop-down list. |
Domain Function/ Storage Type: In the drop down menu, select Data → NFS. The storage domain types which are not compatible with the Default data center are grayed out. After you select your domain type, the Export Path field appears. |
Export path: Enter the IP address or a resolvable hostname of the chosen host. The export path should be in the format of 192.168.0.10:/Images/ISO or domain.example.com:/Images/ISO |
Use Host: Select any of the hosts from the drop down menu. Only hosts which belong in the pre-selected data center will display in this list. |
Storage Domain
for a Volume Group
. A Volume Group
is a set of pre-defined Logical Unit Numbers (LUNs). Red Hat Enterprise Virtualization supports creation of a Storage Domain
from a pre-existent Volume Group
or a set of LUNs. Neither Volume Group
s nor LUNs are able to be attached to more than one Storage Domain
at a time.
3260
.
Storage Domain
for a Volume Group
. A Volume Group
is a set of pre-defined Logical Unit Numbers (LUNs). Red Hat Enterprise Virtualization supports creation of a Storage Domain
from a pre-defined Volume Group
or a set of LUNs. Neither Volume Group
s nor LUNs are able to be attached to more than one Storage Domain
at a time.
data/images
or data/localimages
.
rhevm-iso-uploader
. You must be logged in as the root
user to run it successfully. You must provide the administration credentials for the Red Hat Enterprise Virtualization environment on the command line. Full usage information, including a list of all valid options for the command, is available by running the rhevm-iso-uploader -h
command.
Usage:rhevm-iso-uploader
[options]
list
rhevm-iso-uploader
[options]
upload
[file].[file]...[file]
list
, and upload
.
list
parameter lists the available ISO storage domains. These storage domains are the valid targets for ISO uploads. By default the list is obtained from the Red Hat Enterprise Virtualization Manager installation on the local machine.
upload
parameter uploads the selected ISO file(s) to the specified ISO storage domain. By default the transfer is performed using NFS however SSH is also available.
list
or upload
parameter is provided. Where upload
is selected then the name of at least one local file to upload must also be provided.
rhevm-iso-uploader
command has a large number of options.
--version
-h
, --help
--quiet
--log-file=PATH
PATH
as the log file the command should use for its own log output.
--conf-file=PATH
PATH
as the configuration file the command should use.
-v
, --verbose
-f
, --force
-u USER
, --user=USER
USER
. This must be a user that exists in directory services, and is known to the Red Hat Enterprise Virtualization Manager. The user must be specified in the format user
@domain
, where user
replaced by the username, and domain
is replaced by the directory services domain in use.
-r FQDN
, --rhevm=FQDN
FQDN
. FQDN
must be replaced by the fully qualified domain name of the manager. By default it is assumed that the ISO uploader is being run on the same machine as the manager. Therefore the default value for this parameter is localhost
.
-i
, --iso-domain=ISODOMAIN
ISODOMAIN
as the destination for uploads.
-n
, --nfs-server=NFSSERVER
NFSSERVER
as the destination for uploads. This option is an alternative to --iso-domain
, the two must not be used at the same time.
# rhevm-iso-uploader --nfs-server=storage.demo.redhat.com:/iso/path
upload RHEL6.0.iso
--ssh-user=USER
USER
as the SSH username to use for the upload.
--ssh-port=PORT
PORT
as the port to use when connecting to SSH.
-k KEYFILE
, --key-file=KEYFILE
KEYFILE
as the public key to use for SSH authentication. If no key is set the program will prompt you to enter the password of the user specified instead.
#rhevm-iso-uploader list
Please provide the REST API username for RHEV-M (CTRL+D to abort):admin@directory.demo.redhat.com
Please provide the REST API password for RHEV-M (CTRL+D to abort): ISO Storage Domain List: ISODomain #rhevm-iso-uploader --iso-domain=
Please provide the REST API username for RHEV-M (CTRL+D to abort):ISODomain
uploadRHEL6.iso
admin@directory.demo.redhat.com
Please provide the REST API password for RHEV-M (CTRL+D to abort):