Free Guide

Self-Hosting AI the Right Way

An opinionated, 8-chapter guide to a production-ready local LLM stack on Rocky Linux 9.

This is a complete, free walkthrough for deploying a production-ready local LLM stack on Rocky Linux 9 — with Ollama serving models, Open WebUI providing a ChatGPT-like interface, nginx handling SSL and WebSocket streaming, GPU passthrough for hardware acceleration, Prometheus and Grafana for monitoring, and SELinux enforcing throughout.

Every step includes verification commands so you know it worked before moving on. By the end, you’ll have a self-hosted AI stack that runs on a single host, survives reboots, and gives you full visibility into what your hardware is doing.

Table of Contents

  1. Chapter 1 Why This Guide Exists Why a production Ollama + Open WebUI stack on Rocky Linux 9 needs more than a quick-start tutorial, and what you'll have when done.
  2. Chapter 2 Prerequisites & Architecture The Ollama + Open WebUI deployment architecture on Rocky Linux 9: hardware sizing by VRAM tier, network needs, and pre-flight checklist.
  3. Chapter 3 GPU Setup & NVIDIA Drivers Pass through your NVIDIA GPU from Proxmox, install drivers on Rocky Linux with SELinux enforcing, and verify — or skip for CPU-only.
  4. Chapter 4 Ollama Installation & Configuration Install Ollama as a systemd service, configure production-ready settings, pull your first model, and verify the API is serving.
  5. Chapter 5 Open WebUI + nginx Reverse Proxy Deploy Open WebUI in a Podman container with systemd integration, put nginx in front with SSL and WebSocket support, and lock down the firewall.
  6. Chapter 6 Monitoring & Operations Add Prometheus and Grafana monitoring, GPU metrics, automated backups, and fail2ban to your Ollama stack on Rocky Linux 9.
  7. Chapter 7 Gotchas & Troubleshooting Diagnose Ollama and Open WebUI failures on Rocky Linux 9: 8 most common failure modes and a step-by-step fix sequence.
  8. Chapter 8 Quick Reference Quick reference for your Ollama + Open WebUI stack on Rocky Linux 9: file paths, ports, commands, and model recommendations.

Want the automation code? Get the Ansible playbooks that deploy this entire stack in minutes.

Get Guide + Playbooks — $14

Found this guide helpful? You can support future guides and playbooks.

Support the Developer

Never Miss a Guide

Get notified when new infrastructure guides and Ansible playbooks are published.