# What to do with a homelab

2021-09-06 by Dave Gallant
self‑hosted proxmox tailscale

A homelab can be an inexpensive way to host a multitude of internal/external services and learn a lot in the process.

Do you want host your own media server? ad blocker? reverse proxy? Are you interested in learning more about Linux? Virtualization? Networking? Security? A homelab can be a playground to enhance your computer skills, without worrying about breaking anything important.

One of the best parts about building a homelab is that it doesn’t have to be a large investment in terms of hardware. One of the simplest ways to build a homelab is out of a refurbished computer. Having multiple machines/nodes provides the advantage of increased redundancy, but starting out with a single node is enough to reap many of the benefits of having a homelab.

## Virtualization#

Virtualizing your hardware is an organized way of dividing up your machine’s resources. This can be done with something such as a Virtual Machine or something lighter like a container using LXC or runC. Containers have much less overhead in terms of boot time and storage allocation. This Stack Overflow answer sums it up nicely.

A hypervisor such as Proxmox can be installed in minutes on a new machine. It provides a web interface and a straight-forward way to spin up new VMs and containers. Even if your plan is to run mostly docker containers, Proxmox can be a useful abstraction for managing VMs, disks and running scheduled backups. You can even run docker within an LXC container by enabling nested virtualization. You’ll want to ensure that VT-d and VT-x are enabled in the BIOS if you decide to install a hypervisor to manage your virtualization.

## Services#

Here is a list of some useful services to consider:

- Jellyfin or Plex - a common gateway to self-hosting that enables a “self-hosted Netflix” experience that puts you in control of the content (guaranteed to make your partner and kids happy)
- changedetection - is a self-hosted equivalent to something like visualping.io that can notify you when a webpage changes and keep track of the diffs
- Adguard or Pihole - can block a list of known trackers for all clients on your local network with the added benefit of speeding up web page load times
- gitea - A lightweight git server that can be used to mirror git repos and host private content
- miniflux - a minimalist RSS reader
- gethomepage - A customizable landing page for quick access to services with many supported widgets that can query APIs and display information
- Uptime Kuma - A tool for monitoring the uptime of services, with notification support
- Speedtest Tracker - a way to monitor the performance of your internet connection and/or vpn connection
- Stirling-PDF - a self-hosted PDF manipulation tool that will keep your data private

There is a large number of services you can self-host, including your own applications that you might be developing. Homelabbing allows you to have control over your data and services, and gives you the opportunity to be a software, network, and infrastructure engineer all at once.

## VPN#

Tailscale is a quick way to create a flat network for all of your services. With its MagicDNS, your can reference the names of machines like `changedetection` rather than using an IP address, or managing DNS yourself. By using this mesh-like VPN, you can easily create a secure tunnel to your homelab from anywhere.

## Monitoring#

Monitoring can become an important aspect of your homelab after it starts to become something that is relied upon. One of the simplest ways to setup some monitoring is using netdata. It can be installed on individual containers, VMs, and also a hypervisor (such as Proxmox). All of the monitoring works out of the box by detecting disks, memory, network interfaces, etc.

Additionally, agents installed on different machines can all be centrally viewed in netdata, and it can alert you when some of your infrastructure is down or in a degraded state. Adding additional nodes to netdata is as simple as a 1-line shell command.

As mentioned above, Uptime Kuma is a convenient way to track uptime and monitor the availability of your services.

## In Summary#

Building out a homelab can be a rewarding experience and it doesn’t require buying a rack full of expensive servers to get a significant amount of utility. There are many services that you can run that require very minimal setup, making it possible to get a server up and running in a short period of time, with monitoring, and that can be securely connected to remotely.

If you’re looking for a steady stream of ideas for your homelab, check out selfhosted.show.