What is GPU Passthrough?

●1 ●17 ●39
calendar_today • schedule1 min read

GPU passthrough is a virtualisation method used to directly assign a physical graphics processing unit to a single VM, ultimately bypassing the virtualisation software layers like the NVIDIA Virtual GPU (vGPU) manager. In this configuration, the physical hardware is accessed exclusively by the driver running inside that specific VM and is not shared with other environments. While a single VM can be assigned multiple physical GPUs depending on hypervisor limits, individual physical GPUs cannot simultaneously host virtual GPUs and perform passthrough.

This architectural limitation creates challenges for local development setups. For instance, I was trying to run a simple Kubernetes cluster through Docker Desktop on my Apple Silicon Macbook and I had encountered a now obvious hardware limitation because macOS container runtimes operates inside a Linux VM via the Hypervisor framework. This setup cannot natively pass through the Apple Silicon GPU using Metal to containers. As a result, running even a simple, small qwen2.5:7b model relied entirely on CPU software inference, which easily maxed-out the processor cores and caused noticeable performance bottlenecks. Like, I was unable to perform even the most basic tasks with this local model.

To address hardware isolation and GPU utilisation constraints in production environments, tools like Edera allow direct NVIDIA and AMD GPU passthrough into isolated Edera zones. By configuring hardware identifiers in the protect daemon, binding devices to the appropriate drivers, and launching zones with dedicated kernel variants, users can run GPU-accelerated workloads and verify hardware access directly through utilities like nvidia-smi.

Bryan Steiner has a really useful tutorial for GPU passthrough, if this is interesting to readers:
https://github.com/bryansteiner/gpu-passthrough-tutorial

Want more #linux & #gpu deep dives?

Join 6,115+ developers sharing real benchmarks, code breakdowns, and projects. Free forever.

1 Comment

1 vote

More Posts

How AI Is Changing Web Development, and What Developers Still Need to Understand

Daniel Decker - Nov 10

Make for Small Business: What It Is, What It Costs, and When to Use It

floxolab - Oct 23

KVM vs KVM - what is the question?

Nigel Douglas - Jul 28

My CUDA/GPU Journey: From "What Even Is a GPU?" to Actually Fascinated

KarthikUnni - Aug 23

What Security Teams Want From AI Agents Before They Let Them Act Alone

Tom Smithverified - Nov 18
chevron_left
1.5k Points • 57 Badges
17Posts
12Comments
17Connections
Head of Developer Relations at Edera. Working on projects related to Kubernetes, the Linux kernel, and secure software development,.

Related Jobs

View all jobs →

Commenters (This Week)

1 comment
1 comment
1 comment

Contribute meaningful comments to climb the leaderboard and earn badges!