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
- Go to https://access.redhat.com, and log in to the Red Hat Customer Portal using your customer account details.
- Click in the menu bar.
- Click Red Hat Enterprise Linux to access the product download page.
- Click
RHEL 7.2 Binary DVD. - Install the Apache web server on the machine on which to host the installation medium:
# yum install httpd
- Start the
httpdservice, 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
- 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]
- Create a temporary directory into which to mount the ISO file:
# mkdir /RHEL7
- Mount the ISO file in the temporary directory:
# mount -t iso9660 -o loop rhel-server-7.2-x86_64-dvd.iso /RHEL7
- 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]
- Unmount the ISO file:
# umount /RHEL7
- 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
- Go to https://access.redhat.com, and log in to the Red Hat Customer Portal using your customer account details.
- Click in the menu bar.
- Click Red Hat Enterprise Linux to access the product download page.
- Click
RHEL 7.2 Binary DVD. - Install the nfs-utils package:
# yum install nfs-utils
- Create a directory to host the installation medium:
# mkdir /[directory_name]
- Add the newly created directory to the
/etc/exportsfile:/[directory_name] *(rw)
- Export the directory:
# exportfs -r
- Start the
nfsandrpcbindservices, 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
- Create a temporary directory into which to mount the ISO file:
# mkdir /RHEL7
- Mount the ISO file in the temporary directory:
# mount -t iso9660 -o loop rhel-server-7.2-x86_64-dvd.iso /RHEL7
- 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]
- Unmount the ISO file:
# umount /RHEL7
- Remove the temporary directory in which you mounted the ISO file:
# rmdir /RHEL7