Skip to main content

Command Palette

Search for a command to run...

Deploying a Headless Ubuntu Server for a Minimalist Homelab

Updated
2 min read

Building a home lab is practically a rite of passage in cybersecurity, but you don't need massive enterprise hardware to get started. Today, I focused on building a solid, resource-efficient foundation by deploying a headless Ubuntu Server.

My primary host is a Linux Mint machine running on an Intel i3 11th Gen processor with 8GB of RAM. To keep the hardware footprint as low as possible while still simulating a realistic remote server environment, I bypassed the Graphical User Interface (GUI) entirely.

The VirtualBox Configuration

I used VirtualBox 7.2.6 to spin up Ubuntu Server 24.04 LTS. Because a headless server does not need to render graphical elements, I was able to allocate absolute minimal resources:

  • RAM: 2048 MB

  • CPU: 1 Core

  • Storage: 15 GB (Dynamically Allocated)

Networking and Remote Access

The core challenge of a headless setup is accessing it securely. During the Ubuntu installation, I ensured the OpenSSH Server package was included.

To connect from my host terminal to the isolated VirtualBox environment, I used a NAT network strategy with specific Port Forwarding rules.

Here is the exact routing configuration I applied in VirtualBox:

  • Protocol: TCP

  • Host IP: 127.0.0.1 (Localhost)

  • Host Port: 2222

  • Guest Port: 22 (Default SSH port)

With the VM running quietly in the background, I can now drop into the server directly from my Mint terminal using:

ssh tommy@127.0.0.1 -p 2222

The Takeaway

Running headless forces you to interact with the OS exactly how you would in a real-world, remote enterprise environment—strictly through the command line interface. It is a highly efficient way to practice systems administration without melting your CPU. Small steps lead to solid foundations.