/gpu-server-setup:gpu-server-setupfrom gpu-server-setup
Turns a Debian/Ubuntu server with NVIDIA or Intel Arc GPUs into a verified inference box: drivers, Docker GPU access, and optional serving stacks (vLLM, Ollama, llama.cpp, OpenVINO). Diagnoses common GPU issues.
Ships in gpu-server-setup. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Turn a bare Debian/Ubuntu server with NVIDIA or Intel Arc GPUs into a verified inference box: driver → Docker → GPU access, plus an optional serving stack on top. The skill encodes one field-tested path per vendor and the discipline around it, so you assemble a working server instead of improvising package sources.
Scope: Debian 10–13, Ubuntu 20.04–24.04 (26.04 for Intel), x86_64, NVIDIA and Intel discrete GPUs (Arc Alchemist and Battlemage, Arc Pro). No Windows/WSL, no RHEL-family, no AMD/ROCm, no Kubernetes. If the user is outside this scope, say so instead of adapting on the fly.
One package source per vendor, and a hard gate after every layer. Each
layer is proven working before the next one starts; a failing gate stops the
flow — fix it via the vendor's troubleshooting.md, re-run the gate, only
then continue. Most "GPU server is broken" situations are a skipped gate or a
second package source.
The mandatory deliverable is the verified Docker + GPU base — the stage-2 gate (a container sees every GPU). Serving stacks are optional add-ons: deploy one only when the user asked for it. A pass that ends at a proven stage-2 gate with no stack is a complete, successful Prepare, not an unfinished one.
Detect the vendor first (lspci -nn | grep -Ei 'vga|3d|display'): [10de:…]
is NVIDIA, [8086:56xx] Alchemist, [8086:e2xx] Battlemage (an Intel id
outside these is usually the integrated GPU; leave it alone). Then every
stage reads the vendor's reference; mixed hosts run both columns.
| Stage | NVIDIA | Intel Arc |
|---|---|---|
| 1 driver | references/nvidia/driver-cuda.md: CUDA apt repo, DKMS module, headers metapackage | references/intel/driver.md: in-tree i915 (Alchemist) or xe (Battlemage), distro firmware, ReBAR, newer kernel from backports when needed; xe on Alchemist is faster and less stable (section 2a) |
| 1 gate | nvidia-smi lists every GPU | every card bound to i915/xe, a render node per card in /dev/dri/by-path, GuC running, ReBAR = VRAM size |
| 2 docker | references/docker-engine.md + references/nvidia/container-toolkit.md | references/docker-engine.md + references/intel/docker.md (no toolkit, /dev/dri devices) |
| 2 gate | docker run --rm --runtime=nvidia --gpus all ubuntu nvidia-smi | docker run --rm --device /dev/dri intel/compute-runtime:<tag> clinfo -l |
| 3 stacks | presets/ | references/intel/stacks.md (llama.cpp SYCL first; vLLM only on Battlemage, or via the A770 recipe) |
| power, fans | references/nvidia/monitoring.md | references/intel/power-cooling.md |
| broken? | references/nvidia/troubleshooting.md | references/intel/troubleshooting.md |
| Mode | Trigger | What you produce |
|---|---|---|
| Prepare | clean/fresh server to set up | stages 0→2 always; 3 only if a stack was requested; 4 always |
| Deploy | driver/Docker already fine, add a stack | stages 3→4 on top of a verified base |
| Diagnose | "X does not work / does not see GPU" | layer-by-layer audit, fix, re-gate |
Standalone requests on an already-working server (cap the power limit, fan control, idle power, monitoring) are valid tasks of their own — no full pass, just the live-server rules plus the matching reference (see "On-request extras").
With shell access to the server, detect facts instead of asking. Without
access, produce the full instruction with <PLACEHOLDERS> and a fill-in list.
cat /etc/os-release),
GPUs and vendor (lspci -nn | grep -Ei 'vga|3d|display', lspci -tv for
which slot hangs off the CPU or the chipset), disk (df -h /, lsblk -d -o NAME,ROTA,SIZE), Secure Boot (mokutil --sb-state), whether a serving
stack is wanted at all and which ("none" is a valid answer), which models,
single- or multi-GPU, network exposure (open network or closed). Intel
Arc: Resizable BAR (sudo lspci -vv -d 8086: | grep 'BAR 2: current size'
must equal the VRAM); when it shows 256MB, the user switches BIOS
settings before anything else. Ask only what you cannot detect.troubleshooting.md and fix the lowest failing layer first.sudo apt update && sudo apt -y upgrade
sudo apt -y install mc ca-certificates curl gnupg lsb-release wget jq
If the upgrade changes the kernel/libc, prepare stage 1 for that kernel
before an approved reboot (NVIDIA: headers and the DKMS module; Intel:
firmware and any DKMS module). A working old kernel is not that gate.references/nvidia/driver-cuda.md): add the CUDA repo via
cuda-keyring for the exact $distro/$arch. Mandatory prerequisite:
headers for the running kernel AND the matching tracking headers
metapackage (linux-headers-amd64 on standard Debian amd64; match the
kernel flavour on Ubuntu/cloud/RT). GATE: every installed kernel image
has usable headers. Then the driver — open kernel modules for Turing
and newer, proprietary for Pascal and older. Docker-only hosts need
no CUDA toolkit. Before rebooting, build/check NVIDIA DKMS modules for
every installed kernel. Reboot with approval, reconnect.
GATE: nvidia-smi lists every physical GPU.references/intel/driver.md): the driver is in the kernel;
install the distro firmware package (firmware-intel-graphics on Debian
13, non-free-firmware enabled), check ReBAR and the real PCIe link of
every card. Alchemist on Debian 13 wants the trixie-backports kernel when
the host must see GPU temperatures. No compute runtime on the host.
GATE: every card bound to i915/xe, one render node per card, GuC
running, BAR2 = VRAM.references/docker-engine.md), log caps in daemon.json.
nvidia-container-toolkit, then
sudo nvidia-ctk runtime configure --runtime=docker and
sudo systemctl restart docker (both mandatory).
GATE: docker run --rm --runtime=nvidia --gpus all ubuntu nvidia-smi
shows the same GPUs as the host.--device /dev/dri/renderD*. Add the operator to render.
GATE: clinfo -l in intel/compute-runtime lists every card./opt/containers/<service> with its weights inside, one GPU pin per service (NVIDIA device_ids;
Intel ONEAPI_DEVICE_SELECTOR or a single render node). NVIDIA: start from
presets/. Intel: references/intel/stacks.md (CUDA presets do not apply).
Pinned image tags, telemetry off, logs capped, every <PLACEHOLDER> filled.
GATE: health endpoint answers AND a real request returns a sane
response (/v1/models, then one chat/embedding call), and the GPU is
busy while it answers (nvidia-smi / intel_gpu_top).sudo bash scripts/check.sh # base: host + docker
sudo bash scripts/check.sh http://<SERVER_IP>:8081/health # + each service
Deliver: what was installed (versions), the service map (service → GPU →
port → URL; only when stacks exist), remaining <PLACEHOLDERS>, and the
warnings that apply (auth off, ports exposed, driver hold, out-of-tree
modules).nvidia-smi -pl + nvidia-power-limit.service
(references/nvidia/monitoring.md). Intel: hwmon power1_max +
scripts/arc-power-cap.sh as arc-power-cap.service
(references/intel/power-cooling.md). Never invent the wattage: the user
names the target, or you propose one and confirm before applying.fancontrol, and lower idle heat (Intel:
references/intel/power-cooling.md sections 1-4).scripts/arc-aspm.sh, tested with a revert timer first.nvitop (references/nvidia/monitoring.md); Intel
intel_gpu_top, nvtop, sensors (references/intel/driver.md).cuda-keyring) — never ubuntu-drivers, never distro
nvidia-* packages, never .run installers, never a mix; toolkit from
NVIDIA's repos the same way. Intel: kernel and firmware from the distro
(same suite for both), the compute runtime inside the images — never a
host-side mix of PPAs, GitHub .debs and distro packages.<PLACEHOLDERS> collected into a fill-in list. Flag every
open-by-default setting (WEBUI_AUTH: False, ports on 0.0.0.0) as
closed-network-only.| Layer | NVIDIA proven by | Intel proven by | Broken? |
|---|---|---|---|
| hardware | lspci | lspci -nn, BAR2 size, link on the card's 4fa0 bridge | BIOS (ReBAR) / slot / passthrough |
| kernel readiness | headers metapackage, headers and modinfo -k <k> nvidia per kernel | modinfo -k <k> i915 (or xe) per kernel, DKMS modules per kernel | install headers / kernel package, build DKMS before reboot |
| driver | nvidia-smi | render node per card, GuC in dmesg | NVIDIA: Secure Boot, DKMS; Intel: firmware, force_probe, kernel version |
| docker+GPU | docker run --gpus all ubuntu nvidia-smi | docker run --device /dev/dri intel/compute-runtime clinfo -l | NVIDIA: toolkit, nvidia-ctk; Intel: device grant, render GID |
| service | curl /health, /v1/models, real request | same | logs, VRAM budget, GPU pin |
scripts/check.sh runs the whole column top-to-bottom for the detected
vendor (--vendor nvidia|intel to force, --no-docker-run to skip the
container probe, extra args = health URLs).
ubuntu-drivers autoinstall or distro packages "because it's
quicker" — the exact mixed-sources knot this skill exists to prevent.nvidia-ctk runtime configure or the systemctl restart docker
after it — toolkit installed, runtime still absent.references/intel/driver.md section 2a). A wedged xe card needs a reboot,
not a driver rebind.references/intel/stacks.md).linux-headers-$(uname -r) without the headers metapackage —
the next kernel upgrade can leave DKMS modules unbuilt until a power cut
exposes it.image: :latest in production compose files instead of a pinned tag.references/docker-engine.md — Docker CE, daemon defaults, /opt/containers layout (both vendors)references/nvidia/driver-cuda.md — CUDA repo, driver choice, headers, pinning, Secure Bootreferences/nvidia/container-toolkit.md — toolkit, runtime, GPU passthroughreferences/nvidia/monitoring.md — nvitop, power limit (set / verify / persist)references/nvidia/troubleshooting.md — 3-layer checklist, symptom→cause→fixreferences/intel/driver.md — i915/xe, firmware, ReBAR, PCIe links, kernel choice, host toolsreferences/intel/docker.md — /dev/dri passthrough, render group, card pinning, gatesreferences/intel/stacks.md — what runs on Arc: llama.cpp, Ollama, OpenVINO, vLLMreferences/intel/power-cooling.md — power/clock cap, fans from GPU temperature, ASPM idle powerreferences/intel/troubleshooting.md — 3-layer checklist, symptom→cause→fixpresets/vllm.md, presets/infinity.md, presets/openwebui.md, presets/ollama.md — NVIDIA stacksscripts/check.sh — staged verification (host → docker → services), NVIDIA and Intelscripts/arc-power-cap.sh — persistent power/clock cap for Intel Arcscripts/arc-aspm.sh — ASPM L1 on Intel Arc chains onlyWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
gpu-server, nvidia, intel-arc, cuda, docker-gpu, llm-inference
gpu-server-setup@rpa-skills is listed by evilfreelancer/rpa-skills — review the source before installing
npx claudepluginhub evilfreelancer/rpa-skills --plugin gpu-server-setupOther plugins' skills for the same job