Installation
πΏ RHEL 7 Installation Guide
π Module Overview
π― Complete RHEL 7 Installation & Configuration Process
This comprehensive guide covers the entire installation lifecycle of Red Hat Enterprise Linux 7, from pre-installation setup through post-installation verification using multiple installation methods.
π What This Module Covers
| File | Topic | Duration | Difficulty | Status |
|---|---|---|---|---|
| π₯οΈ 2. GUI Installation | Graphical installation method | β±οΈ 60-90 min | ||
| β¨οΈ 3. CLI Installation | Command-line installation method | β±οΈ 75-120 min | ||
| π§ 4. Disk Partitioning | Partition planning & configuration | β±οΈ 30-45 min | ||
| π 5. Network Configuration | Network setup during & after install | β±οΈ 30 min | ||
| π 6. Installation Options | PXE, Kickstart, automation | β±οΈ 90-180 min |
π₯ Quick Start: Pre-Installation
Essential Steps
β
Step 1: Download RHEL 7 ISO
ββ Size: ~3.8 GB
ββ From: Red Hat subscription or CentOS/Rocky Linux mirror
β
Step 2: Create Bootable Media
ββ Windows: Use Rufus (rufus.ie)
ββ Linux: Use dd command
ββ macOS: Use dd command
β
Step 3: Configure BIOS/UEFI
ββ Set boot order (USB/CD-ROM first)
ββ Enable virtualization (if using VMs)
ββ Disable Secure Boot (if needed)
β
Step 4: Choose Installation Method
ββ GUI Installation (Recommended for beginners)
ββ CLI Installation (Advanced users)
ββ PXE Network Boot (Enterprise/Mass deployment)
ββ Kickstart Automation (Unattended installation)
β
Step 5: Proceed to Selected Installation Guide
System Requirements
| Component | Minimum | Recommended |
|---|---|---|
| Processor | 1 GHz | Dual-core 2+ GHz |
| RAM | 512 MB | 4 GB or more |
| Disk Space | 10 GB | 50 GB SSD |
| Network | Optional | Gigabit Ethernet |
π― Installation Methods Comparison
| Method | Speed | Difficulty | Use Case | User Interaction |
|---|---|---|---|---|
| GUI Installation | Medium | Easy | Single system, learning | High (step-by-step) |
| CLI Installation | Medium | Intermediate | Single system, scripting | Medium (menu-driven) |
| PXE Boot | Fast | Advanced | Network deployment | Medium (if Kickstart) |
| Kickstart | Very Fast | Advanced | Mass deployment, automation | Very Low (automatic) |
π Installation Flow Diagram
βββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β START: RHEL 7 Installation Decision Tree β
ββββββββββββββββββββ¬βββββββββββββββββββββββββββββββββββ
β
ββββββββββββββββββββββββββββ
β Installation Method? β
ββββββββββββββββββββββββββββ
β β β
GUI CLI Network
β β (PXE)
β β β
βββββββββ βββββββββ ββββββββββ
β [2] β β [3] β β [6] β
β GUI β β CLI β β PXE & β
β Inst β β Inst β βKickst β
βββββββββ βββββββββ ββββββββββ
β β β
βββ [4] Disk Partitioning
βββ [5] Network Configuration
βββ Post-Installation Setup
β
[β] RHEL 7 Ready!
π Choose Your Installation Path
π¨βπΌ For GUI Enthusiasts (Graphical)
Recommended for: Beginners, single servers, learning purposes
Path: 2. GUI Installation
β Features:
- β Easy point-and-click interface
- β Visual disk partitioning
- β Step-by-step guidance
- β No command line required
- β ~60-90 minutes
π» For CLI Experts (Command Line)
Recommended for: Experienced users, automation, scripting
Path: 3. CLI Installation
β Features:
- β Full control via menu system
- β Advanced configuration options
- β Scriptable commands
- β Better for remote systems
- β ~75-120 minutes
π For Enterprise/Mass Deployment
Recommended for: Data centers, multiple servers, automation
Path: 6. Installation Options
β Features:
- β PXE Network boot (no media needed)
- β Kickstart automation (hands-free)
- β Deploy 100s of systems simultaneously
- β Consistent configurations
- β ~20-30 minutes per server
π Both Methods Use Common Components
Regardless of your chosen method, you'll need to understand:
- Disk Partitioning - How to plan and configure partitions
- Network Configuration - Setting up network connectivity
- Installation Options - Advanced methods and automation
β Post-Installation Checklist
After installation completes, verify:
β‘ System boots successfully
β‘ All partitions mounted correctly
β‘ Network connectivity working
β‘ Hostname configured
β‘ Date/Time correct
β‘ Services started
β‘ Updates available
β‘ SSH configured
β‘ Firewall enabled
β‘ SELinux status checked
π Navigation
β¬ οΈ Previous: Fundamentals Module
π Current Location: Installation Guide (You are here)
β‘οΈ Next Module: System Configuration
π Learning Paths
Path 1: Beginner (GUI Only)
Start β [2. GUI Installation] β [4. Disk Partitioning] β Complete
β
Easy to follow
β
No command line
β
Guided steps
Path 2: Intermediate (CLI + Advanced)
Start β [3. CLI Installation] β [5. Network Config] β [6. Options] β Complete
β
More control
β
Advanced features
β
Remote capability
Path 3: Expert (All Methods)
Start β [2. GUI] β [3. CLI] β [4. Partitioning] β [5. Network] β [6. Options] β Complete
β
Comprehensive knowledge
β
Enterprise ready
β
Mass deployment capable
π Additional Resources
- π Official RHEL Installation Guide: access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/installation_guide
- π Kickstart Reference: access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/security_guide
- π» PXE Boot Guide: access.redhat.com/articles
- π Training Resources: redhat.com/en/services/training
π Ready to start? Pick a topic from the subtopic sidebar to begin!
GUI Installation
π» RHEL 7 GUI Installation Guide
π Overview
π― Complete Graphical Installation of RHEL 7
This guide provides step-by-step instructions for installing Red Hat Enterprise Linux 7 using the graphical installer. Perfect for beginners and single-server deployments.
π₯ Prerequisites
β RHEL 7 ISO downloaded (~3.8 GB) β Bootable USB/DVD created β System with 10+ GB free disk space β BIOS configured with USB/DVD first in boot order β For network install: Active network connection available
π Part 1: Boot and Initial Setup
Step 1οΈβ£: Boot from Installation Media
Action:
1. Insert RHEL 7 installation DVD/USB into system
2. Power on or restart the computer
3. Enter boot menu during startup
ββ Press: Del, F2, F12, or Esc (varies by manufacturer)
4. Select DVD/USB drive as boot device
5. Press Enter to boot from media
Expected Result:
ββ RHEL 7 boot screen appears
ββ Anaconda installer loads
ββ System shows various boot options
Step 2οΈβ£: Welcome Screen
π· RHEL 7 Installation Welcome
Select Installation Language:
ββ Choose: English (US)
ββ Or select your preferred language
ββ Click "Continue" β
Step 3οΈβ£: Select Keyboard Layout
π· Keyboard Configuration
Keyboard Layout Selection:
ββ Default: English (US)
ββ Search for your layout if needed
ββ You can test by typing in the text field
ββ Click "Continue" β
β οΈ Note: This setting affects system-wide keyboard layout
Step 4οΈβ£: Select Language Support (Optional)
π· Language Support
Additional Languages (Optional):
ββ You can add multiple language packs
ββ Select additional languages needed
ββ Click "Continue" β
π‘ Tip: You can skip this for English-only setup
π₯οΈ Part 2: System Configuration
Step 5οΈβ£: Date and Time
π· Date & Time Settings
Configure Time:
ββ Region: Select your region
β ββ America, Europe, Asia, etc.
ββ City: Select your city/timezone
β ββ Automatic detection available
ββ NTP Service: Enable NTP (recommended)
β ββ Enables automatic time synchronization
ββ Click "Done" β
Example Configuration:
ββ Region: America
ββ City: New York
ββ NTP: Enabled
ββ Current Time: Mon Aug 15 14:30:00 2022
Step 6οΈβ£: Installation Destination (Partitioning)
π· Installation Destination
β οΈ CRITICAL STEP - This affects storage allocation
1. Select Storage Device:
ββ Choose the disk to install on
ββ β οΈ WARNING: All data on selected disk will be erased
ββ Confirm you've selected the correct disk
ββ Only one disk is usually recommended for beginners
2. Partitioning Strategy:
ββ Option A: "Automatic partitioning" (Recommended for beginners)
β ββ Anaconda auto-creates standard partitions
β
ββ Option B: "I will configure partitioning"
β ββ Manual partition creation (see section 4.Disk-Partitioning.md)
β
ββ Click "Done" β
Automatic Partitioning Creates:
ββ /boot: 500 MB (EXT4)
ββ /: 20-50 GB (XFS, default)
ββ swap: 1-4 GB
ββ /home: Remaining space (XFS)
ββ All properly formatted
Step 7οΈβ£: Network Configuration
π· Network & Hostname
Configure Network Connection:
1. Ethernet Configuration (if available):
ββ Click on "Configure..." next to interface
ββ Select connection type:
β ββ DHCP (Automatic - Recommended for beginners)
β β ββ System automatically gets IP from DHCP server
β β
β ββ Static IP (Manual - For fixed servers)
β ββ IP Address: 192.168.1.100
β ββ Netmask: 255.255.255.0
β ββ Gateway: 192.168.1.1
β ββ DNS Primary: 8.8.8.8
β ββ DNS Secondary: 8.8.4.4
β
ββ Click "Apply"
ββ Toggle connection "ON" (green button)
2. Set Hostname:
ββ Enter hostname: rhel7-server
β ββ Use DNS-compliant names
ββ Or: Leave as localhost and configure later
ββ Click "Apply"
3. Verification:
ββ Connection shows as "Connected"
ββ IP address is assigned (check if DHCP)
ββ Click "Done" β
π Network for Installation:
ββ Required if: Using URL installation or registering system
ββ Optional if: Using DVD/USB installation media
π¦ Part 3: Software Selection
Step 8οΈβ£: Base Environment
π· Software Selection
Choose Base Environment (Select ONE):
βββββββββββββββββββββββββββββββββββββββββββββββββββ
β β
RECOMMENDED FOR BEGINNERS β
β Server with GUI β
β ββ Includes GNOME Desktop Environment β
β ββ Graphical user interface for easy use β
β ββ Size: ~2-3 GB β
βββββββββββββββββββββββββββββββββββββββββββββββββββ
Other Options:
π΅ MINIMAL INSTALL (Recommended for servers)
ββ Base system only (~500 MB)
ββ No desktop environment
ββ Lightweight and fast
ββ Use command-line only
π΅ DESKTOP
ββ Desktop environment optimized for users
ββ Office/productivity tools included
ββ Size: ~3-4 GB
π΅ COMPUTE NODE
ββ For scientific computing
ββ High-performance libraries
ββ Size: ~2-3 GB
π΅ INFRASTRUCTURE SERVER
ββ For virtualization/cloud
ββ KVM virtualization included
ββ Size: ~2-3 GB
π΅ BASIC WEB SERVER
ββ Apache web server included
ββ PHP and scripting tools
ββ Size: ~1-2 GB
After Selection: Click "Next" β
Step 9οΈβ£: Add-On Software
π· Add-ons for Selected Environment
Optional: Select additional packages
Available Categories:
ββ Debugging Tools
β ββ gdb, lldb, strace
β ββ For development/troubleshooting
β
ββ Development Tools
β ββ gcc, git, cmake
β ββ For C/C++ development
β
ββ Performance Tools
β ββ perf, sysstat
β ββ System monitoring & analysis
β
ββ System Administration Tools
β ββ Network tools, admin utilities
β ββ For system management
β
ββ Security Tools
β ββ SELinux, cryptography tools
β ββ Enhanced security
β
ββ Smart Card Support
ββ For smart card authentication
ββ Usually not needed
π‘ For beginners: Leave these unchecked or select only "System Administration Tools"
After Selection: Click "Done" β
βοΈ Part 4: Pre-Installation Summary
Step π: Review Configuration
π· Installation Summary
Before Installation Begins, VERIFY:
β Localization:
ββ Language: English
ββ Keyboard: US
ββ Time Zone: America/New_York
β System:
ββ Installation Destination: /dev/sda (100 GB)
ββ Network: Connected
ββ Hostname: rhel7-server
β Software:
ββ Base Environment: Server with GUI
ββ Add-ons: (as selected)
ββ Total Size: ~3-4 GB
β οΈ FINAL CHECKS:
β‘ Correct disk selected (data will be erased)
β‘ Network configured (if needed)
β‘ Enough disk space available
β‘ All settings are correct
If Everything Looks Good:
ββ Click "Begin Installation" β
If You Need to Change Something:
ββ Click "Back" to modify settings
π§ Part 5: Installation in Progress
Step 1οΈβ£1οΈβ£: Installation Progress
π· Installation In Progress
What's Happening:
ββ Partitions are being created
ββ Base system packages are being installed
ββ Selected software packages are being installed
ββ Bootloader (GRUB2) is being installed
ββ System is being configured
Progress Indicators:
ββ Overall progress bar
ββ Current task description
ββ Package installation details
ββ Estimated time remaining
Typical Timeline:
ββ DVD Installation: 15-30 minutes
ββ USB Installation: 10-25 minutes
ββ Network Installation: Varies (depends on speed)
β οΈ DO NOT:
ββ Remove installation media during install
ββ Power off the system
ββ Interrupt the installation
ββ If interrupted, start over from Step 1
Status Messages You May See:
ββ "Setting up installation source"
ββ "Installing packages"
ββ "Checking disc space"
ββ "Installing bootloader"
ββ "Finalizing installation"
π€ Part 6: Post-Installation Configuration
Step 1οΈβ£2οΈβ£: Create Root Password
π· Root Password Setup
β οΈ CRITICAL: This is the system administrator password
Enter Root Password:
ββ Password: (type strong password - not visible)
ββ Confirm: (retype password)
ββ Requirements:
ββ Minimum 6 characters (8+ recommended)
ββ Mix of uppercase, lowercase, numbers, symbols
ββ Not easy to guess (avoid: password, 123456, qwerty)
ββ Different from username
ββ Write it down safely (store securely)
Example Strong Password:
ββ R3dH@t!2022Srv (uppercase, lowercase, numbers, symbols)
β οΈ WARNING:
ββ If you forget root password, system recovery is difficult
ββ Store password securely
ββ Consider writing it in a password manager
After entering both passwords:
ββ Click "Done" β
Step 1οΈβ£3οΈβ£: Create User Account
π· Create User Account
Optional but Recommended: Create non-root user for daily use
User Information:
ββ Full Name: John Administrator
ββ Username: admin
β ββ Lowercase, no spaces
β ββ Used for login
ββ Password: (strong password)
ββ Confirm: (retype password)
ββ Same requirements as root password
Permissions Options:
ββ β Make this user administrator (unchecked by default)
β ββ If checked: Can use 'sudo' to run admin commands
β ββ Recommended to check for primary user
β
ββ β Require a password to use this account
ββ Leave checked (security best practice)
Best Practices:
ββ Always create a regular user account
ββ Use regular account for daily work
ββ Use root only when necessary
ββ Make yourself administrator if primary user
ββ Don't share user account
Example Setup:
ββ Full Name: System Administrator
ββ Username: admin
ββ Password: MyStr0ng!Pass
ββ Make this user administrator: β Checked
After Entering All Information:
ββ Click "Done" β
Step 1οΈβ£4οΈβ£: Accept License
π· License Agreement
Red Hat Subscription Agreement:
Read the Red Hat Subscription Agreement:
ββ Agreement text is displayed
ββ Describes terms of RHEL use
ββ Important for compliance
Accept License:
ββ β I accept the license agreement
β ββ Check this checkbox
ββ Only then can you continue
β οΈ Note:
ββ You must accept to continue installation
ββ Terms are legally binding
ββ Review if concerned about compliance
After Accepting:
ββ Click "Done" β
Step 1οΈβ£5οΈβ£: Complete Installation
π· Installation Complete
Congratulations Message Appears:
ββ "Congratulations, your RHEL installation is complete"
ββ Click "Reboot" to restart system
ββ Remove installation media when prompted
Final Steps:
1. Click "Reboot"
2. If prompted: Remove USB/DVD
3. Press Enter to continue
4. System boots into newly installed RHEL 7
π₯οΈ Part 7: First Boot and Login
Step 1οΈβ£6οΈβ£: Initial Boot
After Reboot:
1. RHEL 7 Kernel Loads:
ββ "Red Hat Enterprise Linux 7" appears
ββ Boot messages scroll
ββ Takes 30-60 seconds
2. GRUB2 Bootloader Menu (if multiple OSes):
ββ Shows installed kernels
ββ Default kernel selected (highlighted)
ββ Automatically boots after timeout
ββ Press arrow key to select different option
3. System Services Start:
ββ Systemd initializes services
ββ Network connections established
ββ Logging system starts
ββ Takes another 30-60 seconds
4. Login Screen Appears:
ββ Shows "RHEL 7 Workstation" (if GUI selected)
ββ User list displayed (if available)
ββ Ready for login
Step 1οΈβ£7οΈβ£: First Login
π· Login to System
Option 1: GUI Login (if Server with GUI selected)
ββ Click on user account created during installation
ββ Enter password
ββ Desktop environment loads
Option 2: Text Login (if Minimal Install selected)
ββ At login prompt, type username: admin
ββ Press Enter
ββ At password prompt, enter password
ββ Press Enter
ββ Command prompt appears
After Successful Login:
ββ User directory initialized
ββ Home folder created: /home/admin
ββ Configuration files created
ββ System ready for use
β Post-Installation Verification
Verify Installation Success
# Check RHEL version
cat /etc/redhat-release
# Output: Red Hat Enterprise Linux Server release 7.9 (Maipo)
# Check kernel version
uname -r
# Output: 3.10.0-1160.el7.x86_64
# Check filesystem
df -h
# Output shows all partitions mounted
# Check hostname
hostname
# Output: rhel7-server (or your configured hostname)
# Check network
ip addr show
# Output shows IP address(es)
# Check services
systemctl status
# Output shows system status
π Bonus: RHEL 9.x GUI Installation Walkthrough
π‘ This walkthrough covers installing RHEL 9.3 (Kernel 5.14) using the graphical installer via the no-cost Red Hat Developer Subscription. The flow is very similar to the RHEL 7 steps above, with a few differences: a redesigned installer summary screen and Red Hat subscription registration at the end.
π Adapted from: How to Download and Install RHEL 9.3 for Free β TecMint
Step 0οΈβ£: Download RHEL 9 for Free
- Create a Red Hat account β go to access.redhat.com, click Register, and fill in your details.

- Sign in to the Developer Portal β go to developers.redhat.com and sign in with your Red Hat account.
- Open the RHEL 9 download page and click the download button.

- The RHEL 9.3 ISO (~8 GB) download will begin.

β οΈ Tip: the ISO is ~8 GB. You can instead download the smaller Boot ISO (<1 GB) and provide a subscription during installation to pull packages over the network.
- Create a bootable USB β use a 16 GB drive and a tool like
ddor UnetBootin, then set the USB first in the BIOS boot order.
Step 1οΈβ£: Start RHEL 9 Installation
On reboot, the GRUB boot menu appears. Press ENTER on Install Red Hat Enterprise Linux 9.3.

The installer loads with a stream of boot messages β no action needed, just wait.

Select your preferred language and click Continue.

Step 2οΈβ£: Configure Partitioning
The installation summary is split into four sections:
- LOCALIZATION
- SOFTWARE
- SYSTEM
- USER SETTINGS

Click Installation Destination under SYSTEM.

- Select Automatic to let the wizard partition the disk, or Custom for manual partitioning.
- Select your hard disk and click Done.
With Custom partitioning, the LVM scheme is selected by default (fine to keep). Click the + button to add partitions.

Create the following example partitions:
| Mount Point | Size |
|---|---|
| /boot | 500 MB |
| /home | 20 GB |
| / | 15 GB |
| swap | 8 GB |

The /boot partition now appears in the table.

Repeat the same steps for /home, /, and swap, then click Done.

Click Accept Changes on the summary pop-up.

Step 3οΈβ£: Configure User Settings
Click Root Password and set (unlock) the root account with a strong password, then click Done.


Then create a regular login user via User creation.

Provide the username and password and click Done.

Click Begin Installation.

The installer copies packages from the ISO to the disk β this takes a while.

When installation completes, click Reboot System.

Step 4οΈβ£: Boot Into Red Hat Enterprise Linux 9
After reboot, select the first GRUB entry pointing to Red Hat Enterprise Linux 9.

Enter your user password at the login screen.

You can take the quick tour or skip it and go to the desktop.

You are now in the GNOME 42 desktop environment.

Step 5οΈβ£: Enable Red Hat Subscription
Register the system with your Red Hat account credentials:
$ sudo subscription-manager register --username=username --password=password
$ sudo subscription-manager attach --auto
Confirm the registration:
$ sudo subscription-manager list --installed

You can manage your No-Cost RHEL subscription from the Red Hat Subscription Management Portal.

β You now have a fully licensed RHEL 9 system receiving software, security updates, and bug fixes β at no cost.
π Navigation
β¬ οΈ Previous: 1. Installation Overview
π Current Location: 2. GUI Installation (You are here)
Next Steps:
- π§ 4. Disk Partitioning - Learn manual partitioning
- π 5. Network Configuration - Configure networking
- β¨οΈ 3. CLI Installation - Alternative method
πΊοΈ Full Path: Introduction β Fundamentals β Installation (β GUI Installation) β System Configuration
π Additional Resources
- π Official RHEL 7 Installation Guide: access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/installation_guide
- π Installation Best Practices: access.redhat.com/articles
- π» GNOME Desktop Configuration: help.gnome.org
- π Red Hat Training: redhat.com/en/services/training
π Ready to start? Pick a topic from the subtopic sidebar to begin!
CLI Installation
π₯οΈ RHEL 7 CLI Installation Guide
π Overview
π― Complete Command-Line Installation of RHEL 7
This guide provides step-by-step instructions for installing Red Hat Enterprise Linux 7 using the text-mode (CLI) installer. Ideal for experienced users, remote systems, and server deployments without GUI.
π₯ Prerequisites
β RHEL 7 ISO downloaded (~3.8 GB) β Bootable USB/DVD created β System with 10+ GB free disk space β BIOS configured with USB/DVD first in boot order β Familiarity with command-line basics β For network install: Active network connection
π Part 1: Boot and Language Selection
Step 1οΈβ£: Boot from Installation Media
Action:
1. Insert RHEL 7 installation DVD/USB
2. Power on or restart system
3. Enter boot menu (Del, F2, F12, or Esc)
4. Select DVD/USB as boot device
5. Press Enter to boot
Expected Output:
ββ RHEL 7 bootloader appears
ββ Boot options shown
ββ Installer begins loading
Step 2οΈβ£: Boot Options Menu
π· RHEL 7 Boot Menu
At the boot screen, you'll see options:
ββββββββββββββββββββββββββββββββββββββββββ
β RHEL 7 Installation β
β β
β [1] Install Red Hat Enterprise Linux 7 β
β [2] Test this media & install β
β [3] Troubleshooting β
ββββββββββββββββββββββββββββββββββββββββββ
For CLI Installation:
β Select Option [1] "Install Red Hat Enterprise Linux 7"
β Press Enter
Note: System will detect it's not a GUI environment
β Will automatically launch TEXT MODE installer
Step 3οΈβ£: Language Selection
π· Language Selection
βββββββββββββββββββββββββββββββββββ
β Welcome to RHEL 7 β
β Language Selection β
β β
β English (US) β default β
β English (UK) β
β EspaΓ±ol β
β FranΓ§ais β
β Deutsch β
β ... β
βββββββββββββββββββββββββββββββββββ
Action:
ββ Use arrow keys to navigate
ββ Select your preferred language
β ββ Default: English (US)
ββ Press Enter to continue
π‘ Tip: English (US) recommended for consistency
βοΈ Part 2: Text Mode Installer Menu
Step 4οΈβ£: Main Menu Overview
π· RHEL 7 Text Mode Installer
βββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Red Hat Enterprise Linux 7 - Text Mode Setup β
βββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β β
β [1] Language [ OK ] [Edit] β
β [2] Keyboard Layout [ OK ] [Edit] β
β [3] Installation Destination [NOT SET] [Edit] β
β [4] Network & Hostname [NOT SET] [Edit] β
β [5] Time & Date [ OK ] [Edit] β
β [6] Root Password [NOT SET] [Edit] β
β [7] User Creation [NOT SET] [Edit] β
β [8] Installation Options [CUSTOM] [Edit] β
β β
β [c] Continue Installation β
β [q] Quit Installation β
β β
βββββββββββββββββββββββββββββββββββββββββββββββββββββ
Legend:
ββ [OK]: Configuration is set and correct
ββ [NOT SET]: Required configuration missing
ββ [CUSTOM]: Custom configuration detected
ββ [Edit]: Click or type number to modify
Step 5οΈβ£: Configure Keyboard Layout
π· Keyboard Configuration
βββββββββββββββββββββββββββββββββββββββ
β Keyboard Layout Selection β
β β
β [1] us (United States) β Default β
β [2] uk (United Kingdom) β
β [3] de (German) β
β [4] fr (French) β
β ... β
β β
β Select keyboard layout [1]: _ β
βββββββββββββββββββββββββββββββββββββββ
Steps:
ββ Type number of your keyboard layout
β ββ Default: 1 (US)
ββ Press Enter
Verification:
ββ Should show as [OK] in main menu
Step 6οΈβ£: Configure Time Zone
π· Time & Date Configuration
ββββββββββββββββββββββββββββββββββββββββ
β Time & Date β
β β
β Region: [America] β Edit β
β City: [New_York] β Edit β
β Timezone: UTC-5 β
β NTP Service: [Enabled] β
β β
β Current Time: Wed Jul 21 14:32:00 β
β β
β [OK] [Cancel] β
ββββββββββββββββββββββββββββββββββββββββ
Configuration Steps:
1. Select Region:
ββ Enter 'r' for Region selection
ββ Choose: America, Europe, Asia, etc.
ββ Enter corresponding number
2. Select City:
ββ Enter 'c' for City selection
ββ Choose: New_York, Los_Angeles, etc.
ββ Enter corresponding number
3. NTP Service:
ββ Enable NTP (Recommended)
ββ Keeps system time synchronized
After Configuration:
ββ Press Enter to return to main menu
ββ Should show [OK] status
Step 7οΈβ£: Configure Network & Hostname
π· Network & Hostname Configuration
ββββββββββββββββββββββββββββββββββββββ
β Network & Hostname β
β β
β Hostname: [localhost] [Edit] β
β Network Devices: [Not configured] β
β β
β [OK] [Cancel] β
ββββββββββββββββββββββββββββββββββββββ
Configuration Steps:
1. Set Hostname:
ββ Type: rhel7-server
ββ DNS-compliant name recommended
ββ Avoid special characters/spaces
2. Configure Network Interface:
ββ Select ethernet device (e.g., eth0, enp0s3)
ββ Choose DHCP (automatic) OR Static
β
ββ DHCP Configuration:
β ββ Automatically gets IP from server
β ββ Best for learning/testing
β
ββ Static IP Configuration:
ββ IP Address: 192.168.1.100
ββ Netmask: 255.255.255.0
ββ Gateway: 192.168.1.1
ββ DNS1: 8.8.8.8
ββ DNS2: 8.8.4.4
After Configuration:
ββ Should show as [OK]
πΎ Part 3: Disk Partitioning
Step 8οΈβ£: Installation Destination
π· Installation Destination (Disk Selection)
ββββββββββββββββββββββββββββββββββββββββ
β Installation Destination β
β β
β Disks: β
β β sda (100 GB) VBOX HARDDISK β
β β sdb (50 GB) SEAGATE ST3000DM001 β
β β
β Partitioning Strategy: β
β β Automatic Partitioning (default) β
β β― Manual Partitioning β
β β
β [OK] [Cancel] β
ββββββββββββββββββββββββββββββββββββββββ
Steps:
1. Select Storage Device:
ββ Check β next to disk to install on
ββ Usually /dev/sda for single disk
ββ β οΈ All data will be erased!
2. Choose Partitioning Strategy:
a) AUTOMATIC (Recommended for beginners):
ββ Anaconda creates standard partitions
ββ /boot: 500 MB
ββ /: 20-50 GB (remaining)
ββ swap: 1-4 GB
ββ /home: Remaining space (if enough)
b) MANUAL (Advanced users):
ββ See 4.Disk-Partitioning.md for details
ββ Full control over partition layout
ββ Use: fdisk, parted, or GUI partition editor
ββ Create custom partition scheme
For CLI Installation:
β Select "Automatic Partitioning"
β Should be simpler and faster
After Selection:
ββ Should show [OK]
ββ Review summary carefully
π€ Part 4: User and Security Configuration
Step 9οΈβ£: Set Root Password
π· Root Password Configuration
ββββββββββββββββββββββββββββββββββββββ
β Root Password β
β β
β Password (not visible): β
β ________________ β
β β
β Confirm Password: β
β ________________ β
β β
β [OK] [Cancel] β
ββββββββββββββββββββββββββββββββββββββ
β οΈ CRITICAL: Root is the system administrator
Requirements:
ββ Minimum 6 characters (8+ recommended)
ββ Mix of uppercase, lowercase, numbers, symbols
ββ Example: R3dH@t!2022
ββ Write it down and store securely
Password Quality Checker:
ββ System shows password strength
ββ Green (Strong): βββββ - Excellent
ββ Yellow (Medium): βββ - Acceptable
ββ Red (Weak): β - Poor (not recommended)
Steps:
1. Enter Root Password:
ββ Type strong password
ββ Press Tab to confirm field
2. Confirm Password:
ββ Retype the exact same password
ββ If not matching, system prompts to retry
β οΈ If you forget root password:
ββ System recovery is very difficult
ββ May require rescue mode
ββ Document password securely!
After Entry:
ββ Press Enter or select [OK]
ββ Should show [OK] in main menu
Step π: Create User Account
π· User Account Creation
ββββββββββββββββββββββββββββββββββββββββ
β User Creation β
β β
β Full Name: John Administrator β
β Username: admin β
β Password: ________________ β
β Confirm: ________________ β
β Make Administrator: [x] Checked β
β β
β [OK] [Cancel] β
ββββββββββββββββββββββββββββββββββββββββ
Best Practices:
ββ Create non-root user for daily use
ββ Don't use root for normal tasks
ββ Reserve root for administration
ββ Improves security and stability
Configuration:
1. Full Name:
ββ Enter: John Administrator
ββ Displayed in system logs/emails
2. Username:
ββ Enter: admin
ββ Used for login (lowercase recommended)
ββ No spaces or special characters
3. Password:
ββ Same requirements as root password
ββ Example: MyStr0ng!Pass123
4. Make Administrator:
ββ β Checked = Can use 'sudo' command
ββ β Unchecked = Regular user only
ββ Recommended to check for primary user
After Entry:
ββ Press Enter or select [OK]
ββ Should show [OK] in main menu
π¦ Part 5: Installation Options
Step 1οΈβ£1οΈβ£: Software Selection
π· Installation Options / Software Selection
ββββββββββββββββββββββββββββββββββββββββ
β Installation Options β
β β
β Installation Type: β
β β Minimal Install (default) β
β β― Development and Creative β
β β― Server β
β β― Server with GUI β
β β
β Additional Software: β
β β Development Tools β
β β System Administration Tools β
β β Debugging Tools β
β β Performance Tools β
β β
β [OK] [Cancel] β
ββββββββββββββββββββββββββββββββββββββββ
Recommendations for CLI Installation:
MINIMAL INSTALL (Recommended):
ββ Base system only (~500 MB)
ββ No desktop environment
ββ Lightweight and fast
ββ Ideal for servers
ββ Total install time: ~10-15 minutes
SERVER (Alternative):
ββ Web server components
ββ Database tools
ββ Admin utilities
ββ Total size: ~1-2 GB
Optional Add-ons (Select as needed):
β Development Tools:
ββ gcc, g++, make
ββ For C/C++ development
ββ Size: ~300-400 MB
β System Administration Tools:
ββ Network tools, ssh, utilities
ββ Essential for system management
ββ Size: ~50-100 MB
β Debugging Tools:
ββ gdb, strace
ββ For troubleshooting
After Selection:
ββ Press Enter or select [OK]
ββ Should show custom configuration
β Part 6: Ready to Install
Step 1οΈβ£2οΈβ£: Final Review
π· Final Configuration Review
VERIFY BEFORE PROCEEDING:
β Language: English (US)
β Keyboard: us
β Installation Destination: /dev/sda (100 GB)
β Partitioning: Automatic
β Network & Hostname: DHCP, rhel7-server
β Time & Date: America/New_York, UTC-5
β Root Password: [SET]
β User Account: admin [SET]
β Installation Type: Minimal Install
β Additional Software: Development Tools, Sys Admin Tools
β οΈ FINAL CHECKLIST:
β‘ Correct disk selected (data will be ERASED)
β‘ All settings are correct
β‘ Installation media is present
β‘ Ready to commit to installation
MAIN MENU STATUS:
βββββββββββββββββββββββββββββββββββββββββββββ
β All items should show [OK] β
β β
β [1] Language [OK] β
β [2] Keyboard Layout [OK] β
β [3] Installation Destination [OK] β
β [4] Network & Hostname [OK] β
β [5] Time & Date [OK] β
β [6] Root Password [OK] β
β [7] User Creation [OK] β
β [8] Installation Options [CUSTOM] β
β β
β [c] Continue Installation β
β [q] Quit Installation β
βββββββββββββββββββββββββββββββββββββββββββββ
Step 1οΈβ£3οΈβ£: Begin Installation
π· Start Installation
When ready to begin:
1. In main menu, press 'c' (or select "Continue Installation")
2. System will display:
"The following disks will be used:
/dev/sda (100 GB) - All data will be erased
Continue? [y/n]"
3. Type 'y' and press Enter to confirm
4. Installation begins immediately
β οΈ POINT OF NO RETURN:
ββ At this point, data deletion begins
ββ Aborting will result in partial installation
ββ Make absolutely sure all settings are correct
If you need to change something:
β Type 'n' to cancel
β Return to main menu
β Make corrections
β Start again
π§ Part 7: Installation Progress
Step 1οΈβ£4οΈβ£: Installation Process
π· Installation in Progress
What's Happening:
1. Partitioning Disk:
ββ Creating partitions on /dev/sda
ββ Creating filesystems (ext4, xfs)
ββ Mounting filesystems
2. Installing Base System:
ββ Downloading packages from media/network
ββ Installing core Linux packages
ββ Installing kernel
ββ Installing system libraries
3. Installing Additional Packages:
ββ Selected software packages
ββ Development tools (if selected)
ββ System utilities
ββ Administrative tools
4. Post-Installation:
ββ Installing bootloader (GRUB2)
ββ Configuring system
ββ Running post-scripts
ββ Finalizing installation
Progress Display:
Package installation: [ββββββββββββββββββ] 45%
Current package: glibc-2.17-260.el7.x86_64
Time remaining: ~8 minutes
Typical Timeline:
ββ DVD Installation: 15-25 minutes
ββ USB Installation: 10-20 minutes
ββ Network Installation: 20-40 minutes (varies)
ββ SSD: Faster than HDD
β οΈ DO NOT:
ββ Remove installation media
ββ Restart or shut down the system
ββ Interrupt the installation
ββ Close terminal window (if remote)
If Installation Fails:
ββ System displays error message
ββ Details shown in /tmp/anaconda.log
ββ Can exit and try again
ββ May need to start from beginning
π₯οΈ Part 8: Post-Installation and First Boot
Step 1οΈβ£5οΈβ£: Installation Complete
π· Installation Complete
Upon successful completion:
System displays:
ββ "Installation complete!"
ββ Eject installation media message
ββ "Rebooting in 60 seconds..."
ββ System countdown timer
Manual Actions:
1. Remove Installation Media:
ββ Press Eject button on DVD drive, OR
ββ Remove USB drive, OR
ββ Press 'any key' if prompted
ββ Within 60-second countdown
2. System Reboots:
ββ RHEL 7 kernel loads
ββ Boot messages scroll
ββ Login prompt appears
If you need more time:
ββ Press 'any key' before countdown ends
Step 1οΈβ£6οΈβ£: First Boot
π· System First Boot
Boot Messages You'll See:
Loading RHEL 7 kernel...
Starting systemd...
[ OK ] Started system logging service.
[ OK ] Started SSH service.
...
<distro> login: _
Timeline:
ββ GRUB2 boot menu: 2-3 seconds
ββ Kernel loads: 5-10 seconds
ββ Services start: 20-30 seconds
ββ Ready for login: ~40-60 seconds total
System Initialization:
ββ Filesystem checks (if needed)
ββ Services starting (systemd units)
ββ Network configuration
ββ Logging initialization
ββ Ready for user login
Step 1οΈβ£7οΈβ£: First Login
π· First System Login
Text-Mode Login Prompt:
<distro> login: _
Login as Regular User:
1. At prompt, type username:
ββ <distro> login: admin
ββ Press Enter
2. At password prompt, enter password:
ββ Password: ____________
ββ (Password is hidden as you type)
ββ Press Enter
3. Successful login shows:
ββ $ (regular user prompt), OR
ββ # (root user prompt)
Example Successful Login:
<distro> login: admin
Password:
Last login: Wed Jul 21 14:32:00 UTC 2022 on tty1
[admin@rhel7-server ~]$ _
Alternate: Login as Root:
1. At prompt, type: root
2. Enter root password
3. Shows: root@rhel7-server #
β οΈ Root Login Notes:
ββ Possible but not recommended
ββ Use sudo from regular user instead
ββ More secure
View System Information:
$ cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.9 (Maipo)
$ uname -r
3.10.0-1160.el7.x86_64
$ hostname
rhel7-server
$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 50G 2.0G 48G 4% /
/dev/sda1 500M 63M 437M 13% /boot
β Post-Installation Verification
Verify Installation Success
# Check RHEL version
$ cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.9 (Maipo)
# Check kernel version
$ uname -r
3.10.0-1160.el7.x86_64
# Check filesystem
$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 50G 2.0G 48G 4% /
/dev/sda1 500M 63M 437M 13% /boot
/dev/sda3 100G 2.1G 98G 2% /home
# Check hostname
$ hostname
rhel7-server
# Check network
$ ip addr show
eth0: <BROADCAST,MULTICAST,UP,LOWER_UP>
inet 192.168.1.100/24 brd 192.168.1.255
# Check services
$ systemctl status
State: running
Units: 206 loaded, 1 loaded but inactive
# List partitions
$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 100G 0 disk
ββsda1 8:1 0 500M 0 part /boot
ββsda2 8:2 0 50G 0 part /
ββsda3 8:3 0 2G 0 part [SWAP]
ββsda4 8:4 0 47.5G 0 part /home
π Navigation
β¬ οΈ Previous: 1. Installation Overview
π Current Location: 3. CLI Installation (You are here)
Next Steps:
- π§ 4. Disk Partitioning - Learn advanced partitioning
- π 5. Network Configuration - Post-install network setup
- π» 2. GUI Installation - Alternative graphical method
πΊοΈ Full Path: Introduction β Fundamentals β Installation (β CLI Installation) β System Configuration
π Additional Resources
- π Official RHEL 7 Installation Guide: access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/installation_guide
- π Anaconda Installer Documentation: access.redhat.com/documentation
- π» Linux Command Reference: man7.org/linux/man-pages
- π Red Hat Training: redhat.com/en/services/training
π Ready to start? Pick a topic from the subtopic sidebar to begin!
Disk Partitioning
π§ RHEL 7 Disk Partitioning Guide
π Overview
π― Master Disk Partitioning for RHEL 7
This guide covers partition planning, creation, and configuration strategies for optimal RHEL 7 installation. Understand partition types, sizing recommendations, and manual partitioning procedures.
π Partitioning Fundamentals
What is a Partition?
A partition is a logical division of a physical disk into independent sections.
Each partition can have its own:
ββ Filesystem (Ext4, XFS, etc.)
ββ Mount point (/, /home, /var, etc.)
ββ Size (512 MB, 10 GB, etc.)
ββ Purpose (boot, root, data, swap)
Analogy:
Physical Disk = Large Storage Building
Partitions = Individual Storage Rooms
Each Room = Independent filesystem
Partition Types
Primary Partitions π΅
Maximum: 4 per disk
Purpose: Bootable or main storage
Uses: Boot partition, root filesystem, data
Example:
ββ /dev/sda1 (Primary) β /boot
ββ /dev/sda2 (Primary) β /
ββ /dev/sda3 (Primary) β /home
Extended Partitions π£
Maximum: 1 per disk
Purpose: Container for logical partitions
Cannot be used for data directly
Acts as a wrapper
Example:
ββ /dev/sda4 (Extended Container)
ββ /dev/sda5 (Logical)
ββ /dev/sda6 (Logical)
ββ /dev/sda7 (Logical)
Logical Partitions π‘
Maximum: Unlimited (within extended)
Purpose: Overcome 4-partition limitation
Created inside extended partition
Example:
ββ /dev/sda4 (Extended)
ββ /dev/sda5 β /var
ββ /dev/sda6 β swap
ββ /dev/sda7 β /opt
π― Partition Planning
Standard RHEL 7 Partitions
| Mount | Size | Purpose | Filesystem |
|---|---|---|---|
| /boot | 500 MB - 1 GB | Kernel & bootloader files | Ext4 |
| / | 20-50 GB | Root filesystem, system files | XFS |
| /var | 5-20 GB | Logs, caches, spool | XFS |
| /tmp | 1-5 GB | Temporary files (cleared on reboot) | XFS |
| /home | 50+ GB | User directories | XFS |
| swap | 1-8 GB | Virtual memory (1.5-2x RAM) | Swap |
Special Consideration Partitions
| Mount | Size | When Needed | Purpose |
|---|---|---|---|
| /usr | 10-20 GB | Desktop installs | User programs & libraries |
| /opt | 5+ GB | Third-party software | Optional packages |
| /srv | Variable | Web/FTP servers | Service data |
πΎ Disk Space Allocation
Calculate Swap Size
Recommended Swap Sizing:
If RAM β€ 2 GB:
ββ Swap = RAM Γ 2
ββ Example: 1 GB RAM β 2 GB Swap
ββ Minimum: 2 GB
If RAM 2-8 GB:
ββ Swap = RAM Γ 1.5
ββ Example: 4 GB RAM β 6 GB Swap
ββ Usually sufficient
If RAM 8+ GB:
ββ Swap = RAM Γ 1 to 0.5
ββ Example: 16 GB RAM β 8-16 GB Swap
ββ Depends on workload
If RAM > 32 GB:
ββ Swap = 4-8 GB
ββ Modern systems rarely use swap
ββ Still recommended for safety
Example Disk Allocation Scenarios
Scenario 1: Minimal Server (10 GB disk)
Total Disk: 10 GB
Partitions:
ββ /boot: 500 MB
ββ /: 7 GB
ββ swap: 2.5 GB
ββ Total: 10 GB
Best For: Small VMs, testing environments
Scenario 2: Standard Server (50 GB disk)
Total Disk: 50 GB
Partitions:
ββ /boot: 1 GB
ββ /: 25 GB
ββ /var: 10 GB
ββ /home: 10 GB
ββ swap: 4 GB
ββ Total: 50 GB
Best For: Production servers, general use
Scenario 3: Large Database Server (200 GB disk)
Total Disk: 200 GB
Partitions:
ββ /boot: 1 GB
ββ /: 30 GB
ββ /var: 20 GB
ββ /tmp: 10 GB
ββ /home: 20 GB
ββ /opt: 30 GB
ββ /srv: 80 GB (database storage)
ββ swap: 9 GB
ββ Total: 200 GB
Best For: Database servers, high I/O workloads
π₯οΈ Partitioning Strategies
Strategy 1: Automatic Partitioning (Beginner)
Anaconda creates standard partitions automatically
Pros:
β
Simple and fast
β
No technical knowledge needed
β
Good default layout
β
Recommended for beginners
Cons:
β Less control
β May not suit all needs
β Limited customization
When to Use:
ββ First-time installations
ββ Testing environments
ββ Single-purpose servers
ββ Quick deployments
Anaconda Auto-Creates:
ββ /boot: ~500 MB
ββ /: Remaining space
ββ swap: 1-4 GB
ββ Sometimes /home if large disk
Strategy 2: Standard Manual Partitioning (Recommended)
Manual creation with standard partitions
Pros:
β
Good balance of control and simplicity
β
Production-recommended
β
Protects against full /var or /home
β
Flexible sizing
Cons:
β Requires planning
β Some manual work needed
When to Use:
ββ Production servers
ββ Multi-purpose systems
ββ Where stability is important
ββ Most enterprise deployments
Standard Layout:
ββ /boot: Primary partition (500 MB - 1 GB)
ββ /: Primary partition (20-50 GB)
ββ /var: Primary partition (5-20 GB)
ββ Extended partition (container)
β ββ /home: Logical partition (remaining)
β ββ swap: Logical partition (2-8 GB)
ββ Total: 50-100 GB
Strategy 3: Advanced Custom Partitioning (Expert)
Fine-grained control for specific needs
Pros:
β
Maximum control
β
Optimized for specific workloads
β
Separates everything
β
Best for high-performance
Cons:
β Complex planning required
β Difficult to modify later
β Higher management overhead
When to Use:
ββ Database servers
ββ High-traffic web servers
ββ HPC (High-Performance Computing)
ββ Custom deployments
ββ Expert administrators only
Advanced Layout:
ββ /boot: 1 GB (Primary)
ββ /: 15 GB (Primary)
ββ /var: 20 GB (Primary)
ββ Extended partition
β ββ /var/log: 30 GB (Logical)
β ββ /tmp: 10 GB (Logical)
β ββ /home: 50 GB (Logical)
β ββ /opt: 20 GB (Logical)
β ββ /srv: 50 GB (Logical)
β ββ swap: 8 GB (Logical)
ββ Total: 200+ GB
π¨ Manual Partitioning Steps
Step 1: Open Partition Editor
In GUI Installer:
1. At Installation Destination screen
2. Select: "I will configure partitioning"
3. Click "Done"
4. Anaconda opens partition editor
In CLI Installer:
1. From main menu, select: Installation Destination
2. Choose: Manual Partitioning
3. Click "Configure"
4. Partition editor opens
Step 2: Create Partitions
Create /boot Partition
Partition Details:
ββ Mount Point: /boot
ββ Type: Standard Partition
ββ Size: 500 MB - 1 GB
ββ Filesystem: ext4
ββ Device: /dev/sda1
ββ Label: boot
Steps in GUI:
1. Click "+" to add partition
2. Enter Mount Point: /boot
3. Select Filesystem: ext4
4. Set Size: 1000 (MB)
5. Click "Update Settings"
Steps in CLI:
# Create partition
fdisk /dev/sda
> n (new partition)
> p (primary)
> 1 (partition number)
> (First cylinder - press Enter)
> +1000M (size: 1000 MB)
> t (change type)
> 1 (partition 1)
> 83 (Linux type)
> w (write changes)
Format:
# mkfs.ext4 /dev/sda1
Create / (Root) Partition
Partition Details:
ββ Mount Point: /
ββ Type: Standard Partition
ββ Size: 20-50 GB
ββ Filesystem: xfs (recommended)
ββ Device: /dev/sda2
ββ Label: root
Steps in GUI:
1. Click "+" to add partition
2. Enter Mount Point: /
3. Select Filesystem: xfs
4. Set Size: 30000 (MB for 30 GB)
5. Click "Update Settings"
Steps in CLI:
# Create partition
fdisk /dev/sda
> n (new)
> p (primary)
> 2 (partition 2)
> (First cylinder - press Enter)
> +30G (size: 30 GB)
> w (write)
Format:
# mkfs.xfs /dev/sda2
Create /var Partition
Partition Details:
ββ Mount Point: /var
ββ Type: Standard Partition
ββ Size: 5-20 GB
ββ Filesystem: xfs
ββ Device: /dev/sda3
ββ Label: var
Steps in GUI:
1. Click "+" to add partition
2. Enter Mount Point: /var
3. Select Filesystem: xfs
4. Set Size: 10000 (MB for 10 GB)
5. Click "Update Settings"
Steps in CLI:
# Create partition
fdisk /dev/sda
> n (new)
> p (primary)
> 3 (partition 3)
> (First cylinder - press Enter)
> +10G (size: 10 GB)
> w (write)
Format:
# mkfs.xfs /dev/sda3
Create Extended Partition (For Remaining)
Partition Details:
ββ Type: Extended Partition
ββ Device: /dev/sda4
ββ Purpose: Container for logical partitions
Steps in CLI:
# Create extended partition
fdisk /dev/sda
> n (new)
> e (extended)
> 4 (partition 4)
> (First cylinder - press Enter)
> (Last cylinder - press Enter for all remaining)
> w (write)
Create /home Partition
Partition Details:
ββ Mount Point: /home
ββ Type: Logical Partition (within extended)
ββ Size: Remaining space (or set specific size)
ββ Filesystem: xfs
ββ Device: /dev/sda5
ββ Label: home
Steps in GUI:
1. Click "+" to add partition
2. Enter Mount Point: /home
3. Select Filesystem: xfs
4. Set Size: Leave empty for "fill remaining"
5. Click "Update Settings"
Steps in CLI:
# Create logical partition
fdisk /dev/sda
> n (new)
> l (logical - auto after extended)
> (First cylinder - press Enter)
> +remaining_size or leave blank for all
> w (write)
Format:
# mkfs.xfs /dev/sda5
Create Swap Partition
Partition Details:
ββ Mount Point: (none - type: swap)
ββ Type: Logical Partition
ββ Size: 2-8 GB (depends on RAM)
ββ Filesystem: swap
ββ Device: /dev/sda6
ββ Purpose: Virtual memory
Steps in GUI:
1. Click "+" to add partition
2. Leave Mount Point empty
3. Select Filesystem: swap
4. Set Size: 4000 (MB for 4 GB)
5. Click "Update Settings"
Steps in CLI:
# Create swap partition
fdisk /dev/sda
> n (new logical)
> (First cylinder - press Enter)
> +4G (size: 4 GB)
> t (change type)
> 6 (partition 6)
> 82 (swap type)
> w (write)
Create Swap:
# mkswap /dev/sda6
Step 3: Review Partition Layout
Final Partition Table:
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 2099199 2097152 1G 83 Linux
/dev/sda2 2099200 65019903 62920704 30G 83 Linux
/dev/sda3 65019904 86089727 21069824 10G 83 Linux
/dev/sda4 86089728 104857599 18767872 9G 5 Extended
/dev/sda5 86089728 102857599 16767872 8G 83 Linux
/dev/sda6 102857600 104857599 2000000 1G 82 Linux swap
Verify:
β /boot: 1 GB, ext4, primary
β /: 30 GB, xfs, primary
β /var: 10 GB, xfs, primary
β /home: 8 GB, xfs, logical
β swap: 1 GB, swap, logical
β No unallocated space
β Total: ~50 GB
β οΈ Important Considerations
Filesystem Selection
Ext4 - When to Use:
β
Legacy systems
β
Maximum compatibility needed
β
Older hardware
β
Traditional deployments
β Not default in RHEL 7+
XFS - When to Use (Recommended for RHEL 7):
β
Production servers
β
Large files (> 1 GB)
β
High I/O workloads
β
Database systems
β
Default in RHEL 7+
Partition Size Cautions
β οΈ Too Small Partitions:
ββ System hangs when partition full
ββ Difficult to recover
ββ /var full = logs stop working
ββ / full = system won't boot
β οΈ Unbalanced Allocation:
ββ Large / with small /var = /var fills up
ββ Large /home with small / = / fills up
ββ Need to plan carefully
β
Best Practices:
ββ /var should be 10-20% of total disk
ββ Leave 10% free space on each partition
ββ Monitor disk usage regularly
ββ Plan growth for future
π Navigation
β¬ οΈ Previous: 3. CLI Installation
π Current Location: 4. Disk Partitioning (You are here)
β‘οΈ Next Step: 5. Network Configuration
Next Topics:
- π 5. Network Configuration - Network setup
- π 6. Installation Options - Advanced methods
πΊοΈ Full Path: Introduction β Fundamentals β Installation (β Disk Partitioning) β System Configuration
π Additional Resources
- π RHEL 7 Storage Administration: access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/storage_administration_guide
- π fdisk Manual: man7.org/linux/man-pages/man8/fdisk.8.html
- π§ parted Manual: man7.org/linux/man-pages/man8/parted.8.html
- π XFS Filesystem: xfs.wiki.kernel.org
- πΎ Ext4 Documentation: kernel.org/doc/html/latest/filesystems/ext4
π Ready to start? Pick a topic from the subtopic sidebar to begin!
Network Configuration
π RHEL 7 Network Configuration Guide
π Overview
π― Master Network Configuration for RHEL 7
This guide covers network setup during installation, post-installation network configuration, IP addressing methods, DNS configuration, and troubleshooting common connectivity issues.
π Network Fundamentals
IP Address Types
DHCP (Dynamic Host Configuration Protocol)
What It Does:
ββ Automatically assigns IP addresses
ββ Assigns gateway, netmask, DNS
ββ Leases IP for limited time
ββ Simplest for most users
When to Use:
β
Home networks
β
Lab/test environments
β
Desktop workstations
β
Learning/training systems
β Production servers (unreliable)
How It Works:
1. System boots
2. Sends DHCP discovery broadcast
3. DHCP server responds with IP offer
4. System accepts offer
5. IP address assigned temporarily
6. Client renews lease periodically
Advantages:
β
Automatic configuration
β
No manual IP management
β
Works immediately
β
Requires no planning
Disadvantages:
β IP can change after reboot
β Not suitable for servers
β Requires DHCP server on network
Static IP (Manual Configuration)
What It Does:
ββ Uses fixed IP address
ββ Requires manual configuration
ββ IP never changes
ββ Permanent until changed manually
When to Use:
β
Production servers
β
Mail servers
β
Web servers
β
Database servers
β
Any system needing consistent IP
β Not for temporary machines
Required Information:
ββ IP Address (e.g., 192.168.1.100)
ββ Netmask (e.g., 255.255.255.0)
ββ Gateway (e.g., 192.168.1.1)
ββ DNS1 (e.g., 8.8.8.8)
ββ DNS2 (e.g., 8.8.4.4)
Advantages:
β
Reliable, never changes
β
Essential for servers
β
DNS can point to it
β
Better for remote access
Disadvantages:
β Requires manual configuration
β IP conflicts possible
β More setup work
π₯ Network Configuration During Installation
GUI Network Setup
Step 1: Access Network Configuration
π· Network & Hostname (GUI Installer)
In Installation Summary screen:
1. Click "Network & Hostname" section
2. Right panel shows options
3. Default: Connected (or Not connected)
Step 2: Configure Network Interface
π· Available Network Devices
Left Panel (Available Interfaces):
ββ eth0 (Ethernet)
ββ eth1 (if multiple NICs)
ββ lo (Loopback - skip this)
ββ Click on device to configure
Right Panel (Configuration Options):
ββ ON/OFF toggle (top right)
ββ Configure button
ββ Connection name
ββ Status display
Step 3: Choose Configuration Method
π· IPv4 Settings
Two Options Available:
Option 1: DHCP (Automatic) - Default
ββ Select "Automatic (DHCP)"
ββ System will auto-discover settings
ββ No manual entry needed
ββ Click "Apply"
Option 2: Static IP (Manual)
ββ Select "Manual"
ββ Enter IP address
ββ Enter netmask
ββ Enter gateway
ββ Enter DNS servers
ββ Click "Apply"
Step 4: Static IP Configuration
π· Manual Static IP Setup
Fields to Fill (if selecting Manual):
1. IP Address:
ββ Example: 192.168.1.100
ββ Must be unique on network
2. Netmask (or Prefix):
ββ Example: 255.255.255.0 (or /24)
ββ Defines network range
3. Gateway (Router):
ββ Example: 192.168.1.1
ββ Default route for outbound traffic
4. DNS Servers:
ββ Primary DNS: 8.8.8.8 (Google)
ββ Secondary DNS: 8.8.4.4 (Google)
ββ Or use your ISP/company DNS
Configuration Example:
βββββββββββββββββββββββββββββββββββββββ
β Network Configuration β
β β
β IPv4 Settings: β
β β Automatic (DHCP) β
β β Manual β
β β
β If Manual selected: β
β IP Address: 192.168.1.100/24 β
β Gateway: 192.168.1.1 β
β DNS: 8.8.8.8, 8.8.4.4 β
β β
β [Apply] [Cancel] β
βββββββββββββββββββββββββββββββββββββββ
Step 5: Set Hostname
π· Hostname Configuration
Hostname Field:
ββ Enter system hostname
ββ Example: rhel7-server
ββ Or: rhel7-web01.example.com
ββ DNS-compliant names recommended
ββ No spaces, use hyphens
ββ Click "Apply"
Hostname Rules:
β
Lowercase letters (a-z)
β
Numbers (0-9)
β
Hyphens (-)
β Spaces
β Underscores
β UPPERCASE recommended against
β Special characters
Step 6: Verify Connection
π· Connection Status
After Configuration:
Look for:
ββ Device status: "Connected"
ββ IP address shown (if DHCP)
ββ Green indicator next to device
ββ "Connected" message
If Not Connected:
ββ Check cable connected
ββ Verify configuration correct
ββ Try toggling OFF/ON
ββ Check DHCP server available
π₯οΈ CLI Network Configuration
Text Mode Network Setup
Step 1: Access Network Menu
π· RHEL 7 Text Installer Network Menu
From Main Installation Menu:
1. Select: Network & Hostname
2. Displays current configuration
3. Options to configure
Step 2: Configure Interface
π· Interface Selection
Available Interfaces:
ββ eth0 (or enp0s3, enp3s0, etc.)
ββ eth1 (if multiple NICs)
ββ Select interface to configure
Format: [#] interface_name
Example: [1] eth0
Step 3: DHCP Configuration
π· DHCP Setup (Automatic)
Steps:
1. Select "Automatic (DHCP)"
ββ System will request IP from DHCP server
2. Wait for configuration
ββ DHCP request sent
ββ Server responds
ββ IP assigned (usually within seconds)
3. Verify:
ββ Shows assigned IP address
ββ Shows netmask
ββ Shows gateway
ββ Status: Connected
Display:
Interface: eth0
Status: Connected
IP Address: 192.168.1.50
Netmask: 255.255.255.0
Gateway: 192.168.1.1
DNS: 8.8.8.8
Step 4: Static IP Configuration
π· Static IP (Manual) Setup
Steps:
1. Select "Manual" or "Static"
ββ Prompts for manual entry
2. Enter IP Address:
ββ Prompt: "IP Address: "
ββ Enter: 192.168.1.100
ββ Press Enter
3. Enter Netmask:
ββ Prompt: "Netmask: "
ββ Enter: 255.255.255.0
ββ Press Enter
4. Enter Gateway:
ββ Prompt: "Gateway: "
ββ Enter: 192.168.1.1
ββ Press Enter
5. Enter DNS (Primary):
ββ Prompt: "DNS1: "
ββ Enter: 8.8.8.8
ββ Press Enter
6. Enter DNS (Secondary):
ββ Prompt: "DNS2: "
ββ Enter: 8.8.4.4
ββ Press Enter
7. Confirm:
ββ "Apply configuration? [y/n]"
ββ Enter: y
ββ Configuration saved
βοΈ Post-Installation Network Configuration
Configure Network After Installation
Using nmcli (Network Manager CLI)
# View all interfaces
nmcli device status
# Output:
# DEVICE TYPE STATE CONNECTION
# eth0 ethernet disconnected --
# lo loopback unmanaged --
# View all connections
nmcli connection show
# Bring interface up
nmcli device connect eth0
# Show connection details
nmcli connection show "eth0"
Using GUI (Network Manager)
Steps:
1. Click Network icon (top right)
2. Select "Wired" or connection name
3. Click "Settings" or gear icon
4. Modify IPv4 settings
5. Save changes
6. Connection may need to restart
Manual Configuration (systemctl/network scripts)
# View network configuration
cat /etc/sysconfig/network-scripts/ifcfg-eth0
# Typical Configuration File:
TYPE=Ethernet
BOOTPROTO=dhcp
NAME=eth0
UUID=...
DEVICE=eth0
ONBOOT=yes
# For Static IP:
TYPE=Ethernet
BOOTPROTO=none
IPADDR=192.168.1.100
NETMASK=255.255.255.0
GATEWAY=192.168.1.1
DNS1=8.8.8.8
DNS2=8.8.4.4
NAME=eth0
DEVICE=eth0
ONBOOT=yes
# Restart networking
systemctl restart network
# Or for single interface
ifdown eth0
ifup eth0
Verify Network Connectivity
# Check IP address
ip addr show
# Or old command:
ifconfig
# Check routing
ip route show
# Or old command:
route -n
# Check DNS resolution
cat /etc/resolv.conf
# Shows DNS servers being used
# Test DNS
nslookup google.com
# Or:
dig google.com
# Test connectivity
ping 8.8.8.8
# Google's public DNS - reliable test
# Test internet access
curl https://www.google.com
# Or:
wget -O- http://example.com
π§ Network Configuration Files
Key Network Configuration Files
/etc/sysconfig/network
# System-wide network settings
# NETWORKING=yes # Enable/disable networking
# HOSTNAME=rhel7-server
# View file:
cat /etc/sysconfig/network
# Edit:
sudo vi /etc/sysconfig/network
/etc/sysconfig/network-scripts/ifcfg-eth0
# Per-interface configuration
# Example DHCP Configuration:
TYPE=Ethernet
BOOTPROTO=dhcp
NAME=eth0
UUID=12345678-1234-1234-1234-123456789012
DEVICE=eth0
ONBOOT=yes
# Example Static IP Configuration:
TYPE=Ethernet
BOOTPROTO=none
NAME=eth0
UUID=12345678-1234-1234-1234-123456789012
DEVICE=eth0
ONBOOT=yes
IPADDR=192.168.1.100
PREFIX=24
GATEWAY=192.168.1.1
DNS1=8.8.8.8
DNS2=8.8.4.4
# View file:
cat /etc/sysconfig/network-scripts/ifcfg-eth0
# Edit:
sudo vi /etc/sysconfig/network-scripts/ifcfg-eth0
# Reload configuration:
sudo systemctl restart network
/etc/resolv.conf
# DNS resolver configuration
# Example content:
nameserver 8.8.8.8
nameserver 8.8.4.4
search example.com
domain example.com
# View DNS servers:
cat /etc/resolv.conf
# Note: In RHEL 7, this may be auto-generated
# by NetworkManager or DHCP
/etc/hostname
# System hostname (single line file)
# View current hostname:
cat /etc/hostname
# Output: rhel7-server
# Change hostname:
sudo hostnamectl set-hostname mynewname
# Or edit:
sudo vi /etc/hostname
# Then restart:
sudo systemctl restart systemd-hostnamed
π IP Addressing Quick Reference
Common IP Subnets
Private IP Ranges (RFC 1918):
ββ 10.0.0.0/8 (10.0.0.0 - 10.255.255.255)
ββ 172.16.0.0/12 (172.16.0.0 - 172.31.255.255)
ββ 192.168.0.0/16 (192.168.0.0 - 192.168.255.255)
Common Home/Office Networks:
ββ 192.168.1.0/24 (192.168.1.0 - 192.168.1.255)
ββ 192.168.0.0/24 (192.168.0.0 - 192.168.0.255)
ββ 10.0.0.0/24 (10.0.0.0 - 10.0.0.255)
Loopback (Local Machine):
ββ 127.0.0.1 (localhost)
Netmask Reference
Netmask CIDR Hosts
255.255.255.0 /24 256 (254 usable)
255.255.255.128 /25 128 (126 usable)
255.255.255.192 /26 64 (62 usable)
255.255.255.224 /27 32 (30 usable)
255.255.255.240 /28 16 (14 usable)
255.255.254.0 /23 512 (510 usable)
255.255.252.0 /22 1024 (1022 usable)
255.255.0.0 /16 65536 (65534 usable)
π Network Troubleshooting
Common Network Issues
Issue: No Network Connection
# Diagnostic Steps:
1. Check if interface is up
ip link show eth0
# Look for: <BROADCAST,MULTICAST,UP,LOWER_UP>
2. Check if interface has IP
ip addr show eth0
# Should show: inet 192.168.x.x/24
3. Bring interface up if down
sudo ip link set eth0 up
4. Check service status
systemctl status NetworkManager
systemctl status network
5. Check configuration file
cat /etc/sysconfig/network-scripts/ifcfg-eth0
# Verify ONBOOT=yes, BOOTPROTO settings
6. Restart network service
sudo systemctl restart network
# Or for NetworkManager:
sudo systemctl restart NetworkManager
7. Check for errors
sudo journalctl -u network -n 50
Issue: Wrong IP Address
# If using DHCP but no IP:
1. Request new DHCP lease
sudo dhclient -r eth0 # Release current lease
sudo dhclient eth0 # Request new lease
2. Check DHCP server connection
ping 192.168.1.1 (gateway)
# If no gateway, DHCP may not work
3. Check DHCP configuration
sudo vi /etc/sysconfig/network-scripts/ifcfg-eth0
# Should show: BOOTPROTO=dhcp
# If using Static IP:
1. Verify configuration
cat /etc/sysconfig/network-scripts/ifcfg-eth0
# Check: IPADDR, NETMASK, GATEWAY
2. Restart network
sudo systemctl restart network
3. Verify new IP applied
ip addr show
Issue: DNS Not Working
# Test DNS resolution:
1. Check DNS servers configured
cat /etc/resolv.conf
# Should show nameserver entries
2. Test name resolution
nslookup google.com
# Should return IP address
3. Test with ping
ping google.com
# If works: DNS fine
# If fails: Check DNS servers
4. Fix DNS (Method 1 - nmcli):
nmcli connection modify eth0 ipv4.dns "8.8.8.8 8.8.4.4"
nmcli connection up eth0
5. Fix DNS (Method 2 - Edit config):
sudo vi /etc/sysconfig/network-scripts/ifcfg-eth0
# Add: DNS1=8.8.8.8
# DNS2=8.8.4.4
sudo systemctl restart network
6. Verify DNS working
nslookup google.com
β Network Verification Checklist
# After installation, verify:
β‘ Interface is up
ip link show
β‘ IP address assigned
ip addr show
# Should show: inet 192.168.x.x
β‘ Gateway configured
ip route show
# Should show: default via 192.168.x.x
β‘ DNS servers set
cat /etc/resolv.conf
# Should show nameserver entries
β‘ DNS working
nslookup google.com
# Should return IP
β‘ Internet connectivity
ping 8.8.8.8
# Should get responses
β‘ Hostname configured
hostname
# Should show your hostname
β‘ Network service running
systemctl status network
# Should show: active (running)
If all checks pass:
β
Network configuration successful!
π Navigation
β¬ οΈ Previous: 4. Disk Partitioning
π Current Location: 5. Network Configuration (You are here)
β‘οΈ Next Step: 6. Installation Options
Previous Topics:
- π» 2. GUI Installation - Graphical method
- β¨οΈ 3. CLI Installation - Command-line method
- π§ 4. Disk Partitioning - Partition setup
πΊοΈ Full Path: Introduction β Fundamentals β Installation (β Network Configuration) β System Configuration
π Additional Resources
- π RHEL 7 Networking Guide: access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/networking_guide
- π NetworkManager Documentation: developer.gnome.org/NetworkManager
- π§ nmcli Reference: man7.org/linux/man-pages/man1/nmcli.1.html
- π» ip Command: man7.org/linux/man-pages/man8/ip.8.html
- π DNS Configuration: access.redhat.com/articles
π Ready to start? Pick a topic from the subtopic sidebar to begin!
Installation Options
π RHEL 7 Advanced Installation Options
π Advanced Installation Methods
π PXE Network Boot (Preboot Execution Environment)
Use Case: Deploy multiple systems over network without USB/CD media
Prerequisites:
- DHCP server
- TFTP server
- HTTP/FTP server for installation files
- Network connectivity to installation repository
Key Benefits:
- β No physical media required
- β Deploy 100s of systems simultaneously
- β Centralized management
- β Consistent configurations
- β Ideal for data centers
π€ Kickstart Automation
Use Case: Fully automated, hands-free installation
Prerequisites:
- Kickstart configuration file (.ks)
- Web or FTP server hosting the file
- PXE boot environment (optional)
Key Benefits:
- β Completely automated installation
- β Zero user interaction
- β Reproducible deployments
- β Perfect for scripting and CI/CD
- β Enterprise-grade consistency
Sample Kickstart Commands:
# Basic settings
install
keyboard us
lang en_US.UTF-8
timezone America/New_York
rootpw mypassword
reboot
# Network configuration
network --bootproto=dhcp --device=ens0 --onboot=on
# Partitioning
part / --size=10000
part swap --size=2000
# Package selection
%packages
@core
@development
vim
wget
%end
π‘ Remote Installation Methods
SSH Installation:
- Remote console access
- Ideal for headless servers
- Full installation over network
VNC Installation:
- Graphical interface remotely
- Better for complex configurations
- Network-based GUI
IPMI/iLO:
- Integrated Lights-Out management
- Remote power and console control
- Enterprise data centers
π§ Comparison of Advanced Methods
| Method | Speed | Effort | Best For | Enterprise Ready |
|---|---|---|---|---|
| PXE Boot | β‘ Fast | π‘ Medium | Network deployment | β Yes |
| Kickstart | β‘β‘ Very Fast | π’ Low (automated) | Mass deployment | β Yes |
| SSH Remote | π‘ Medium | π‘ Medium | Single servers | β Yes |
| VNC Remote | π‘ Medium | π High | Complex setups | β Yes |
π Additional Resources
- π Official RHEL Installation Guide: access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/installation_guide
- π Kickstart Reference: access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/security_guide
- π» PXE Boot Guide: access.redhat.com/articles
- π Training Resources: redhat.com/en/services/training
- π» Anaconda Installer: fedoraproject.org/wiki/Anaconda
β Congratulations! You've Completed the Installation Module
You have successfully mastered multiple installation methods:
β
GUI Installation (Graphical method)
β
CLI Installation (Command-line method)
β
Disk Partitioning strategies
β
Network Configuration
β
PXE Network boot
β
Kickstart automation
You are now ready for system configuration and advanced topics!
β‘οΈ Continue to System Configuration β