Module 02

Linux Lab Installation

Build your own safe playground. Learn how to install Linux on VirtualBox or VMWare without breaking your main computer.

โฑ๏ธ 15 min read๐ŸŸข Beginner๐Ÿ“… Updated: Jan 2026

1 Why a Virtual Machine?

A Virtual Machine is a "computer inside a computer". If you break Linux (and you will), your actual Windows or Mac laptop remains completely safe.

โ›” Dual Booting

Installing Linux alongside Windows.

  • Risk of data loss.
  • Hard to reboot.

โœ… Virtual Machine

Running Linux as an app window.

  • Zero risk.
  • Snapshots available.

2 Step 1: Download a Hypervisor

The Hypervisor is the software that runs VMs. Pick the one that matches your physical computer.

Mac (Intel)?
VirtualBox or VMware Fusion.
Mac (Apple Silicon)?
Use UTM.

3 Step 2: Grab the Linux ISO

An ISO file is a digital "CD-ROM". We will use Ubuntu.

Ubuntu 24.04 LTS

Stable, Long Term Support. ~4GB.

๐Ÿ’ฟ
โš ๏ธ
Don't open the ISO! Just leave it in Downloads. The VM will read it.

4 Step 3: Installation

  1. Create Machine

    Name: "Ubuntu-Lab". Type: Linux.

  2. Hardware

    RAM: 4GB+. CPU: 2 Cores.

  3. Disk

    Size: 40GB+ (Dynamic).

  4. Insert ISO

    Settings > Storage > Empty CD > Choose disk file.

  5. Boot

    Start > "Erase disk and install Ubuntu?" > YES (It's virtual).

5 First Boot Checklist

Open Terminal (Ctrl+Alt+T) and run these commands:

# 1. Update lists
sudo apt update
# 2. Upgrade software
sudo apt upgrade -y
# 3. Essential tools
sudo apt install git curl vim build-essential -y