Install RHEL 7.2

Red Hat Enterprise Linux (RHEL) is a Linux operating system developed by Red Hat. RHEL is mainly aimed at commercial organisations. Red Hat Enterprise Linux is available for multiple platforms including x86, x86_64, PowerPC, IBM pSeries and IBM System z (Mainframe). RHEL 7.2 is the latest version available from Red Hat (released November 2015). RHEL can be downloaded from Red Hat as an evaluation copy giving you a free 30 day trial. The following guide may be used for installing a Red Hat 7 Minimal server. To register and download your evaluation copy of RHEL 7.2, simply follow this Link: Download RHEL 7.2

Once you have downloaded your iso image of RHEL 7.2, you will need to burn this to a blank DVD. For software that can do this, search for “dvd iso burning software” in the search box located towards the top of this page. Your computer may already have CD/DVD burning software installed such as “Brasero, K3B, Nero, CDBurnerXP or Roxio”. Once you have burned your “iso” image of RHEL 7.2 to your DVD, you will need to leave the DVD in the DVD drive and reboot your system. (Assuming that this machine is your intended target system for installation). As your computer reboots, you will need to press the appropriate key to access your system’s BIOS settings. On many systems this key will be “F8”, “F11” or “F12”. Most systems will display the a message indicating which key needs to be pressed. Once you have access to your BIOS settings, you will need to modify the boot sequence order of your system to boot from CD/DVD first. Once you have made this change, you can reboot your system and follow the instructions below. If you are installing into a Virtual environment, simply copy the iso image to the relevant folder.

RHEL 7.2 Installer


To start your installation of RHEL 7.2, highlight the “Install Red Hat Enterprise Linux 7.2” option and press enter. Your installation will now start.
RHEL 7.2 Installer Menu Screen

Test Media


It is always recommended that you test your media before carrying out an installation for the first time. If you wish to test your media, choose the option “Test this media and install Red Hat Enterprise Linux 7.2”. After a media check, your installation will start.


Welcome to Red Hat Enterprise Linux 7.2


At this screen you will need to choose the language that you would like to use during your installation. In this example, “English”, “English (United Kingdom)” has been chosen. Once you have made your selection, click on continue in the lower right hand corner of the screen.
RHEL 7.2 Choose Installation Language

Installation Summary


At this screen various options that can be configured are available. Any options that are highlighted must be addressed before you can continue. It is from this screen that you can configure your Localization, Security, Software and System settings. If all options are not displayed, you can scroll up and down the page.
RHEL 7.2 Installation Summary Screen

Date and Time


From this screen you you need to choose your location from either the map or the pull down menus. In this example “Europe” and “London” have been chosen. You can adjust the time and date by clicking on the relevant arrows in the lower left and right hand corners of the screen. You may also configure your system to use “NTP” for time synchronisation by clicking on the small gear icon in the upper right corner. (see step below)
RHEL 7.2 Date and Time Settings



If you have chosen to use a NTP server for server time synchronisation, then you will need to add the address/name of the server you wish to use. Before this step can be configured, you will need to configure your network settings first.
RHEL 7.2 Adding a NTP Server

Keyboard Layout


Your keyboard settings may be configured from this screen. Additional keyboard layouts may be added. If you have added additional keyboard layouts, you can move your chosen layout to the top of the list to make this the new default layout. The layout configuration may be tested by typing into the text box in the upper right hand corner. To add/delete or move layouts, simply use the relevant arrow keys in the lower left hand corner of the screen. Once you have made any changes, click on the “Done” button in the upper left hand corner of the screen.
RHEL 7.2 Keyboard Layout

Language Support


At this screen you need to verify or choose your Language settings. In the example, “English”, “English (United Kingdom) has been chosen. Click “Done” to continue.
RHEL 7.2 Language Settings

Security Policy


From this screen you can select a policy that matches your needs. In this example I have gone with the default policy.
RHEL 7.2 Select Security Policy

Installation Source


If you have booted from the standard iso image of RHEL 7.2, then no further action is required at this screen. Click on “Done” to continue.
RHEL 7.2 Installation Source

Software Selection


At this screen you can choose which “Base Environment” is to be used with your installation. In this example, “Minimal Install” has been selected. Any additional “Add-Ons” that are available may be selected from the right hand option menu. In this example, no “Add-Ons” have been selected. Click “Done” to continue.
RHEL 7.2 Base Environment Selection Screen

Installation Destination


This screen allows you to configure your disk partitioning layout. Two options are available. “Automatically configure partitioning” and “I will configure partitioning”. For this installation of RHEL 7.2, I am going to choose the option of manually configuring the disk partition layout “I will configure partitioning

For this installation I am going to create the following partitions using Logical Volume Management: Volume Groups (VG), Logical Volumes (LV) size of partition/file system in MB. You may wish to size your partitions/file systems differently to match your requirements. Note, as a rule of thumb, the swap size should be half the size of the physical memory. In this example I have set the swap size to be 1000MB as this RHEL system has 2GB of physical memory. The size of the disk used in this exercise has a capacity of 20GB.

Mount Point VG Name LV Name Size
/boot Standard Partition 500MB
/ sysVG rootLV 3000MB
swap sysVG swapLV 1000MB
/home sysVG homeLV 2000MB
/opt sysVG optLV 2000MB
/tmp sysVG tmpLV 1000MB
/var sysVG varLV 2000MB
/usr sysVG usrLV 3000MB
/spare sysVG spareLV 5975MB

Once you have selected the option “I will configure partitioning“, click on the “Done” button in the upper right of the screen.
RHEL 7.2 Manual Partitioning Scheme

Manual Partitioning


From this screen we can see that we have a “20GB” disk available to create our partitions/file systems. Available space is indicated in the lower left of the screen. To start creating our partitions and file systems, we will need to click on the “+” plus button in the lower left hand corner of the screen.
RHEL 7.2 Manual Disk Configuration and Partitioning

Add a New Mount Point


Each time you click on the click on the “+” plus button in the lower left hand corner of the screen, you will be presented with a small pop up menu. It is from this menu that you can select the “Mount Point” or enter the name of a mount point to create. You also need to specify the “Desired Capacity” to be used with each mount point.
RHEL 7.2 Creating a Mount Point

Create Boot Partition


The first partition we are going to create is the boot partition. The “Mount Point” can be selected from the drop down menu and the desired capacity can by typed into the “Desired Capacity” box. Once the details have been entered, click on Add Mount Point”. Notice, the Device Type is set to “Standard Partition” for a boot partition. A size of 500MB was specified.
RHEL 7.2 Create a Boot Partition

Adding Additional File systems


To add the remainder of our file systems, simply click on the + Plus button. Enter the appropriate values as per the table above. In this exercise we are going to change the default name of the Volume Group to be “sysVG“.
RHEL 7.2 Adding additional File Systems

The remainder of all file systems will have a Device Type of “LVM” a Volume Group of “sysVG“. To change the name of the default Volume Group from “rhel”, click on the “Modify” button. A Volume Group configuration box will appear. Simply change the name from the default to “sysVG“. The Logical Volume name is entered into the box “Name. For example, if you are creating the “/spare” filesystem, then the name “spareLV” will be used.

You will notice that a filesystem called “/spare” is to be created. This file system is created last as we are going to assign all remaining space to this filesystem (5975MB in this example). The reason we allocate the remaining space to “/spare” is to allow us to easily allocate this space back to the Volume Group “sysVG”. Once the system is built, we can remove this filesystem and all space will be then available to our system Volume Group “sysVG”. This space can then be given to any of the file systems within the Volume Group “sysVG”. Details of how to reclaim this space will be covered later. Once you have configured all the file systems, you should end up with a layout similar to the one below. Once you are happy with your configuration, click on “Done” to continue.
RHEL 7.2 Adding additional File systems

Summary of Changes


A summary of changes will now be displayed. If you need to make any modifications, then select “Cancel and Return to Custom Partitioning”. To continue, click on the “Accept Changes” button.
RHEL 7.2 Summary of Changes



“Kdump” is a mechanism that will allow in the event of a system crash information to be collected for determining the cause of a system crash. In this example, I have chosen to “Disable” kdump. To disable “kdump”, un-check the “Enable Kdump” option. Now click “Done” to continue with the installation.
RHEL 7.2 Disabling kdump Reporting

Configure Network and Hostname


At this screen we can enter the hostname to be used for our server and click on “Configure” to manually configure our network interfaces. If you do not wish to assign a static IP address to your system and you wish to use “DHCP” for the automatic allocation of an IP address, then you can simply click on the “OFF/ON” box in the upper right hand corner of the screen.

In this example, we are going to assign a static IP address. Generally all servers normally require a static IP address. This is an address that is assigned specifically to your server and will not change after a restart.

Host name in this box enter a unique name to identify your system on a network. In this example, I will be entering “rhel72srva”.

Click “Configure” to start configuring your network settings.
RHEL 7.2 Setting Hostname and Network Options

Configuring a Static IP Address


Next, you should see a “Pop-Up” menu where we are going to add our IP address, Netmask, Gateway and DNS server information. In the following example I will be using the following Network Addressing:

IP Address =
Netmask =
Gateway =
DNS Server =

You will need to enter your own details here. (Modify where necessary)

From the “Tabs” across the top of the menu, select “IPv4 Settings

From the “Method” pull down menu, select “Manual

Now click in the Address, Netmask and Gateway boxes and enter your settings.

Finally, give the name of your DNS Server

Once all settings have been entered, click “Save” to continue.
RHEL 7.2 Create Static IP Address

Activate Network Interface


To apply our static IP address information to our interface, click on the “ON/OFF” button in the upper right of the screen. Your interface should now activate. Confirmation of your active addressing information is displayed. Click on “Done” to continue.
RHEL 7.2 Activate Network Settings

Begin Installation


Once all our configuration settings have been entered, we are ready now to initiate the installation. This is done by clicking on the “Begin Installation” button in the lower right corner of the screen.
RHEL 7.2 Begin Installation

User Account Configuration


The next section of this installation involves defining the root password and creating a new user. Click on each of the highlighted options in turn to enter the requested information. Whilst you are entering the requested details, the installation will continue in the background.
RHEL 7.2 Account Creation

Root Password


You must specify a root password to be used for the administration of your system. Note, if you supply a weak password, you will be asked to press “Done” twice to confirm you have chosen a weak password!
RHEL 7.2 Root Password Entry

Create User


From this screen you must define the name of a user. In this example I have also chosen the use to be an “Administrator”. Again, if you supply a weak password, you will be asked to confirm this. Once you have supplied the relevant credentials, simply click “Done” to continue with the installation.
RHEL 7.2 Create First User

Installation Continues


At this point, no further action is required. Your installation will continue in the background. Progress will be displayed towards the bottom of the screen.
RHEL 7.2 Installation Progress Screen



Red Hat Enterprise Linux is now successfully installed. Your system needs to be re-booted before you can use it. Click on “Reboot” to finalise your installation. Remember to remove any media from your drives.
RHEL 7.2 Install Complete

Login Screen


At this screen you can now login to your server with the accounts you created earlier.
RHEL 7.2 Login Prompt

Verify your File systems


You can verify that the file systems that were created have been mounted by issuing the command df -h.
RHEL 7.2 Display Mounted File systems

Reclaim space by removing /spare


One of the earlier steps within the installation process was to assign any remaining space to a file system called /spare.

We are now going to remove this filesystem and the space will be allocated back to the “sysVG” Volume group.

The following steps need to be followed to free this space:

Unmount the filesystem “/spare by issuing the command: umount /spare

Remove the Logical Volume “spareLV” by issuing the command: lvremove /dev/sysVG/spareLV

Edit the file /etc/fstab and remove the following line:

/dev/mapper/sysVG-spareLV  /spare       xfs     defaults       0 0

You can issue the command “pvs“. You should now see space available within the Volume Group “sysVG” (5.84GB).

RHEL 7.2 Reclaim Space form File System

Display assigned IP address


To verify that we have the correct IP address that we assigned, you can issue the command: ip a s. You should now see output similar to the one below.
RHEL 7.2 Display IP Address

Register Installation with Red Hat


Before you can access any repositories from the Red Hat Network, you will need to register your system. In the example that follows, I will be registering a 30 day evaluation copy of RHEL 7.2.


[root@rhel72srva ~]# subscription-manager register
Registering to:
Username: xxxxxxxxxxx
The system has been registered with ID: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx 

You will need to specify the Username that you used to register with the Red Hat Network.

List Available Subscriptions


To list available subscriptions we can issue the command: subscription-manager list –available


[root@rhel72srva ~]# subscription-manager list --available
    Available Subscriptions
Subscription Name:   30 Day Red Hat Enterprise Linux Server Self-Supported Evaluation
Provides:            Red Hat Container Images Beta
                     Red Hat Beta
                     Red Hat Enterprise Linux Atomic Host Beta
                     Oracle Java (for RHEL Server)
                     Red Hat Container Images
                     Red Hat Enterprise Linux Server
                     Red Hat Enterprise Linux Atomic Host
SKU:                 RH00065
Contract:            12345678
Pool ID:             xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Provides Management: No
Available:           2
Suggested:           1
Service Level:       Self-Support
Service Type:        L1-L3
Subscription Type:   Instance Based
Ends:                07/12/15
System Type:         Physical


From the above we can see that we have a 30 day evaluation Subscription for RHEL 7.2


Add a Subscription


To add a subscription to our server we need to issue the following “subscription-manager” command along with the “Pool ID” that was obtained from the above output:

[root@rhel72srva ~]# subscription-manager subscribe --pool=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Successfully attached a subscription for: 30 Day Red Hat Enterprise Linux Server Self-Supported Evaluation


Verify Connection to Repositories


Now that you have activated your repositories, you can issue the “yum repolist command to confirm this.



[root@rhel72srva ~]# yum repolist
Loaded plugins: product-id, search-disabled-repos, subscription-manager
repo id                                           repo name                                                status
rhel-7-server-rpms/7Server/x86_64                 Red Hat Enterprise Linux 7 Server (RPMs)                 9,924
repolist: 9,924