Installing Linux: Three Paths (Dual Boot, VM, WSL)
You have picked a distro. Now you need it on a machine. You have three real options, ordered from least to most committed. Pick whichever matches the risk you want to take with your current setup.
Option 1: WSL (Windows Subsystem for Linux)
Best for: Windows users who want to learn Linux without dual-booting or running a VM.
WSL gives you a real Linux kernel (in WSL 2) running inside Windows. You get a full bash shell, can install packages, run servers, and even run GUI Linux apps. Files are accessible from both sides.
Install WSL on Windows 11 / 10
Open PowerShell as Administrator and run:
wsl --install
# installs Ubuntu by default; reboot when done
To pick a different distro:
wsl --list --online # see available distros
wsl --install -d Debian # install Debian instead
wsl --install -d kali-linux # install Kali
After install, launch from Start menu or run wsl in any terminal. First boot will ask for a username and password — these are Linux-only, separate from Windows.
WSL pros and cons
- Pro: No risk to your Windows setup. Files share between Linux and Windows seamlessly.
- Pro: Real Linux kernel; most things work identically to native.
- Con: Some kernel features (like nested virtualization or specific networking) are limited.
- Con: Disk performance on Windows-mounted folders is slow. Keep your project files inside the Linux filesystem.
Option 2: Virtual machine
Best for: Trying multiple distros, learning safely, or running Linux alongside macOS or any OS that does not have WSL.
Free hypervisor: VirtualBox. Slightly snappier and smoother (but commercial for some uses): VMware Workstation Pro (now free for personal use).
Steps with VirtualBox
- Install VirtualBox.
- Download the ISO of your distro (e.g.
ubuntu-22.04-desktop-amd64.iso). - In VirtualBox: New → name it, pick “Linux” type, the right version, give it 4+ GB of RAM and 25+ GB of disk.
- Mount the ISO under Settings → Storage → Empty CD → choose disk file.
- Start the VM. Run the installer.
- After installation, eject the ISO and reboot the VM.
Make it usable
Install Guest Additions after first boot — this gives you a sharp display, mouse integration, shared clipboard, and shared folders. In the running VM:
# Ubuntu / Debian
sudo apt update
sudo apt install -y virtualbox-guest-x11
sudo reboot
VM pros and cons
- Pro: Fully isolated. Snapshot before risky changes, roll back if you break it.
- Pro: Run multiple distros simultaneously.
- Con: Slower than bare metal — noticeable for heavy workloads (compiling, gaming).
- Con: Eats RAM. Keep at least 4 GB free for your host.
Option 3: Dual boot (or full install)
Best for: People who want Linux as their primary OS, or who want native performance for development work.
This is the highest-commitment option. You shrink your existing OS partition, install Linux alongside it, and pick which to boot at startup. There is real risk: a bad partition operation can lose data.
Before you start
- Back up everything important. Cloud, external drive, both.
- Check that your laptop’s hardware works on Linux. Search “[your laptop model] Linux” before installing — Wi-Fi, fingerprint sensors, and discrete graphics are common pain points.
- Disable Fast Startup on Windows (Control Panel → Power Options) and disable BitLocker if it is on.
- Disable Secure Boot in BIOS if your distro has issues with it (Ubuntu and Fedora are fine; some others are not).
Steps (dual boot with Windows)
- In Windows Disk Management, shrink your C: partition to free up at least 30 GB (50+ recommended).
- Download your distro ISO.
- Flash it to a USB stick using Balena Etcher or
dd. - Boot from the USB (you may need to change boot order in BIOS).
- Run the installer. Choose “Install alongside Windows” — most installers detect Windows automatically.
- The installer sets up GRUB, the bootloader that lets you pick Linux or Windows at startup.
Dual boot pros and cons
- Pro: Native performance. Full hardware access.
- Pro: Seriously commits you to learning Linux because you boot into it daily.
- Con: Riskier. A failed install can leave you without a bootable system.
- Con: Windows updates occasionally overwrite GRUB; you have to know how to repair it.
Which should you actually pick?
- You are on Windows and just exploring — WSL.
- You are on a Mac, or want to test multiple distros — VirtualBox VM.
- You are sure Linux will be your primary OS — dual boot, or wipe and install full.
- You have spare hardware (old laptop, Raspberry Pi) — full install on that. No risk to anything you care about.
What to learn next
After install, the next step is understanding how the system actually boots — BIOS/UEFI, the bootloader (GRUB), the kernel, and the init system. That is the next node in the roadmap.