๐Ÿ“˜ Visual Posts About Contact
Explore ๐Ÿ“‹ Cheat Sheets โœ๏ธ Practice ๐ŸŽฎ Games ๐ŸŽฌ Simulations ๐Ÿƒ Flashcards ๐ŸŽฏ Interactive Layers ๐Ÿ“– Storytelling
๐Ÿ’œ Support my site

Server Installation & First Boot

Module 04 Zero to Hero 2026 Updated

You have a brand-new serverโ€”either a physical rack machine or a fresh cloud VM. How do you take it from an empty disk to a stable, named, time-synced machine ready for real workloads? Welcome to Getting Started: Installation, Hostname & First Boot.

Start Module 04 โ†“
BARE METAL TO PRODUCTION-READY 01. BOOT MEDIA ISO / USB / PXE or Cloud Image + cloud-init 02. DISK & LVM Isolate /var /boot, /, /var, swap Prevent full-disk crash 03. IDENTITY FQDN + Static IP web-prod-01.corp.local Permanent street address 04. FIRST 15 MIN Patch, NTP, Audit apt/dnf + chrony Verify RAM & Disks

01 How Servers Install: ISO, USB, PXE & Cloud Images

Define: Before an Operating System (OS) can run, its installer or pre-built disk image must be loaded into the server's memory. Depending on whether your server is sitting on your desk, locked in a data center, or running in the cloud, you use one of four boot media methods.

Understand (The New House Analogy): Think of a brand-new server like an empty apartment. You can move in by carrying furniture yourself (USB drive), ordering a delivery truck remotely (Virtual ISO), having a factory build 100 identical apartments overnight (PXE network boot), or renting a pre-furnished apartment that's ready in 30 seconds (Cloud Image).

4 Ways to Install a Server Operating System 1. VIRTUAL ISO IPMI / iDRAC / iLO Mounts an .iso file over the network like a virtual DVD. BEST FOR: Remote data centers 2. BOOTABLE USB Physical Flash Drive Plugged directly into the server's USB port (Rufus / dd). BEST FOR: Home labs & 1-off PCs 3. PXE BOOT Network Auto-Install NIC asks DHCP + TFTP for OS files + Kickstart script. BEST FOR: 100+ bare-metal racks 4. CLOUD IMAGE Pre-Baked Snapshot Cloned disk (AMI / QCOW2). Zero manual installer wizard. BEST FOR: AWS, Azure, Proxmox

Know: When Each Method Shines

ISO

Virtual ISO (Out-of-Band)

Enterprise servers (Dell iDRAC, HPE iLO, Supermicro IPMI) let you attach an .iso from your laptop over the network so you never have to walk into a cold data center with a USB stick.

USB

Bootable USB Drive

Great for a home lab, office tower server, or emergency recovery. Always verify the SHA-256 checksum of the ISO before flashing so a corrupted file doesn't waste your afternoon.

PXE

PXE Network Boot

Pronounced "pixie" (Preboot Execution Environment). The server's network card boots without a local disk, grabs an IP via DHCP, downloads the OS kernel via TFTP/HTTP, and runs an unattended answer file.

IMG

Cloud & VM Images

In 2026, most servers start from a pre-installed image (AWS AMI, Azure VHD, or Ubuntu Cloud QCOW2). Tools like cloud-init inject your SSH key, hostname, and updates on first boot.

Server Edition Tip: When installing Linux or Windows Server, choose the Minimal / Server Core option (no heavy desktop GUI). A GUI wastes RAM, CPU, and adds extra software that needs security patching.

02 Disk Partitioning & LVM: Why Separating /var Saves Lives

Define: Partitioning divides a physical hard drive or SSD into separate logical compartments. LVM (Logical Volume Manager) adds a flexible layer on top so you can resize or combine disks later without wiping your server.

Understand (The Ship Hull Analogy): Why do modern ships have watertight compartments instead of one giant open room? Because if one room floods, bulkheads stop the water from sinking the entire ship. On a server, /var is where logs, databases, and caches liveโ€”if a buggy app floods /var with 100 GB of error logs, separating it keeps the rest of the ship (/) afloat!

LVM Layers & Partition Isolation 1. PHYSICAL VOLUMES (PV) /dev/nvme0n1 (100 GB) Primary NVMe SSD /dev/nvme1n1 (100 GB) Add-on SSD later 2. VOLUME GROUP (VG) vg_server (200 GB Pool) Combines disks into one pool 3. LOGICAL VOLUMES (LV) โ€” MOUNT POINTS /boot 1 GB (Non-LVM) Kernel & GRUB / 30 GB (Root) OS binaries & /etc /var (Isolated!) 50 GB (Logs/DB) Safe blast radius /home 20 GB Admin user files swap 2โ€“4 GB RAM overflow WHY SEPARATE /var? If runaway logs fill /var to 100%, / stays healthyโ€”you can still SSH in, delete old logs, and recover without a crash!

Know: Standard Server Mount Points

Partition / Mount Recommended Size Purpose & Beginner Rule
/boot (and /boot/efi) 1 GB (+ 512 MB EFI) Stores the Linux kernel and GRUB bootloader needed to start the OS. Keep it outside LVM or simple ext4/FAT32.
/ (Root) 20 โ€“ 40 GB Core OS files, commands (/bin, /usr), and configuration (/etc).
/var 30 โ€“ 100+ GB Variable data: system logs (/var/log), containers, web files, and databases. Always isolate this!
/home 10 โ€“ 20 GB Personal folders for admin accounts. Isolating it stops a user's large download from filling /.
swap 2 โ€“ 4 GB (or 1x small RAM) Emergency disk space used when physical RAM is full, preventing instant Out-Of-Memory (OOM) kills.

๐Ÿง  Memory Trick: "B-R-V-H-S" โ€” Big Rabbits Value Healthy Space

Boot (/boot) โ†’ Root (/) โ†’ Variable logs (/var) โ†’ Home (/home) โ†’ Swap (swap). And for LVM layers, remember P-V-L: Physical Volume โ†’ Volume Group โ†’ Logical Volume!

03 Hostname, FQDN & Static IP: Naming Your Server

Define: A Hostname is the short local name of your machine (like web-prod-01). An FQDN (Fully Qualified Domain Name) combines the hostname with its DNS domain (like web-prod-01.corp.local). A Static IP is a permanent IP address manually assigned so it never changes on reboot.

Understand (The Passport & Street Address Analogy): Think of a hostname as your first name ("Alex"), an FQDN as your full legal name on a passport ("Alex Rivera of Corp"), and a Static IP as your permanent house address. Desktops use DHCP (like staying in a hotel where your room number changes every trip), but a server is a post officeโ€”clients must always find it at the exact same address.

Anatomy of a Production FQDN web ROLE (web, db, app) - prod ENVIRONMENT (prod, dev, stg) - 01 INSTANCE # (01, 02, 03) . corp.local DOMAIN SUFFIX DNS Zone 4 PILLARS OF A STATIC IP CONFIGURATION IP Address: 10.20.30.15 Subnet Mask: /24 (255.255.255.0) Gateway: 10.20.30.1 DNS Servers: 10.20.30.10, 1.1.1.1
Never Name Servers After Pets! Avoid cute names like zeus, batman, or coffee. At 3:00 AM during an outage, nobody knows what batman doesโ€”everyone immediately knows what db-prod-02.corp.local does.

04 The First 15-Minute Server Checklist

Define: The First 15-Minute Checklist is the universal set of hygiene tasks every sysadmin performs immediately after an OS finishes installingโ€”before installing any apps or exposing the server to users.

Understand (The Pilot Pre-Flight Analogy): Just as a pilot checks fuel, altimeter, and flaps before takeoff, a sysadmin patches security holes, syncs the system clock, and verifies CPU/RAM/disk capacity before putting a server into service.

First 15-Minute Post-Install Checklist MIN 0โ€“5: PATCH & UPDATE PACKAGES Close vulnerabilities shipped in the ISO. Debian/Ubuntu: sudo apt update && sudo apt upgrade -y RHEL/Alma: sudo dnf upgrade -y MIN 5โ€“9: TIMEZONE & NTP (CHRONY) Logs, TLS certs & Kerberos fail if clocks drift! sudo timedatectl set-timezone UTC chronyc tracking (verify NTP sync) MIN 9โ€“12: AUDIT DISK, RAM & CPU Confirm hardware & partitions match spec. df -h && lsblk (check /var & mounts) free -h && lscpu (check RAM & cores) MIN 12โ€“15: REBOOT & VERIFY Apply new kernel & verify clean boot. sudo reboot uname -r && systemctl --failed

When & Why Time Sync Matters So Much

Most beginners skip NTP (Network Time Protocol) and set the clock roughly by hand. On servers, even a 5-minute clock drift breaks Active Directory / Kerberos logins, invalidates HTTPS TLS certificates, corrupts database replication, and makes troubleshooting logs across two servers nearly impossible. Always set servers to UTC and verify chrony (or w32tm on Windows) is actively syncing.

05 Execute: Practical Commands (Linux & Windows Server)

Execute: Below are the exact commands you will type on your very first login to a fresh Linux server (Ubuntu/Debian or RHEL/AlmaLinux) and a fresh Windows Server Core machine.

Linux First-Boot Walkthrough

# 1. Set Hostname & FQDN cleanly
sudo hostnamectl set-hostname web-prod-01.corp.local
hostnamectl status

# 2. Update all packages (Ubuntu/Debian vs RHEL/AlmaLinux/Rocky)
sudo apt update && sudo apt upgrade -y      # Debian / Ubuntu
sudo dnf upgrade -y                         # RHEL / AlmaLinux / Rocky

# 3. Set Timezone to UTC & verify chrony NTP sync
sudo timedatectl set-timezone UTC
sudo systemctl enable --now chrony          # or chronyd on RHEL
chronyc tracking

# 4. Inspect Disks, LVM, RAM & CPU
lsblk
df -h
free -h
lscpu | grep "Model name\|CPU(s):"

Windows Server Core: sconfig

When you install Windows Server without Desktop Experience (Server Core), there is no Start Menu or Control Panel. Instead, Microsoft gives you a clean, menu-driven text tool called sconfig (Server Configuration) that launches automatically at login.

# Launch Server Configuration menu (if not already open)
sconfig

# Inside sconfig, press a number for each first-boot task:
#   2  -> Computer name (e.g., WEB-PROD-01)
#   8  -> Network settings (set Static IP, Subnet, Gateway, DNS)
#   9  -> Date and time (set Timezone & verify NTP)
#   6  -> Download and install updates
#  15  -> Exit to PowerShell command line

๐Ÿ“ Practice Problem: First-Boot Triage

Scenario: You just logged into a brand-new Ubuntu 24.04 server via console. Running hostname prints ubuntu-template, date shows a time 4 hours behind UTC, and df -h shows everything mounted on a single / partition.

Task: What commands fix the hostname to app-stg-01.corp.local, set the timezone to UTC, and verify NTP sync? Plus, why should you flag the single / partition before going to production?

Show Solution

1. Fix Hostname: sudo hostnamectl set-hostname app-stg-01.corp.local

2. Fix Timezone & Check NTP: sudo timedatectl set-timezone UTC then run chronyc tracking to confirm NTP sync is active.

3. Partitioning Risk: Because /var is not separated from /, any runaway log file or container image in /var can fill the entire disk to 100%, locking up the OS and preventing admin logins.

โœ“ Checkpoint: Before Moving to Module 05, Can You...

  • Explain when to use Virtual ISO, Bootable USB, PXE, or a Cloud Image?
  • Describe why isolating /var from / prevents full-disk server crashes?
  • Break down an FQDN like web-prod-01.corp.local and list the 4 Static IP settings?
  • Run the First 15-Minute Checklist on Linux (apt/dnf, chrony, df -h, free -h) and Windows Server (sconfig)?

06 Knowledge Check

Test your Module 04 knowledge โ€” click an option for instant feedback. Score: 0 / 4

1. You need to install Linux on 80 identical bare-metal rack servers in a data center overnight without touching USB sticks. Which method is built for this?

Bootable USB Flash DriveโŒ
PXE Network Boot with an automated Kickstart/Preseed fileโœ…
Manual BIOS ConfigurationโŒ

2. Why do experienced sysadmins put /var on its own separate LVM Logical Volume?

So a runaway log or database filling /var to 100% does not fill / and crash the OSโœ…
Because /var doubles the CPU clock speedโŒ
Because GRUB can only boot from /varโŒ

3. In the FQDN db-prod-02.corp.local, what does prod represent?

The physical rack brandโŒ
The DNS IP addressโŒ
The Environment (Production)โœ…

4. Which tool opens the built-in text configuration menu on a fresh Windows Server Core installation?

sconfigโœ…
chronycโŒ
lsblkโŒ