Demo mode This site is not live. It is currently being tested and developed. Nothing on here represents an offer.
← Exit course IT-203 CompTIA Linux+ XK0-006 Prep: Linux Server Administration
Course progress, 0 of 14 parts done0%

Building the Cross-Family Lab

Download as PDF

Two families, headless from the start, plus a real internet-facing server.

1. Why one machine is no longer enough Any Linux

The intermediate course needed a single virtual machine. This course needs a small network of them, for three reasons that will become obvious quickly.

  • Two families. You cannot compare dnf with apt, or firewalld with ufw, on one machine. Every module in this course shows both, and you need both in front of you.
  • Services need clients. A file server, a print server, a DNS server and a web server are all meaningless without something else on the network to use them.
  • Hosting is public. TLS certificates, DNS records and mail deliverability cannot be learned on a private network. At some point you need a real IP address that the internet can reach.

2. The lab topology Any Linux

Your Mint workstation ← control node. Where you work. Course 1 and 2 live here.     ├─ deb-srv   192.168.56.11   Ubuntu Server 24.04 LTS, no desktop   ├─ rpm-srv   192.168.56.12   Rocky Linux 9, no desktop   ├─ fedora    192.168.56.13   Fedora Server - optional, see below   └─ nas       192.168.56.14   Debian, second disk - becomes the NAS in Module 6   vps         <public IP>     a real internet-facing server - Modules 8 to 11
Figure 0.1 - Four local virtual machines plus one public server. The VPS is the only part that costs money.
NodeRunsPurposeRequired?
WorkstationLinux MintWhere you sit. SSH client, editor, control node for Ansible in Module 12Yes
deb-srvUbuntu Server LTSThe Debian-family server throughoutYes
rpm-srvRocky Linux 9The RPM-family server throughout. SELinux stays enforcingYes
fedoraFedora ServerSeeing where RHEL is heading; newer toolingOptional
nasDebian, plus a second virtual diskFile and print services in Module 6Yes, from Module 6
vpsUbuntu or RockyReal public IP, real DNS, real certificates, real mailYes, from Module 8
Why Rocky rather than RHEL itself. Rocky Linux is a free, binary-compatible rebuild of Red Hat Enterprise Linux. Everything you learn on it applies to RHEL and to AlmaLinux without translation, and it costs nothing. RHEL is available free for personal use through Red Hat's developer subscription if you would rather register for that, and Fedora is where features arrive first - typically two to three years before they reach RHEL. Any of the three teaches the same material; Rocky simply has the fewest obstacles.

3. Headless from the start Any Linux

Install both servers with no desktop environment. This is not an economy measure - it is the point.

A server with a desktop teaches you to reach for the desktop. Real servers do not have one: they have a console you may not be able to reach and an SSH session that might be the very thing that broke. Working headless from day one builds the habit of doing everything from the command line, which is also exactly how the exam's performance-based questions are presented.

Allocate resources realistically. A headless server runs comfortably in 1 GB of RAM and 1 CPU core; give the NAS node 15 GB of disk plus a second 8 GB disk. Four such machines fit inside 8 GB of host RAM if you start only the ones a given module needs. With 16 GB you can leave them all running.

4. Building the local nodes Any Linux

  1. Create a host-only or internal network in VirtualBox on 192.168.56.0/24, so the machines can see each other and your workstation. Give each node a NAT adapter as well, for internet access.
  2. Install Ubuntu Server 24.04 LTS on deb-srv. Choose the minimal install, enable the OpenSSH server, and set a static address.
  3. Install Rocky Linux 9 on rpm-srv. Choose the Minimal Install software selection. Leave SELinux enforcing - Module 11 depends on it, and disabling it is the habit this course exists to prevent.
  4. Set hostnames matching the diagram, and add all four to /etc/hosts on your workstation so you can reach them by name before Module 5 builds real DNS.
  5. Distribute your SSH key to every node with ssh-copy-id, and add a ~/.ssh/config block for each so ssh deb-srv just works. Intermediate Module 10 covers this if you need to revisit it.
  6. Snapshot every node and name the snapshot clean. You will restore these repeatedly.

5. The public server Any Linux

From Module 8 onward you need a server the internet can reach. Certificates, DNS records, mail deliverability and control-panel hosting cannot be learned behind a NAT.

A small VPS is the cheapest route. OVHcloud VPS is the example used throughout this course - the entry-level plan is inexpensive, includes a public IPv4 address and IPv6, and lets you choose Ubuntu or Rocky at deployment. Any provider works: Hetzner, DigitalOcean, Linode and local South African providers such as Afrihost or Xneelo are all equally suitable. What matters is a public IP, root or sudo access, and a console you can reach when SSH fails.

You will also needWhyRough cost
A domain nameDNS records, TLS certificates and mail all require one. A cheap .xyz or .co.za is fineA few dollars a year
The VPS itselfModules 8 to 11, and the capstoneRoughly the price of a coffee per month
A public server is a real server, with real consequences. Within hours of coming online it will be receiving automated login attempts - this is normal and universal, and you will see it in the logs in Module 11. Before Module 8 finishes you will have hardened it. Until then: use SSH keys rather than passwords from the very first login, do not reuse a password from anywhere else, and remember that you are responsible for what your server sends. A compromised server that starts sending spam is your problem, and your provider's abuse team will contact you rather than the attacker.

6. Snapshot discipline across several machines Any Linux

With one VM you snapshot occasionally. With five you need a habit, because the exercises in Modules 4, 6 and 11 deliberately break things.

A habit for many machines Local VirtualBox nodes: snapshots basebefore-m4destructiveafter-m5DNS server keptbefore-m6destructive Snapshot before any destructive exercise, named after the module.Snapshot after a module that leaves useful state behind.Prune old snapshots: long chains consume disk and slow the VM. The VPS: a rebuild script $ ./rebuild-vps.shupdates, users, keys,firewall, servicesminutes, not hours providers usually charge for snapshots, so rebuild instead Modules 4, 6 and 11 break things on purpose. The snapshot you took first is what makes that safe.
Figure 0.2 Snapshot discipline across the lab. Local nodes get named snapshots before destructive work and after useful milestones, while the public server is protected by a rebuild script rather than paid snapshots.
  • Snapshot before any exercise marked as destructive, and name it after the module.
  • Snapshot after completing a module that leaves useful state behind, such as the DNS server in Module 5.
  • Delete old snapshots periodically - VirtualBox snapshots consume disk and slow the machine once a chain grows long.
  • The VPS is the exception: most providers charge for snapshots, so instead keep a short rebuild script. Being able to rebuild it from nothing is more valuable than a snapshot anyway, and Module 12 turns that into an Ansible playbook.

7. Cloud instances, and why they differ Any Linux

Your VPS is a cloud instance, and the exam now expects you to be able to diagnose one. Four differences from a local VM matter from the very first login:

It configures itselfcloud-init sets the hostname, network and your SSH key at first boot from data the provider supplies. Module 2 covers it.
Two firewallsThe provider may filter traffic before it reaches you, and the host runs its own. When a port seems closed, check both.
No physical consoleThere is a web-based serial console instead. Find it in your provider's panel now, before you need it.
Metadata serviceA special address returns instance information to anything running on the host. Useful, and a security consideration - Module 11.