Server Installation & First Boot
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 โ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).
Know: When Each Method Shines
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.
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 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.
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.
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!
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.
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.
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
/varfrom/prevents full-disk server crashes? - Break down an FQDN like
web-prod-01.corp.localand 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)?