Aqib Mehedi
ExpertiseProjectsApproachArsenalBlogContactCoursesShopSign In
Hire Me
Aqib Mehedi
DevOps & AI
9/6/2026
5 MIN READ

Self-Hosting DeepSeek and Llama on Proxmox and Kubernetes: Bare-Metal GPU Clustering Guide

Architect
Architect
Lead AI Solutions Architect & Engineer
Self-Hosting DeepSeek and Llama on Proxmox and Kubernetes: Bare-Metal GPU Clustering Guide

A comprehensive engineering guide to self-hosting frontier LLMs on Proxmox VE and Kubernetes. Master PCIe bifurcation, GPU passthrough, and vLLM clustering.

While public cloud providers (AWS, GCP, Azure) offer elastic GPU instances, their hourly pricing can quickly drain operational budgets. For teams generating millions of tokens daily, running on rented H100s at $3.50/hour per GPU equates to over $25,000 monthly for a standard 8-GPU node.

Building an On-Premises Bare-Metal GPU Cluster pays for itself in less than 6 months.

In this comprehensive guide, we walk through constructing a private enterprise AI cluster running on Proxmox Virtual Environment (PVE) and Kubernetes (k3s), configured for high-throughput vLLM serving.


Hardware Architecture: Consumer vs Enterprise Silicon

For on-premises inference, two primary hardware routes exist:

  1. The Enterprise Route: 4x or 8x NVIDIA RTX 6000 Ada (48GB VRAM each) or refurbished NVIDIA A100 80GB PCIe cards.
  2. The High-Density Prosumer Route: 4x NVIDIA GeForce RTX 4090 (24GB VRAM each) using PCIe bifurcation and water cooling, yielding 96GB total VRAM capable of serving 70B models in FP8 precision for under $10,000 total build cost.
Cluster Physical Topology:
┌─────────────────────────────────────────────────────────────┐
│              Supermicro / ASUS 4U Rack Server               │
│  Dual AMD EPYC 9354 (64 Cores) • 512GB DDR5 ECC RAM         │
│                                                             │
│  PCIe Gen 5 Slot 1: [NVIDIA RTX 4090 / 6000 Ada - 16x]      │
│  PCIe Gen 5 Slot 2: [NVIDIA RTX 4090 / 6000 Ada - 16x]      │
│  PCIe Gen 5 Slot 3: [NVIDIA RTX 4090 / 6000 Ada - 16x]      │
│  PCIe Gen 5 Slot 4: [NVIDIA RTX 4090 / 6000 Ada - 16x]      │
│                                                             │
│  Networking: Dual 100GbE Mellanox ConnectX-6 NICs           │
└──────────────────────────────┬──────────────────────────────┘
                               │
                               ▼
               [Proxmox VE 8.3 Hypervisor]
                               │
               ┌───────────────┴───────────────┐
               ▼                               ▼
       [VM 101: Kubernetes Node]      [VM 102: Storage Node]
       (4x GPU Passthrough via IOMMU) (Ceph / TrueNAS NVMe Pool)

Proxmox IOMMU Configuration for GPU Passthrough

To pass multiple GPUs directly into a virtualized Kubernetes worker with zero hypervisor overhead:

# 1. Enable IOMMU in GRUB (/etc/default/grub)
GRUB_CMDLINE_LINUX_DEFAULT="quiet intel_iommu=on iommu=pt vfio_iommu_type1.allow_unsafe_interrupts=1 pcie_acs_override=downstream,multifunction"
update-grub

# 2. Blacklist host Nouveau and NVIDIA drivers (/etc/modprobe.d/pve-blacklist.conf)
blacklist nouveau
blacklist nvidia
blacklist nvidia*

# 3. Bind GPUs to VFIO driver (/etc/modprobe.d/vfio.conf)
# Find GPU PCI IDs with 'lspci -nn | grep -i nvidia'
options vfio-pci ids=10de:2684,10de:22ba

Kubernetes vLLM Deployment Manifest

Once passed through into the Linux VM, deploy vLLM with NVIDIA Container Toolkit:

apiVersion: apps/v1
kind: Deployment
metadata:
  name: vllm-deepseek-qwen-32b
  namespace: ai-serving
spec:
  replicas: 1
  selector:
    matchLabels:
      app: deepseek-32b
  template:
    metadata:
      labels:
        app: deepseek-32b
    spec:
      containers:
      - name: vllm
        image: vllm/vllm-openai:v0.7.2
        args:
          - "--model"
          - "deepseek-ai/DeepSeek-R1-Distill-Qwen-32B"
          - "--tensor-parallel-size"
          - "2"
          - "--max-model-len"
          - "16384"
          - "--gpu-memory-utilization"
          - "0.94"
        resources:
          limits:
            nvidia.com/gpu: 2
        ports:
        - containerPort: 8000
        volumeMounts:
        - mountPath: /root/.cache/huggingface
          name: model-cache
      volumes:
      - name: model-cache
        persistentVolumeClaim:
          claimName: fast-nvme-models-pvc

Financial & Operational Payoff

  • Monthly Cloud Cost (AWS g6e.12xlarge): ~$4,800/mo.
  • On-Prem Server Build (amortized over 24 months): ~$650/mo including electricity (1,200W sustained load at $0.12/kWh).
  • Net Annual Savings: Over $49,000 USD while maintaining 100% internal data sovereignty.

Architect's Note

The full technical whitepaper for this topic is available upon request for enterprise clients. I frequently update these entries as state-of-the-art patterns evolve in the AI and Mobile ecosystems.

Architect
ArchitectBASIS National ICT Award Winner

Lead AI Solutions Architect in Bangladesh specializing in Custom Large Language Models, Enterprise Agentic RAG, and High-Scale Mobile Architecture. Explore architectural blueprints & consulting →

Continue Exploring

Autonomous Coding Agents in CI/CD: Automated PR Reviews, Refactoring, and Test Generation

Autonomous Coding Agents in CI/CD: Automated PR Reviews, Refactoring, and Test Generation

Autonomous Coding Agents in CI/CD: Automated PR Reviews, Refactoring, and Test Generation

Autonomous Coding Agents in CI/CD: Automated PR Reviews, Refactoring, and Test Generation

Autonomous Coding Agents in CI/CD: Automated PR Reviews, Refactoring, and Test Generation

Autonomous Coding Agents in CI/CD: Automated PR Reviews, Refactoring, and Test Generation

Have a specific architectural challenge?

Let's discuss how we can implement these patterns in your next high-scale production system.

SCHEDULE A CONSULTATION
Store & Digital Products

Production Software & Tools

Instant access to standalone desktop suites, agentic AI engines, mobile applications, and white-label source code.

Explore Store
KeyNest - Zero-Knowledge Encrypted Password & Vault App
Mobile App

KeyNest - Zero-Knowledge Encrypted Password & Vault App

Overview KeyNest is an encrypted mobile credential vault engineered for personal and fami...

Price৳100
View Details
Foldify - Windows Folder Customizer
Desktop Software

Foldify - Windows Folder Customizer

Overview Foldify is a native desktop productivity utility designed to enhance visual orga...

Price৳100
View Details
RoomLens Pro – Smart Multi-Participant Virtual Camera & Room Splitter
Desktop Software

RoomLens Pro – Smart Multi-Participant Virtual Camera & Room Splitter

Overview RoomLens Pro is a specialized virtual camera software utility engineered for mod...

Price৳100
View Details
DoodoMe
Mobile App

DoodoMe

Overview DoodoMe is an interactive earlylearning sensory discovery mobile application des...

Free Download
View Details
ResumeMe
Digital

ResumeMe

ResumeMe AIPowered Interactive Resume Builder ResumeMe is a featurerich, interactive re...

Free Download
View Details
Obsidian Movies
Digital

Obsidian Movies

Obsidian Movies Product Specifications and Description Executive Summary Obsidian Movi...

Free Download
View Details
GitBridge
Digital

GitBridge

GitBridge: EnterpriseGrade Git Migration and Repository Synchronization Desktop Suite Gi...

Free Download
View Details
BD Jobs Finder
Digital

BD Jobs Finder

BD Jobs Finder A smart desktop app that scrapes 5,800+ live jobs from bdjobs.com and mat...

Free Download
View Details
Modio – Netflix-Style Movie Streaming App
Mobile App

Modio – Netflix-Style Movie Streaming App

Overview Modio is a premium mobile video streaming client designed with a modern entertai...

Free Download
View Details
DevGarbage Cleaner – Professional Storage Optimizer
Desktop Software

DevGarbage Cleaner – Professional Storage Optimizer

Overview DevGarbage Cleaner is an automated storage optimization utility designed specifi...

Free Download
View Details
Prometheus Lab (Zero Cost)
Digital

Prometheus Lab (Zero Cost)

Prometheus Lab: The Ultimate AIPowered Content Creation Studio Transform ideas into capt...

Price৳599
View Details
Milo AI – Personal Second Brain & Task Orchestrator
Productivity Suite

Milo AI – Personal Second Brain & Task Orchestrator

Overview Milo AI is a personal secondbrain desktop workspace and task orchestration hub. ...

Price৳250
View Details
Contragraviton – Agentic Project Manager
AI Tool

Contragraviton – Agentic Project Manager

Overview Contragraviton is an autonomous Agentic Process Orchestrator (APO) engineered fo...

Price৳699
View Details
CamTow – Phone Camera to PC Webcam Utility
Mobile App

CamTow – Phone Camera to PC Webcam Utility

Overview CamTow is a companion utility system that transforms your highresolution mobile ...

Free Download
View Details
SleeperAI D-LLM Android Service
Mobile App

SleeperAI D-LLM Android Service

Overview SleeperAI is an ondevice distributed language model service designed for Android...

Price৳100
View Details
Shelldon Portable Encrypted Browser
Desktop Software

Shelldon Portable Encrypted Browser

Overview Shelldon is a portable, zerofootprint web browser engineered for secure, isolate...

Free Download
View Details
PC-to-WWW P2P Tunneling Utility
Digital

PC-to-WWW P2P Tunneling Utility

PCtoWWW — Firebase & WebRTC Serverless P2P Tunnel PCtoWWW is a reusable, serverless peer...

Price৳100
View Details
MarkCamera – White-Label Watermark App
Software

MarkCamera – White-Label Watermark App

A complete, productionready whitelabel watermarking app built with Flutter. MarkCamera all...

Price৳100
View Details
KeyNest - Zero-Knowledge Encrypted Password & Vault App
Mobile App

KeyNest - Zero-Knowledge Encrypted Password & Vault App

Overview KeyNest is an encrypted mobile credential vault engineered for personal and fami...

Price৳100
View Details
Foldify - Windows Folder Customizer
Desktop Software

Foldify - Windows Folder Customizer

Overview Foldify is a native desktop productivity utility designed to enhance visual orga...

Price৳100
View Details
RoomLens Pro – Smart Multi-Participant Virtual Camera & Room Splitter
Desktop Software

RoomLens Pro – Smart Multi-Participant Virtual Camera & Room Splitter

Overview RoomLens Pro is a specialized virtual camera software utility engineered for mod...

Price৳100
View Details
DoodoMe
Mobile App

DoodoMe

Overview DoodoMe is an interactive earlylearning sensory discovery mobile application des...

Free Download
View Details
ResumeMe
Digital

ResumeMe

ResumeMe AIPowered Interactive Resume Builder ResumeMe is a featurerich, interactive re...

Free Download
View Details
Obsidian Movies
Digital

Obsidian Movies

Obsidian Movies Product Specifications and Description Executive Summary Obsidian Movi...

Free Download
View Details
GitBridge
Digital

GitBridge

GitBridge: EnterpriseGrade Git Migration and Repository Synchronization Desktop Suite Gi...

Free Download
View Details
BD Jobs Finder
Digital

BD Jobs Finder

BD Jobs Finder A smart desktop app that scrapes 5,800+ live jobs from bdjobs.com and mat...

Free Download
View Details
Modio – Netflix-Style Movie Streaming App
Mobile App

Modio – Netflix-Style Movie Streaming App

Overview Modio is a premium mobile video streaming client designed with a modern entertai...

Free Download
View Details
DevGarbage Cleaner – Professional Storage Optimizer
Desktop Software

DevGarbage Cleaner – Professional Storage Optimizer

Overview DevGarbage Cleaner is an automated storage optimization utility designed specifi...

Free Download
View Details
Prometheus Lab (Zero Cost)
Digital

Prometheus Lab (Zero Cost)

Prometheus Lab: The Ultimate AIPowered Content Creation Studio Transform ideas into capt...

Price৳599
View Details
Milo AI – Personal Second Brain & Task Orchestrator
Productivity Suite

Milo AI – Personal Second Brain & Task Orchestrator

Overview Milo AI is a personal secondbrain desktop workspace and task orchestration hub. ...

Price৳250
View Details
Contragraviton – Agentic Project Manager
AI Tool

Contragraviton – Agentic Project Manager

Overview Contragraviton is an autonomous Agentic Process Orchestrator (APO) engineered fo...

Price৳699
View Details
CamTow – Phone Camera to PC Webcam Utility
Mobile App

CamTow – Phone Camera to PC Webcam Utility

Overview CamTow is a companion utility system that transforms your highresolution mobile ...

Free Download
View Details
SleeperAI D-LLM Android Service
Mobile App

SleeperAI D-LLM Android Service

Overview SleeperAI is an ondevice distributed language model service designed for Android...

Price৳100
View Details
Shelldon Portable Encrypted Browser
Desktop Software

Shelldon Portable Encrypted Browser

Overview Shelldon is a portable, zerofootprint web browser engineered for secure, isolate...

Free Download
View Details
PC-to-WWW P2P Tunneling Utility
Digital

PC-to-WWW P2P Tunneling Utility

PCtoWWW — Firebase & WebRTC Serverless P2P Tunnel PCtoWWW is a reusable, serverless peer...

Price৳100
View Details
MarkCamera – White-Label Watermark App
Software

MarkCamera – White-Label Watermark App

A complete, productionready whitelabel watermarking app built with Flutter. MarkCamera all...

Price৳100
View Details
KeyNest - Zero-Knowledge Encrypted Password & Vault App
Mobile App

KeyNest - Zero-Knowledge Encrypted Password & Vault App

Overview KeyNest is an encrypted mobile credential vault engineered for personal and fami...

Price৳100
View Details
Foldify - Windows Folder Customizer
Desktop Software

Foldify - Windows Folder Customizer

Overview Foldify is a native desktop productivity utility designed to enhance visual orga...

Price৳100
View Details
RoomLens Pro – Smart Multi-Participant Virtual Camera & Room Splitter
Desktop Software

RoomLens Pro – Smart Multi-Participant Virtual Camera & Room Splitter

Overview RoomLens Pro is a specialized virtual camera software utility engineered for mod...

Price৳100
View Details
DoodoMe
Mobile App

DoodoMe

Overview DoodoMe is an interactive earlylearning sensory discovery mobile application des...

Free Download
View Details
ResumeMe
Digital

ResumeMe

ResumeMe AIPowered Interactive Resume Builder ResumeMe is a featurerich, interactive re...

Free Download
View Details
Obsidian Movies
Digital

Obsidian Movies

Obsidian Movies Product Specifications and Description Executive Summary Obsidian Movi...

Free Download
View Details
GitBridge
Digital

GitBridge

GitBridge: EnterpriseGrade Git Migration and Repository Synchronization Desktop Suite Gi...

Free Download
View Details
BD Jobs Finder
Digital

BD Jobs Finder

BD Jobs Finder A smart desktop app that scrapes 5,800+ live jobs from bdjobs.com and mat...

Free Download
View Details
Modio – Netflix-Style Movie Streaming App
Mobile App

Modio – Netflix-Style Movie Streaming App

Overview Modio is a premium mobile video streaming client designed with a modern entertai...

Free Download
View Details
DevGarbage Cleaner – Professional Storage Optimizer
Desktop Software

DevGarbage Cleaner – Professional Storage Optimizer

Overview DevGarbage Cleaner is an automated storage optimization utility designed specifi...

Free Download
View Details
Prometheus Lab (Zero Cost)
Digital

Prometheus Lab (Zero Cost)

Prometheus Lab: The Ultimate AIPowered Content Creation Studio Transform ideas into capt...

Price৳599
View Details
Milo AI – Personal Second Brain & Task Orchestrator
Productivity Suite

Milo AI – Personal Second Brain & Task Orchestrator

Overview Milo AI is a personal secondbrain desktop workspace and task orchestration hub. ...

Price৳250
View Details
Contragraviton – Agentic Project Manager
AI Tool

Contragraviton – Agentic Project Manager

Overview Contragraviton is an autonomous Agentic Process Orchestrator (APO) engineered fo...

Price৳699
View Details
CamTow – Phone Camera to PC Webcam Utility
Mobile App

CamTow – Phone Camera to PC Webcam Utility

Overview CamTow is a companion utility system that transforms your highresolution mobile ...

Free Download
View Details
SleeperAI D-LLM Android Service
Mobile App

SleeperAI D-LLM Android Service

Overview SleeperAI is an ondevice distributed language model service designed for Android...

Price৳100
View Details
Shelldon Portable Encrypted Browser
Desktop Software

Shelldon Portable Encrypted Browser

Overview Shelldon is a portable, zerofootprint web browser engineered for secure, isolate...

Free Download
View Details
PC-to-WWW P2P Tunneling Utility
Digital

PC-to-WWW P2P Tunneling Utility

PCtoWWW — Firebase & WebRTC Serverless P2P Tunnel PCtoWWW is a reusable, serverless peer...

Price৳100
View Details
MarkCamera – White-Label Watermark App
Software

MarkCamera – White-Label Watermark App

A complete, productionready whitelabel watermarking app built with Flutter. MarkCamera all...

Price৳100
View Details
Aqib Mehedi

Senior Solutions Architect specializing in the intersection of AI, Mobile Engineering, and Scalable Cloud Infrastructure.

Gulshan, Dhaka, Bangladesh

Navigation

  • Project Portfolio
  • Expertise
  • Hire / Contact
  • Blogs

Connect

  • LinkedIn
  • GitHub
  • Facebook
  • Email

© 2026 Aqib Mehedi. All rights reserved.

Engineering Intelligence. Delivering Impact.