๐ป How to Install AlmaLinux on VirtualBox: Complete Step-by-Step Tutorial
Want to learn Linux without messing up your computer? ๐ VirtualBox lets you run AlmaLinux safely inside Windows or Mac, perfect for learning, testing, and development! In this beginner-friendly guide, weโll install AlmaLinux on VirtualBox step-by-step. No Linux experience needed - letโs create your first virtual Linux machine! โก
๐ค Why Use VirtualBox for AlmaLinux?
VirtualBox is the perfect way to explore Linux! ๐ Hereโs why beginners love it:
- ๐ Completely Free: Open-source and costs nothing
- ๐ก๏ธ Risk-Free Learning: Canโt damage your main computer
- ๐ Easy Reset: Mess up? Just delete and start over!
- ๐ธ Snapshots: Save your progress like game checkpoints
- ๐ Cross-Platform: Works on Windows, Mac, and Linux
- ๐ฏ Perfect Testing: Try software without commitment
- ๐ Learn Safely: Practice commands worry-free
- ๐ผ Professional Skills: Used in real IT environments
Over 10 million developers use VirtualBox for learning! ๐
๐ฏ What You Need
Letโs check youโre ready to start! โ
- โ Computer with Windows, Mac, or Linux
- โ At least 4GB RAM (8GB+ recommended)
- โ 25GB free disk space
- โ Internet connection for downloads
- โ VirtualBox installed (weโll show you how!)
- โ AlmaLinux ISO file (weโll download it)
- โ 45 minutes for complete setup
- โ Excitement to learn Linux! ๐
Letโs build your virtual Linux lab! ๐
๐ Step 1: Download and Install VirtualBox
First, letโs get VirtualBox on your computer! ๐ฏ
For Windows Users:
# Download VirtualBox from official website
# Go to: https://www.virtualbox.org/wiki/Downloads
# Click "Windows hosts" link
# Save the installer (about 100MB)
# Run the downloaded installer
# Double-click: VirtualBox-7.0.12-159484-Win.exe
# Installation steps:
1. Click "Next" on welcome screen
2. Accept default features, click "Next"
3. Accept shortcuts, click "Next"
4. Warning about network - click "Yes"
5. Click "Install" (admin password required)
6. Click "Finish" to launch VirtualBox
For Mac Users:
# Download VirtualBox for Mac
# Go to: https://www.virtualbox.org/wiki/Downloads
# Click "macOS / Intel hosts" or "macOS / Arm64"
# Download the .dmg file
# Install VirtualBox:
1. Open the downloaded .dmg file
2. Double-click VirtualBox.pkg
3. Click "Continue" through installer
4. Enter your Mac password when prompted
5. Click "Install"
6. Open VirtualBox from Applications folder
For Linux Users:
# Ubuntu/Debian:
sudo apt update
sudo apt install virtualbox virtualbox-ext-pack -y
# Fedora:
sudo dnf install VirtualBox -y
# Arch Linux:
sudo pacman -S virtualbox
# Add user to vboxusers group
sudo usermod -aG vboxusers $USER
# Log out and back in for group changes
Perfect! ๐ VirtualBox is installed!
๐ง Step 2: Download AlmaLinux ISO
Now letโs get AlmaLinux! ๐ฅ
# Go to AlmaLinux website
# Visit: https://almalinux.org/get-almalinux/
# Choose version:
# AlmaLinux 9 - Latest version (Recommended)
# AlmaLinux 8 - Long-term stable
# Download options:
1. Click "Download" for AlmaLinux 9
2. Choose mirror close to your location
3. Download: AlmaLinux-9.3-x86_64-dvd.iso (8.5GB)
OR
Download: AlmaLinux-9.3-x86_64-minimal.iso (1.5GB) for faster setup
# Alternative: Use torrent for faster download
# Click "Torrent" option if available
Download locations:
- Save to:
Downloads
folder - Note the location - weโll need it soon!
Verify download (optional but recommended):
# Windows (PowerShell):
Get-FileHash AlmaLinux-9.3-x86_64-dvd.iso -Algorithm SHA256
# Mac/Linux:
sha256sum AlmaLinux-9.3-x86_64-dvd.iso
# Compare with official checksum from website
Amazing! ๐ AlmaLinux ISO is ready!
๐ Step 3: Create Virtual Machine in VirtualBox
Time to create your virtual machine! ๐ฅ๏ธ
# Open VirtualBox
# Click "New" button (or Machine โ New)
Configure your VM:
Screen 1: Name and Operating System
Name: AlmaLinux 9
Folder: (keep default or choose location)
ISO Image: Browse and select your AlmaLinux ISO
Type: Linux
Version: Red Hat (64-bit)
โ Skip Unattended Installation (important!)
Click "Next"
Screen 2: Hardware Settings
Base Memory: 2048 MB (minimum)
4096 MB (recommended)
8192 MB (if you have 16GB+ RAM)
Processors: 2 CPUs (recommended)
4 CPUs (if you have 8+ cores)
โ Enable EFI (optional, for UEFI boot)
Click "Next"
Screen 3: Virtual Hard Disk
โ Create a Virtual Hard Disk Now
Disk Size: 20 GB (minimum)
40 GB (recommended)
60 GB (comfortable)
โ Pre-allocate Full Size (faster but uses space immediately)
Click "Next"
Review and Create
Review settings:
- Name: AlmaLinux 9
- RAM: 4096 MB
- CPUs: 2
- Storage: 40 GB
Click "Finish"
Excellent! โก Virtual machine created!
โ Step 4: Configure VM Settings (Important!)
Before starting, letโs optimize settings! โ๏ธ
# Select your VM and click "Settings"
System Settings:
System โ Motherboard:
โ Enable I/O APIC
โ Hardware Clock in UTC Time
Boot Order: Optical, Hard Disk (drag to reorder)
System โ Processor:
Processors: 2-4 CPUs
Execution Cap: 100%
โ Enable PAE/NX
System โ Acceleration:
Paravirtualization: Default
โ Enable VT-x/AMD-V
โ Enable Nested Paging
Display Settings:
Display โ Screen:
Video Memory: 128 MB
Graphics Controller: VMSVGA
โ Enable 3D Acceleration
Storage Settings:
Storage โ Controller: IDE โ Empty:
Click disk icon โ Choose Virtual Optical Disk File
Select your AlmaLinux ISO
โ Live CD/DVD
Network Settings:
Network โ Adapter 1:
โ Enable Network Adapter
Attached to: NAT (for internet access)
OR Bridged Adapter (for network access)
Advanced:
Adapter Type: Intel PRO/1000 MT Desktop
โ Cable Connected
Shared Folders (Optional):
Shared Folders:
Click + to add folder
Folder Path: Choose folder on host
Folder Name: shared
โ Auto-mount
โ Make Permanent
Perfect! ๐ VM is configured optimally!
๐ง Step 5: Start Installation
Letโs install AlmaLinux! ๐
# Click "Start" button (green arrow)
# VM window opens with boot menu
Boot Menu:
Use arrow keys to select:
> Install AlmaLinux 9.3
Press Enter to start installation
Language Selection:
Welcome to AlmaLinux 9.3:
Select language: English
Select location: United States
Click "Continue"
Installation Summary:
Main installation hub appears
We'll configure each section:
1. Localization:
Keyboard:
- Add your keyboard layout if needed
- Test in text field
Time & Date:
- Select your timezone
- Enable "Network Time" (NTP)
2. Software:
Software Selection:
Choose one:
- Server with GUI (recommended for beginners)
- Server (minimal, command line only)
- Workstation (desktop environment)
Additional software will be selected automatically
3. System:
Installation Destination:
- Select the virtual disk (40 GB)
- Storage Configuration: Automatic
- Click "Done"
Network & Host Name:
- Ethernet: Toggle ON
- Host name: almalinux.local (or choose your own)
- Click "Apply" then "Done"
4. User Settings:
Root Password:
- Set strong root password
- Type: MySecureRoot123!
- Confirm password
- Click "Done" (twice if weak password)
User Creation:
- Full name: Your Name
- Username: yourusername
- โ Make this user administrator
- โ Require password
- Password: YourUserPass456!
- Click "Done"
Begin Installation:
Click "Begin Installation"
Installation progress:
- Installing packages (15-20 minutes)
- Configuring system
- Setting up users
- Installing bootloader
When complete:
Click "Reboot System"
Fantastic! ๐ AlmaLinux is installing!
๐ Step 6: First Boot and Initial Setup
After reboot, letโs complete setup! ๐ฏ
License Agreement:
License Information:
- Click "License Information"
- โ I accept the license agreement
- Click "Done"
- Click "Finish Configuration"
Login Screen:
Click your username
Enter password
Press Enter or click "Sign In"
Welcome Screen (if GUI installed):
Welcome to GNOME:
- Select language
- Select keyboard
- Configure privacy settings
- Connect online accounts (optional)
- Click "Start Using AlmaLinux"
Amazing! ๐ Youโre in AlmaLinux!
๐ฎ Quick Examples
Essential first tasks in AlmaLinux! ๐ฏ
Example 1: Install VirtualBox Guest Additions
# Improves performance and features
# In VirtualBox menu: Devices โ Insert Guest Additions CD
# In AlmaLinux terminal:
sudo dnf update -y
sudo dnf install gcc kernel-devel kernel-headers dkms make bzip2 perl -y
# Mount and install Guest Additions
sudo mkdir /mnt/cdrom
sudo mount /dev/cdrom /mnt/cdrom
cd /mnt/cdrom
sudo ./VBoxLinuxAdditions.run
# Reboot for changes
sudo reboot
# After reboot, you get:
# - Better screen resolution
# - Clipboard sharing
# - Drag and drop files
# - Shared folders
Example 2: Update System
# Open Terminal (right-click desktop โ Open Terminal)
# Update all packages
sudo dnf update -y
# Install useful software
sudo dnf install -y vim nano wget curl git
# Check system info
cat /etc/redhat-release
uname -a
hostname
ip addr show
# Check disk space
df -h
# Check memory
free -h
Example 3: Configure Network
# Check network status
ip addr show
ping google.com -c 4
# Configure static IP (if needed)
sudo nmtui
# Or use command line:
sudo nmcli con mod "Wired connection 1" \
ipv4.addresses 192.168.1.100/24 \
ipv4.gateway 192.168.1.1 \
ipv4.dns 8.8.8.8 \
ipv4.method manual
# Restart network
sudo nmcli con down "Wired connection 1"
sudo nmcli con up "Wired connection 1"
Example 4: Create Snapshot
# In VirtualBox (not in VM):
# 1. Shut down VM first
sudo shutdown -h now
# 2. In VirtualBox Manager:
# Select VM โ Snapshots tab
# Click "Take" button
# Name: Fresh Install
# Description: Clean AlmaLinux after installation
# Click "OK"
# Now you can always restore to this point!
๐จ Fix Common Problems
VirtualBox troubleshooting made easy! ๐ง
Problem 1: โVT-x is not availableโ
Solution:
# Enable virtualization in BIOS:
1. Restart computer
2. Press F2/F10/Delete during boot (depends on PC)
3. Find "Virtualization" or "VT-x" or "AMD-V"
4. Enable it
5. Save and exit BIOS
# Verify on Windows:
# Open Task Manager โ Performance โ CPU
# Check "Virtualization: Enabled"
Problem 2: VM is Very Slow
Solution:
# Increase resources:
1. Shut down VM
2. Settings โ System โ Motherboard
- Increase RAM to 4096MB+
3. Settings โ System โ Processor
- Increase to 2-4 CPUs
4. Settings โ Display
- Video Memory: 128MB
- Enable 3D Acceleration
# Install Guest Additions (see Example 1)
Problem 3: No Internet in VM
Solution:
# Check VirtualBox network:
Settings โ Network โ Adapter 1
- Attached to: NAT or Bridged Adapter
- โ Cable Connected
# In AlmaLinux:
sudo systemctl restart NetworkManager
sudo dhclient -v
# Test connection:
ping 8.8.8.8
Problem 4: Canโt Copy/Paste
Solution:
# Install Guest Additions first
# Then in VirtualBox:
Devices โ Shared Clipboard โ Bidirectional
Devices โ Drag and Drop โ Bidirectional
# Restart VM
sudo reboot
๐ Simple Commands Summary
Task | Command |
---|---|
Start VM | Click Start button |
Shutdown VM | sudo shutdown -h now |
Restart VM | sudo reboot |
Take Snapshot | Machine โ Take Snapshot |
Full Screen | Right Ctrl + F |
Scale Window | View โ Scaled Mode |
Release Mouse | Right Ctrl |
Open Terminal | Right-click โ Terminal |
Update System | sudo dnf update |
๐ก Tips for Success
Master VirtualBox with these pro tips! ๐
- ๐ธ Snapshot Often: Before major changes
- ๐พ Backup VMs: Export for safety
- ๐ง Guest Additions: Always install for best performance
- ๐ Monitor Resources: Donโt over-allocate RAM
- ๐ Network Modes: NAT for internet, Bridged for LAN
- ๐ Shared Folders: Easy file transfer
- ๐ฏ Clone VMs: Fast way to create similar setups
- โก SSD Storage: Put VMs on SSD for speed
- ๐ Practice Freely: Canโt break anything!
- ๐ Regular Updates: Keep both VirtualBox and Linux updated
๐ What You Learned
Congratulations! Youโve mastered VirtualBox! ๐
- โ Installed VirtualBox on your system
- โ Downloaded AlmaLinux ISO
- โ Created and configured virtual machine
- โ Installed AlmaLinux successfully
- โ Configured initial settings
- โ Learned VM management basics
- โ Set up networking
- โ Created snapshots for safety
๐ฏ Why This Matters
Your VirtualBox skills open amazing opportunities! ๐
- ๐ผ Safe Learning: Practice without risk
- ๐งช Perfect Testing: Try before deploying
- ๐ Skill Building: Learn Linux professionally
- ๐ Easy Recovery: Snapshots save time
- ๐ Industry Standard: Used everywhere
- ๐ฐ Cost Effective: Free virtualization solution
- ๐ Career Growth: Essential IT skill
Youโve built your own Linux learning lab! ๐
Happy virtualizing! ๐