In this tutorial, we’ll guide you through the step-by-step installation of RHEL9 on KVM. The process is uncomplicated, and we’ll present it in a format
Learn how to install Rocky Linux 9.5 in 12 easy steps with this comprehensive guide. Follow our step-by-step instructions, including CLI examples, to set up your system quickly and efficiently. Perfect for beginners and experienced users alike!
Rocky Linux has become a popular choice for those looking for a stable, community-driven, enterprise grade Linux distribution, especially after CentOS shifted focus to CentOS Stream. Rocky Linux 9.5, based on RHEL (Red Hat Enterprise Linux), is an ideal operating system for servers and workstations
alike. Whether you’re setting up a server for production or simply testing the operating system in a virtual environment, this guide will walk you through the entire process. In this blog post, we’ll guide you through the process of installing Rocky Linux 9.5 in 12 easy steps, helping you get started with a clean installation.
Before we begin, ensure that you have:
Requirement | Details |
---|---|
Machine Specifications | A compatible physical or virtual machine with at least 2GB of RAM and 20GB of disk space. |
USB Drive or Network Installation | A USB drive (minimum 12GB) or a network-based installation. |
Rocky Linux 9.5 ISO Image | A Rocky Linux 9.5 ISO image (available from the official Rocky Linux website). |
Tool for Writing ISO to USB | A tool to write the ISO to USB (e.g., Rufus, Etcher, or dd). |
Step 1: Download the Rocky Linux 9.5 ISO |
First, visit the official Rocky Linux download page to get the latest stable version of Rocky Linux 9.5.
Choose the appropriate version |
Photo by admingeek from Infotechys
Choose the ISO based on your needs and download it to your local machine.
Step 2: Create a Bootable USB Drive |
Once you have the ISO image, you need to create a bootable USB drive. You can do this on Windows, macOS, or Linux.
On Windows: |
On Linux (Using dd command): |
sudo dd if=/path/to/RockyLinux9.5.iso of=/dev/sdX bs=4M status=progress && sync
Replace /dev/sdX
with the correct path for your USB drive (e.g., /dev/sdb
). Be cautious with the dd
command as selecting the wrong drive can erase data.
Step 3: Boot From the USB Drive |
Photo by admingeek from Infotechys
Step 4: Select Installation Language |
Once the system boots from the USB drive, you’ll be greeted by the Rocky Linux 9.5 Installer. The first step is to choose the installation language.
Photo by admingeek from Infotechys
Select your preferred language from the list (e.g., English). Click Continue to proceed.
Step 5: Configure Keyboard Layout |
In the Installation Summary window, click on the Keyboard option. Select your preferred keyboard layout, and click Done.
Photo by admingeek from Infotechys
Example: For a U.S. keyboard layout, select English (US). This will already be your default setting.
Step 6: Configure Timezone and Date/Time Settings |
Click on the Time & Date option to set your timezone. The system will typically auto-detect your location based on the system’s IP address. Choose your timezone from the list (e.g., America/New_York
). You can configure NTP (Network Time Protocol) to ensure the system’s time is synchronized.
Photo by admingeek from Infotechys
Click Done to save your settings.
Step 7: Set Installation Destination |
Click on Installation Destination to select the disk where Rocky Linux will be installed. Select the disk where you want to install Rocky Linux (e.g., /dev/sda
).
You can choose to use the entire disk or set up custom partitions using Custom.
Photo by admingeek from Infotechys
Recommended Partition Layout (for new users): |
Photo by admingeek from Infotechys
Click Done after selecting the disk and partition scheme and then, click the Accept Changes button to continue.
Network and Hostname Settings |
Next, configure your network settings. Click on Network & Hostname to:
rocky-vm1
). It’s localhost.localdomain by default.Ensure that Automatic IP Configuration is selected unless you are using a static IP address.
Step 8: Software Selection |
For this demonstration, we selected the “Workstation” option for a setup with the GNOME desktop, graphical utilities, and essential software. You can also choose additional software, such as Development Tools, Web Server, or Virtualization, under “Software Selection.”
Photo by admingeek from Infotechys
Click the Done button to continue.
Step 9: Set Root Password |
Click on Root Password to set the administrator password. This password will be required to perform administrative tasks on your system.
Make sure to use a strong, secure password with a combination of uppercase, lowercase, numbers, and symbols.
Photo by admingeek from Infotechys
Step 10: Create User Account (Optional) |
You can also create a regular user account for everyday use by clicking on the User Creation option. Enter the following:
Photo by admingeek from Infotechys
You can also enable or disable administrator privileges (i.e., whether this user can run sudo commands). Click Done when finished.
Step 11: Begin Installation and Monitor Progress |
Once all configurations are set, click on Begin Installation to start the installation process. The installer will now format the disk and install the required files. This process may take some time depending on your system’s speed.
Photo by admingeek from Infotechys
During installation, you can monitor the progress and see what tasks are being performed. The installation will automatically handle the following:
Photo by admingeek from Infotechys
Once the installation is complete, you will be notified with a message saying that the installation was successful.
Step 12: Reboot and First Boot Configuration |
Photo by admingeek from Infotechys
Photo by admingeek from Infotechys
Photo by admingeek from Infotechys
After logging in for the first time, there are a few important configurations you may want to perform:
Update the system |
sudo dnf update -y
Install additional software |
As per your needs, such as web servers, database servers, or development tools (example below).
sudo dnf install nginx httpd mariadb-server git -y
Enable and start services |
Run the following to enable and start services (e.g. Firewalld, Nginx)
sudo systemctl enable --now nginx && sudo systemctl enable --now firewalld
In this guide, we’ve walked you through the installation of Rocky Linux 9.5 in 12 easy steps. Here’s a quick summary:
Step | Action |
---|---|
1 | Download Rocky Linux 9.5 ISO |
2 | Create Bootable USB Drive |
3 | Boot from USB Drive |
4 | Select Installation Language |
5 | Set Keyboard Layout |
6 | Configure Timezone and Date/Time |
7 | Choose Installation Destination |
8 | Software Selection |
9 | Set Root Password |
10 | Create User Account (Optional) |
11 | Begin Installation and Monitor Progress |
12 | Reboot and First Boot Configuration |
After installation, you’re ready to start using Rocky Linux 9.5, whether it’s for web development, enterprise servers, or just a solid Linux-based desktop.
By following this guide, you now have a functional system and can start customizing it according to your needs. If you encounter any issues, you can always refer to the official documentation or community forums for troubleshooting.
Did you find this article useful? Your feedback is invaluable to us! Please feel free to share your thoughts in the comments section below.
In this tutorial, we’ll guide you through the step-by-step installation of RHEL9 on KVM. The process is uncomplicated, and we’ll present it in a format
Learn how to install RHEL 8.10 Workstation in 12 easy steps. This detailed guide covers everything from preparing a bootable USB to post-installation setup, making
In today’s tutorial, we will install CentOS8 on KVM. The install process is fairly straightforward and we will cover it here step-by-step. We will follow