3.2. Preparing an Installation Medium

Before installing the user interface, you must prepare an installation medium that you can then specify during the installation process. An installation medium is a source of files that the installer uses to install the base operating system on a machine when you provision RHEL OpenStack Platform, and must be in the format of a Red Hat Enterprise Linux 7.2 installation tree.

3.2.1. Preparing an Installation Medium using a Web Server

Use a web server to host a Red Hat Enterprise Linux 7 installation medium. This procedure must be performed on the machine where the installation medium is to be hosted.

Procedure 3.2. Preparing an Installation Medium

  1. Go to https://access.redhat.com, and log in to the Red Hat Customer Portal using your customer account details.
  2. Click Downloads in the menu bar.
  3. Click Red Hat Enterprise Linux to access the product download page.
  4. Click RHEL 7.2 Binary DVD.
  5. Install the Apache web server on the machine on which to host the installation medium:
    # yum install httpd
  6. Start the httpd service, and ensure it starts on boot:
    • On Red Hat Enterprise Linux 6:
      # service httpd start
      # chkconfig httpd on
    • On Red Hat Enterprise Linux 7:
      # systemctl start httpd.service
  7. In the root web server directory, create a directory in which to store the files for the installation medium:
    # mkdir /var/www/html/[directory_name]
  8. Create a temporary directory into which to mount the ISO file:
    # mkdir /RHEL7
  9. Mount the ISO file in the temporary directory:
    # mount -t iso9660 -o loop rhel-server-7.2-x86_64-dvd.iso /RHEL7
  10. Copy the contents of the temporary directory to the directory in which to store the files for the installation medium:
    # cp -dpR /RHEL7/* /var/www/html/[directory_name]
  11. Unmount the ISO file:
    # umount /RHEL7
  12. Remove the temporary directory in which you mounted the ISO file:
    # rmdir /RHEL7

3.2.2. Preparing an Installation Medium using NFS

Use an NFS share to host a Red Hat Enterprise Linux 7 installation medium. This procedure must be performed on the machine where the installation medium is to be hosted.

Procedure 3.3. Preparing an Installation Medium using NFS

  1. Go to https://access.redhat.com, and log in to the Red Hat Customer Portal using your customer account details.
  2. Click Downloads in the menu bar.
  3. Click Red Hat Enterprise Linux to access the product download page.
  4. Click RHEL 7.2 Binary DVD.
  5. Install the nfs-utils package:
    # yum install nfs-utils
  6. Create a directory to host the installation medium:
    # mkdir /[directory_name]
  7. Add the newly created directory to the /etc/exports file:
    /[directory_name]      *(rw)
  8. Export the directory:
    # exportfs -r
  9. Start the nfs and rpcbind services, and ensure they start on boot:
    • On Red Hat Enterprise Linux 6:
      # service nfs start
      # service rpcbind start
      # chkconfig nfs on
      # chkconfig rpcbind on
    • On Red Hat Enterprise Linux 7:
      # systemctl start nfs.service
      # systemctl start rpcbind.service
      # systemctl enable nfs.service
      # systemctl enable rpcbind.service
  10. Create a temporary directory into which to mount the ISO file:
    # mkdir /RHEL7
  11. Mount the ISO file in the temporary directory:
    # mount -t iso9660 -o loop rhel-server-7.2-x86_64-dvd.iso /RHEL7
  12. Copy the contents of the temporary directory to the directory in which to store the files for the installation medium:
    # cp -dpR /RHEL7/* /[directory_name]
  13. Unmount the ISO file:
    # umount /RHEL7
  14. Remove the temporary directory in which you mounted the ISO file:
    # rmdir /RHEL7