3.4. Preparing the Installation Medium

The installer requires an installation medium. An installation medium is a source of files 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.
If you do not have an installation medium already setup, create your own web server on the installer host to store and share Red Hat Enterprise Linux 7 installation medium.

Important

This procedure must be performed on the installer host after completing the rhel-osp-installer configuration script. This is because the rhel-osp-installer script writes over any existing httpd settings with its own configuration during the installation process. This procedure modifies these settings after rhel-osp-installer writes its own httpd configuration.

Procedure 3.7. 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. Create a temporary directory into which to mount the ISO file:
    # mkdir /RHEL7
  6. Mount the ISO file in the temporary directory:
    # mount -t iso9660 -o loop rhel-server-7.2-x86_64-dvd.iso /RHEL7
  7. 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/.
  8. Unmount the ISO file:
    # umount /RHEL7
  9. Remove the temporary directory in which you mounted the ISO file:
    # rmdir /RHEL7
  10. Set the permissions for the installation medium:
    # chmod -R 755 /var/www/html/RHEL7/
  11. Create a new file at /etc/httpd/conf.d/medium.conf and add the following configuration to it:
    Listen 8120
    NameVirtualHost *:8120
    <VirtualHost *:8120>
    	DocumentRoot /var/www/html/
    	ServerName www.example.com
    	<Directory "/var/www/html/">
    		Options All Indexes FollowSymLinks
    		Order allow,deny
    		Allow from all
    	</Directory>
    </VirtualHost>
    
    This exposes an accessible location on port 8120 (unassigned port) of the web server, which contains the RHEL7 folder with the installation medium.
  12. Add a rule to your firewall configuration to allow access to port 8120, then restart the firewall:
    # iptables -I INPUT 1 -p tcp -m multiport --ports 8120 -m comment --comment "8120 accept - medium" -j ACCEPT
    # iptables-save > /etc/sysconfig/iptables
    # systemctl restart iptables.service
    
  13. Allow HTTP access for port 8120 in SELinux:
    # semanage port -a -t http_port_t -p tcp 8120
    
  14. Restart your web server:
    # systemctl restart httpd.service
    
The installation medium is now available for the Red Hat Enterprise Linux OpenStack Platform installer to access. Test access to the installation medium by navigating to http://www.example.com:8120/RHEL7/, which displays a listing of Red Hat Enterprise Linux 7 files and folders.