Profile
Back to NewsBack
GitHub Trending 7 min
Reader Mode
noon-at-cgn/geforce-sriov: Enable SR-IOV vGPU for consumer Ampere, Ada, and Blackwell GeForce cards.

noon-at-cgn/geforce-sriov: Enable SR-IOV vGPU for consumer Ampere, Ada, and Blackwell GeForce cards.

10 hours ago

geforce-sriov

Share one NVIDIA GeForce (or workstation) GPU across multiple Linux KVM virtual machines using SR-IOV virtual functions and NVIDIA's vGPU software. Works on Proxmox VE, libvirt, and plain QEMU.

flowchart LR
    subgraph PASSTHROUGH["Standard passthrough"]
        G["GeForce GPU"] --> ONE["One VM only"]
    end
    subgraph SRIOV["With geforce-sriov"]
        PF["GeForce GPU (PF)"] --> VF1["VF 1"] --> VM1["Linux / Windows VM"]
        PF --> VF2["VF 2"] --> VM2["Linux / Windows VM"]
        PF --> VF3["VF 3..32"] --> VM3["More VMs + optional host CUDA/display"]
    end
    PASSTHROUGH ~~~ SRIOV
[!IMPORTANT]
- All modifications are software-only and fully reversible. Changes are minimal, targeted, and applied once at installation.
- No firmware flashing, no additional background services, no live memory patching, and no runtime kernel hooks.
- Guest kernel drivers remain untouched with their original NVIDIA digital signatures, and all host changes are backed up and reversible via sudo geforce-sriov uninstall.
> NVIDIA vGPU software and licenses are not included.
[!NOTE]
Status: beta. Tested across Ampere, Ada, and Blackwell on Linux KVM. Please file a compatibility report using sudo geforce-sriov report whether your hardware works or not.

Screenshots

Proxmox VE host running host desktop, host CUDA on two GPUs, and two vGPU VMs Debian 12 guest on an RTX PRO 6000 Blackwell DC-8Q vGPU Windows 11 guest with RTX PRO 6000 Blackwell DC-8Q in GPU-Z and NVIDIA Control Panel
Proxmox VE host: RTX 5060 Ti desktop, host CUDA, and active vGPU VMs Debian 12 guest on Blackwell (DC-8Q, 8 GiB VRAM) Windows 11 guest on Blackwell (DC-8Q, 8 GiB VRAM)

Features

  • Share one GPU across multiple VMs: SR-IOV vGPU on Ampere, Ada, and Blackwell with up to 32 VFs via PCIe ARI, supporting stock Linux and Windows guests (including R620 Linux Wayland).
  • Secure Boot and signed guest drivers: Guest kernel drivers preserve original NVIDIA signatures with no need to disable Secure Boot or driver signature enforcement.
  • Unlock datacenter and workstation performance on GeForce cards: Removes artificial consumer limits out of the box, restoring 2x FP32 Tensor throughput (Ampere/Ada), full CUDA P0 memory clocks, hardware-isolated Universal MIG (R620+ Blackwell), multi-GPU BAR1 P2P, unlimited NVENC streams, workstation OpenGL acceleration, GPUDirect RDMA, and GPUDirect Storage.
  • Flexible VRAM sizing and profiles: Automatic VRAM scaling, mixed-size vGPUs, multi-vGPU VMs, selectable schedulers, and optional 60 FPS cap removal.
  • Optional host desktop, CUDA, and LXC containers: Keep using the GPU on the host for console or desktop display, CUDA, NVENC, or LXC containers alongside active VMs.
  • vGPU live migration and checkpoint/resume: Migrate or snapshot running vGPU VMs across compatible hosts with native hardware pre-copy.
  • Full Resizable BAR for host and VMs: Zero-patch VF ReBAR and automatic two-tier host PF BAR1 resize, including early 256 MiB vBIOS and VRAM-modded cards.
  • Interactive setup and guest-tools ISO: Single Go CLI for Proxmox VE, libvirt, and plain QEMU with automated Linux and Windows guest installers.
  • Kernel-update safe and reversible: Automatic rebuilds across kernel updates, and clean uninstall back to stock NVIDIA files.
For defaults, flags, and generation details, see Features.

Performance snapshot

Near-native performance across 3D, compute, AI, and video. Measured on an RTX 5060 Ti 16 GB comparing the bare-metal host against a Debian 12 VM on an 8 GB vGPU (DC-8Q), median of 3 runs:

| Workload | Host | VM (vGPU) | VM % of host | |---|---:|---:|---:| | Blender OptiX (monster, samples/min) | 2095.5 | 2120.4 | 101% | | Blender CUDA (monster, samples/min) | 1273.6 | 1274.0 | 100% | | llama.cpp (pp512 / tg128, tok/s) | 3744 / 85.1 | 3753 / 86.2 | 100% / 101% | | FFmpeg NVDEC + NVENC H.264 / HEVC (FPS) | 589 / 511 | 590 / 512 | 100% / 100% | | Superposition 1080p Extreme, cap off (FPS) | 60.4 | 60.0 | 99% |

Full benchmarks and frame-pacing notes: Performance.

Hardware and driver support

Any minor version in NVIDIA's R580 (vGPU 19.x) or R620 (vGPU 21.x) branches works. Patch sites are located by code patterns, not hardcoded offsets.

| Generation | Presented to NVIDIA vGPU as | Max VFs | Recommended R620 (vGPU 21.1) | Recommended R580 (vGPU 19.5) | |---|---|---|---|---| | Ampere | RTX A6000 (10de:2230) | 32 | Host 620.70.04 / Linux 620.73.04 / Win 621.40 | Host 580.159.01 / Linux 580.159.03 / Win 582.53 | | Ada | RTX 6000 Ada (10de:26b1) | 32 | Host 620.70.04 / Linux 620.73.04 / Win 621.40 | Host 580.159.01 / Linux 580.159.03 / Win 582.53 | | Blackwell | RTX PRO 6000 Blackwell (10de:2bb5) | 32 | Host 620.70.04 / Linux 620.73.04 / Win 621.40 | Host 580.159.01 / Linux 580.159.03 / Win 582.53 |

  • 217 listed GPUs plus automatic generation inference for unlisted PCI IDs. Run geforce-sriov devices to inspect installed GPUs (geforce-sriov devices --supported for the full catalog) or see Supported cards.
  • Host requirements: x86_64 Linux KVM host, kernel 5.15+ with CONFIG_PCI_IOV, IOMMU (VT-d / AMD-Vi) + Above 4G Decoding, gcc, make, dkms, pciutils, kernel headers (Go 1.23+ is only needed when building from source; release tarballs include the pre-built static linux/amd64 binary).
  • Guest drivers: Stock NVIDIA vGPU guest drivers (matching the host release). No guest kernel driver edits.

Quick start

Download your NVIDIA vGPU software for Linux KVM .zip (for example NVIDIA-GRID-Linux-KVM-620.70.04-620.73.04-621.40.zip) into your home folder or ~/Downloads, then:

# 1. Install geforce-sriov (release tarball ships pre-built static binary; compiles minimal C hook)
tar xzf geforce-sriov-0.6.1.tar.gz && cd geforce-sriov-0.6.1
sudo make install

2. Run the interactive setup wizard (patches driver, sets up systemd, builds guest-tools ISO)

sudo geforce-sriov setup

Building from a git clone instead of a release tarball? Run make && sudo make install (requires Go 1.23+).

Then reboot, verify, and attach a VM:

# 3. After reboot, confirm all VFs are ready
geforce-sriov status
geforce-sriov check

4. Attach a free VF + guest-tools ISO to a stopped VM (Proxmox, libvirt, or --print for QEMU)

sudo geforce-sriov vm attach <VM>

Start the VM, run install.cmd (Windows) or sudo sh /mnt/linux/install.sh (Linux) from the attached CD drive, and configure your NVIDIA license.

Full walkthrough: Getting started.

How it works

flowchart LR
    SETUP["1. Run setup<br/>Prepares host driver<br/>and guest ISO"] --> BOOT["2. Reboot host<br/>Splits GPU into<br/>SR-IOV virtual GPUs"] --> ATTACH["3. Attach to VMs<br/>Assign a vGPU to each<br/>Linux or Windows VM"] --> GUEST["4. Install guest tools<br/>Run installer from<br/>attached ISO"]

For kernel module, driver patch, and daemon internals, see Technical reference.

Documentation

| Guide | What you will find | |---|---| | Getting started | BIOS settings, prerequisites, build, setup, first boot, and first VM | | Features | Full feature reference with defaults, flags, and generation details | | VMs and guests | Proxmox VE, libvirt, and QEMU attach/detach, VF ReBAR, live migration, guest tools, Windows HAGS, multi-vGPU | | Configuration and CLI | /etc/geforce-sriov/config keys, all setup flags, ARI, VF ReBAR, live migration, mixed sizes, schedulers, FRL cap | | Host options | Host console/desktop on boot GPU, host CUDA/NVENC, datacenter unlocks, P2P, LXC containers, unselected GPUs | | Supported cards | All 217 listed GPUs, generation ID ranges, mixed-generation hosts | | Ampere, Ada, Blackwell, Laptops | Architecture notes, vGPU type tables, screenshots, and laptop power rules | | Upgrades and uninstall | In-place upgrades, R580 to R620 driver updates, kernel auto-rebuild, clean removal | | Recovery | Troubleshooting table, cold power cycle rule, activation lock, geforce_sriov.skip | | FAQ and Glossary | Short answers to common questions and quick term definitions | | Technical reference | Go + C layout, PCI bus-ops helper, booter extraction, identity hook, host kernel/P2P/DC/MIG/plugin patches, geforce-sriov patch CLI | | Compatibility reports and Community reports | Submitting geforce-sriov report and verified community hardware | | Changelog | Release notes and breaking changes |

Related projects and credits

geforce-sriov uses SR-IOV VFs (Ampere, Ada, Blackwell). For older cards using NVIDIA's legacy mdev path:

Pre-driver Ampere and Ada 2x FP32-accumulate Tensor Core unlock and SEC2 booter PLM unlock lineage:

Disclaimer and license

Use at your own risk, provided as is without warranty.

  • Userspace Go CLI, hook, guest tools, and docs: MIT (LICENSE).
  • Kernel PCI helper module and shared device header (kernel/, include/gs_devices.h): GPL-2.0-only OR MIT (LICENSES/).
  • Third-party notices: NOTICE.
  • NVIDIA and GeForce are trademarks of NVIDIA Corporation. This project is not affiliated with NVIDIA.
Chat with me