noon-at-cgn

geforce-sriov

noon-at-cgn

geforce-sriov is a Linux tool that enables SR-IOV on consumer Ampere and Ada GeForce cards so several virtual machines and the host can share one GPU.

v0.4.4
Published at
4d ago
194
Stars
69
Download
Synced at
3d ago

Latest release

v0.4.4Nov 22, 2026, 05:17 PM
Downloads slow? Switch the source anytime above

README

Project Overview

When several VMs need to share one GeForce card, traditional PCIe passthrough gives the whole GPU to a single machine and the host loses it while that VM runs. geforce-sriov takes the SR-IOV route instead: the card exposes multiple virtual functions (VFs), each VM gets its own virtual GPU, and the host can keep using the same card for display and CUDA work.

Item Value
Platform Linux host
Language C and shell scripts
Supported cards Ampere / Ada GeForce
Dependencies KVM, libvirt or QEMU, IOMMU
Reversibility Full uninstall supported

Split one card into several virtual GPUs so the host and VMs no longer compete.

How It Works

  • Virtual function split: configures the card into multiple SR-IOV VFs through NVIDIA vGPU software
  • VM assignment: each VF is bound to one VM as its own virtual GPU
  • Host retention: the host keeps using the same card for display or CUDA
  • No firmware changes: all changes stay in drivers and configuration
  • Cold boot required: the first setup needs a full power cycle, not a reboot

Key Features

  • One-command setup: sudo ./geforce-sriov setup walks through driver and VF configuration
  • Dry run: install --dry-run checks kernel headers, DKMS and the compiler
  • Host CUDA: optionally builds the CUDA module for the host as well
  • Display output: optionally binds the host desktop to a chosen GPU
  • Status check: queries whether VFs were created correctly
  • Full uninstall: sudo geforce-sriov uninstall returns to the stock driver
  • Laptop support: optionally keeps an idle GPU powered by disabling D3cold
  • Version matrix: separate host and guest driver versions for Ampere and Ada

Target Audience

  • Users running several gaming VMs on one machine
  • Homelab enthusiasts wanting GPU and CUDA at the same time
  • Virtualization engineers studying vGPU and SR-IOV
  • Enterprise test setups with NVIDIA vGPU entitlements

Quick Start

  1. Confirm the card is supported and prepare NVIDIA vGPU entitlement and driver files
  2. Run make in the repository to build the tool
  3. Run sudo ./geforce-sriov setup the first time and pick the GPUs
  4. Power the machine off and on for a cold boot
  5. Run sudo ./geforce-sriov setup again to finish

System Requirements

Item Requirement
OS Linux x86_64 host
Kernel 6.8 or later with livepatch support
Virtualization KVM, libvirt or QEMU with IOMMU enabled
Driver NVIDIA vGPU host driver 580.159.01
Entitlement Your own NVIDIA vGPU download rights

Notes

  • No NVIDIA software bundled: the repo neither ships nor downloads NVIDIA drivers or licenses
  • Card must be listed: unlisted models are not guaranteed to work
  • Cold boot mandatory: power cycle after the first setup; a reboot will not do
  • Guest parameters required: Linux and Windows guests must set RMSetVgpuGspPluginOffloadMode=0

Release history

Sort