Install AlmaLinux OS – Step by Step With Screenshots

Posted on 261 views

AlmaLinux is the ultimate CentOS 8 replacement after its direction was tuned to the Red Hat rhythm. AlmaLinux OS version 8.5 is the official GA release from the company. This release can be installed to power Production workloads. AlmaLinux OS is a community-driven project built from Red Hat Enterprise Linux (RHEL) source code. It is a completely binary compatible fork of RHEL 8 and it is built by the creators of the established CloudLinux OS.

If you have CentOS 8 system it can be migrated to AlmaLinux OS with simple steps. In this guide our focus is on fresh installation of AlmaLinux OS 8 on a physical server, VirtualBox, VMware ESXi, VMware workstation, Xen or XCP-ng virtualization platform. It is worth stating that AlmaLinux OS releases matches the current RHEL release 1:1. This is good for patching and guaranteed stability.

For Rocky Linux 8 use the guide: Install Rocky Linux 8 – Step by Step With Screenshots

Step 1: Download AlmaLinux OS 8 ISO image

Visit AlmaLinux OS 8 releases page and select the latest stable available version.

Install-AlmaLinux-OS-8-VirtualBox-VMware-Xen-XCP-ng-01-2048x702

Pick a mirror from where the ISO file will be downloaded:

Install-AlmaLinux-OS-8-VirtualBox-VMware-Xen-XCP-ng-02-2048x776

Begin the download of AlmaLinux OS 8 by choosing DVD or Minimal ISO file. For servers you can use minimal, and DVD for installation on Laptop or Home Desktop computer.

Install-AlmaLinux-OS-8-VirtualBox-VMware-Xen-XCP-ng-03-2048x493

Downloading with wget:

### DVD ISO ###
wget http://de.mirrors.clouvider.net/almalinux/8.5/isos/x86_64/AlmaLinux-8.5-x86_64-dvd.iso

### Minimal CD ISO  ### 
wget http://de.mirrors.clouvider.net/almalinux/8.5/isos/x86_64/AlmaLinux-8.5-x86_64-minimal.iso

### Network Install ISO ###
wget http://de.mirrors.clouvider.net/almalinux/8.5/isos/x86_64/AlmaLinux-8.5-x86_64-boot.iso

Step 2: Create Bootable USB Stick / Attach ISO (VM environment)

Once the ISO image is downloaded you have two options:

  • Create Bootable USB Stick media for installation on Laptops or physical server environments
  • Create VM template with compute resources and attach ISO image to virtual CD drive

Create Bootable USB Stick

On Linux use dd command:

# Identify USB device
$ lsblk

# Flash AlmaLinux OS to USB drive
$ sudo dd bs=4M if=./AlmaLinux-8.5-x86_64-dvd.iso of=/dev/sdx status=progress oflag=sync

Where:

  • /dev/sdx is the path to USB stick as shown by lsblk command
  • ./AlmaLinux-8.5-x86_64-dvd.iso is the ISO image path, it can be absolute e.g /home/$USER/Downlods/AlmaLinux-8.5-x86_64-dvd.iso

On Windows and macOS use tools such as rufus vs Etcher

In Virtualized Environment

In a Virtualized environment – VirtualBox, VMware, Xen or XCP-ng, you create a VM template with specs.

VirtualBox

Create a new VM and give it a name. Choose Linux for OS type and Red Hat 64-bit for Version.

Install-AlmaLinux-OS-8-VirtualBox-01

Finish creating the VM template. When done click on “AlmaLinux-8 VM” > “Settings

Install-AlmaLinux-OS-8-VirtualBox-02-00

Select “Storage” and Disc plus sign under “Storage Devices” section.

Install-AlmaLinux-OS-8-VirtualBox-02

Choose “Add” to map AlmaLinux 8 ISO image.

Install-AlmaLinux-OS-8-VirtualBox-03

Browse and choose AlmaLinux ISO file.

Install-AlmaLinux-OS-8-VirtualBox-04

Use “OK” button to save the settings.

Install-AlmaLinux-OS-8-VirtualBox-05

VMware

On VMware you can drag ISO file when initiating VM creation

Install-AlmaLinux-OS-8-VMware-01

Or manually browse to ISO file directory and select.

Install-AlmaLinux-OS-8-VMware-02

Xen | XCP-ng

Choose “CentOS 8” template.

Install-AlmaLinux-OS-8-VirtualBox-VMware-Xen-XCP-ng-04

Give VM a name and on “Installation Media” select AlmaLinux 8 iso. If you don’t know how to upload check the guide Adding ISO Library Storage Repository in Xen XCP-ng.

Install-AlmaLinux-OS-8-VirtualBox-VMware-Xen-XCP-ng-06

Step 3: Install AlmaLinux OS 8 on VirtualBox | VMware | Xen | XCP-ng

Finish resource allocations to the Virtual Machine and start it. On a physical box, insert bootable USB stick and modify your boot options to boot from it.

Initiate installation of AlmaLinux OS 8 on VirtualBox | VMware | Xen | XCP-ng by choosing one of the first two options.

Install-AlmaLinux-OS-8-VirtualBox-VMware-Xen-XCP-ng-09-2048x1196

Choose the language to be used during installation of AlmaLinux 8.

Install-AlmaLinux-OS-8-VirtualBox-VMware-Xen-XCP-ng-10-2048x1543

Storage configurations

Select “Installation Destination” and hit enter.

Install-AlmaLinux-OS-8-VirtualBox-VMware-Xen-XCP-ng-11

Select Local disk to be used and storage configuration that works for your needs.

Install-AlmaLinux-OS-8-VirtualBox-VMware-Xen-XCP-ng-12-2048x1187

When done save the changes by clicking “Save” button.

Software selection

Use “Software Selection” menu to select the Base environment for your installation

Install-AlmaLinux-OS-8-VirtualBox-VMware-Xen-XCP-ng-13

You can also pick additional software components to be installed.

Install-AlmaLinux-OS-8-VirtualBox-VMware-Xen-XCP-ng-14

Configure Hostname and Networking

Use “Network & Host Name” to set this machine host name and IP information.

Install-AlmaLinux-OS-8-VirtualBox-VMware-Xen-XCP-ng-17

Configure server’s host name.

Install-AlmaLinux-OS-8-VirtualBox-VMware-Xen-XCP-ng-18

Turn on the network interface you want to use.

Install-AlmaLinux-OS-8-VirtualBox-VMware-Xen-XCP-ng-19-2048x279

If you have DHCP server in place it will automatically get an IP address assigned. Otherwise configure IP information manually.

Install-AlmaLinux-OS-8-VirtualBox-VMware-Xen-XCP-ng-20

Configure Time and Date

Select “Time & Date

Install-AlmaLinux-OS-8-VirtualBox-VMware-Xen-XCP-ng-15

Set your region and City and enable NTP.

Install-AlmaLinux-OS-8-VirtualBox-VMware-Xen-XCP-ng-16-01

Confirm both Time and Network settings are configured.

Install-AlmaLinux-OS-8-VirtualBox-VMware-Xen-XCP-ng-21

Optionally choose a “Security Policy” you want to use.

Install-AlmaLinux-OS-8-VirtualBox-VMware-Xen-XCP-ng-22-2048x947

Set root password and create admin user

Set a strong password for the root user.

Install-AlmaLinux-OS-8-VirtualBox-VMware-Xen-XCP-ng-23-01

Select “User creation” to add first admin user account.

Install-AlmaLinux-OS-8-VirtualBox-VMware-Xen-XCP-ng-23-02

Input all required user information and set password.

Install-AlmaLinux-OS-8-VirtualBox-VMware-Xen-XCP-ng-24-2048x802

Begin AlmaLinux OS installation on VirtualBox | VMware | Xen | XCP-ng

With all the settings saved start installation by clicking “Begin Installation“.

Install-AlmaLinux-OS-8-VirtualBox-VMware-Xen-XCP-ng-25

The installer will start with disk partitioning based on selected scheme.

Install-AlmaLinux-OS-8-VirtualBox-VMware-Xen-XCP-ng-26

Then downloading of packages matching base environment.

Install-AlmaLinux-OS-8-VirtualBox-VMware-Xen-XCP-ng-27

Packages installation on to the disk starts thereafter.

Install-AlmaLinux-OS-8-VirtualBox-VMware-Xen-XCP-ng-28

Packages are installed and configured:

Install-AlmaLinux-OS-8-VirtualBox-VMware-Xen-XCP-ng-29

When the installer finishes its work you can eject installation medium and reboot AlmaLinux OS 8 to start using it.

Install-AlmaLinux-OS-8-VirtualBox-VMware-Xen-XCP-ng-30

Accept License Agreement.

Install-AlmaLinux-OS-8-VirtualBox-VMware-Xen-XCP-ng-31 (1)

Login with username and password as configured.

Install-AlmaLinux-OS-8-VirtualBox-VMware-Xen-XCP-ng-32

We’ve lined many cool articles on AlmaLinux OS 8 that will help you build a production server from ground.

Gravatar Image
A systems engineer with excellent skills in systems administration, cloud computing, systems deployment, virtualization, containers, and a certified ethical hacker.