geforce-sriov lets several virtual machines share one NVIDIA GeForce card through NVIDIA's vGPU software. It configures the card to provide SR-IOV virtual functions (VFs), so each VM can use its own virtual GPU rather than requiring a separate physical card.
With other approaches, such as PCIe passthrough, a GPU is normally assigned to one VM and unavailable to the host while that VM is running. geforce-sriov uses SR-IOV instead, so the host and several VMs can share the same card. For example, you can run a dedicated Windows VM for gaming without detaching the entire GPU from the host. The host can continue to use the card for display and CUDA workloads.
All changes are reversible. You can uninstall geforce-sriov and return to the stock driver. No permanent changes are made to the card's firmware. Virtual GPUs can approach native performance, depending on the workload and configuration.
flowchart LR
subgraph BEFORE["Without geforce-sriov"]
direction TB
G["GeForce card"] -->|"PCIe passthrough"| ONE["One VM"]
G -.->|"or used by"| HOST["The host"]
end
subgraph AFTER["With geforce-sriov"]
direction TB
PF["GeForce card<br/>(PF)"]
PF --> VF1["VF"]
PF --> VF2["VF"]
PF --> VF3["VF"]
PF --> VF4["VF"]
VF1 --> VM1["VM"]
VF2 --> VM2["VM"]
VF3 --> VM3["VM"]
VF4 --> VM4["VM"]
end
BEFORE ~~~ AFTER
See the FAQ for answers to common questions.
Important
geforce-sriov is NOT a firmware flasher or a licensing tool.
It does NOT change your GPU’s firmware and does NOT include NVIDIA’s vGPU software and licenses. You must obtain them separately.
Note
Status: beta. Ampere and Ada GPUs are supported. See supported cards.
Please submit a
compatibility report
to help verify more hardware, whether it works or not. Run sudo geforce-sriov report and paste its output into the form.
- Terms
- Motivation
- Safety and reversibility
- Disclaimer
- Performance
- What you need
- Quick start
- How it works
- Boot display GPU
- Supported cards and driver versions
- Documentation
- Related projects
- License
These terms appear throughout the documentation. See the glossary for more terms.
| Term | Meaning |
|---|---|
| Host | The machine that holds the GPU and runs the VMs: a Linux KVM host such as Proxmox VE |
| Guest, VM | A virtual machine running on the host |
| GPU | The GeForce card |
| SR-IOV | A PCI feature that lets one device present several lightweight copies of itself |
| PF (physical function) | The GeForce card itself, as the host sees it |
| VF (virtual function) | One copy of the card created by SR-IOV. Each VF is handed to one VM |
| vGPU | The virtual GPU a VM gets through its VF, using NVIDIA's vGPU software |
| vGPU type (profile) | The fixed memory size of a vGPU, for example RTXA6000-4Q with 4 GB of VRAM |
Normally a GeForce card belongs to one VM or to the host. NVIDIA's vGPU software can split a card among several VMs, but it offers that only on the professional cards. The supported GeForce cards have the same SR-IOV capability that vGPU builds on, but they hide it from the Linux kernel. geforce-sriov automates the steps that make it usable:
- it reveals the hidden capability to the kernel,
- it prepares your own copy of NVIDIA's driver files,
- it makes the card look like its professional counterpart to NVIDIA's vGPU software, and
- it creates and configures the virtual functions at each boot.
The command geforce-sriov setup does the driver work and the VF configuration. It asks for what it needs, such as the path of NVIDIA's vGPU host driver .run file and the GPUs to use.
Setting up the guests is still your job.
geforce-sriov has three parts:
flowchart TD
TOOL["geforce-sriov"]
MOD["Kernel module"]
HOOK["Identity hook"]
PATCH["Driver patcher"]
VFS["Expose SR-IOV<br/>4 VFs by default"]
ID["Professional GPU identity"]
DRV["Patched driver files"]
TOOL --> MOD --> VFS
TOOL --> HOOK --> ID
TOOL --> PATCH --> DRV
geforce-sriov changes software only. It does not write firmware (vBIOS) and makes no permanent hardware change. It does not supply NVIDIA software or vGPU licensing.
- Installed files stay until you run
uninstall. - The VFs and the vGPU types are gone after every reboot or power-off, and the boot units create them again at each boot.
uninstallremoves what it installed and restores NVIDIA's original module, so you do not need to reinstall the operating system. It keeps files you changed.
See Changes and reversibility for every file and setting.
Use at your own risk. This project is provided as is, without warranty of any kind. It is under the MIT licence, and the kernel module is under GPL-2.0-only OR MIT. See LICENSE. I am not responsible or liable for any damage, data loss, hardware failure, instability, downtime or voided warranty that results from using it.
A vGPU VM on an Ampere card runs as fast as the card does on the host. The table compares one 4 GiB vGPU in a VM with the card's physical GPU on the host, on a memory-modded RTX 3080 20GB.
| Benchmark | Host (physical GPU) | VM (vGPU) | VM / host |
|---|---|---|---|
| FP32 matmul (TFLOPS) | 20.47 | 20.54 | 1.003 |
| FP16 matmul, tensor cores (TFLOPS) | 58.35 | 58.54 | 1.003 |
| Device memory copy (GB/s) | 681.7 | 704.4 | 1.033 |
See Ampere for the method.
geforce-sriov does not affect the GPU's performance. Most of the changes act at boot, when the VFs are created or when a VM starts. None of them adds code to the path that runs the GPU's work, so a VM gets the full speed of its share of the card.
- A card from the device table, and a vGPU licence setup of your own.
- A Linux host (x86_64) with KVM and libvirt or QEMU, the IOMMU on, and kernel 6.8 or later with livepatch support.
install --dry-runchecks everything else, such as kernel headers, DKMS and a C compiler. See What install --dry-run and status check. - NVIDIA's files from the table below. Download them with your own NVIDIA entitlement, the right to download NVIDIA's vGPU software. geforce-sriov does not include or download any NVIDIA software.
What to download, and when you need it:
| Feature | What to download | Exact version | Needed when |
|---|---|---|---|
| vGPU host driver | NVIDIA vGPU host driver for Linux KVM: NVIDIA-Linux-x86_64-580.159.01-vgpu-kvm.run from the NVIDIA vGPU software 19.5 download on the NVIDIA Licensing Portal |
580.159.01 | Always |
| Host CUDA | NVIDIA's Linux driver package: the 580.159.03 driver as a .run file. Use one of two files. The first is the vGPU guest driver from the same vGPU software 19.5 download, NVIDIA-Linux-x86_64-580.159.03-grid.run. The second is NVIDIA's GeForce Linux driver NVIDIA-Linux-x86_64-580.159.03.run from NVIDIA's public Unix driver archive |
580.159.03 | You turn host CUDA on (--host-cuda) |
| Host display and desktop | The Linux driver package (above) and NVIDIA's public kernel module source: open-gpu-kernel-modules, tag 580.159.03 | 580.159.03 for both | You select the boot display GPU, or you give both inputs for another selected GPU. The desktop libraries come from the Linux driver package. The public kernel module source is used only for the display modules |
Pass the Linux driver package as a .run file (--companion-file PATH) or an extracted directory (--companion-source DIR). Pass the public kernel module source as a tarball or a directory (--nvkms-source PATH).
The versions geforce-sriov targets:
| Part | Ampere | Ada |
|---|---|---|
| Host driver | 580.159.01 (vGPU software 19.5) | Same |
| Linux guest | 580.159.03 | 535.230.02 (vGPU 16.9) |
| Windows guest | 582.53 | 539.19 (vGPU 16.9) |
| Guest driver setting (required) | RMSetVgpuGspPluginOffloadMode=0, a modprobe option in a Linux guest and a registry value in a Windows guest. Without it the guest driver fails with RmInitAdapter failed on Linux and Code 43 on Windows |
Same |
It is recommended to use the listed versions. Other versions may also work but are not guaranteed: install then tries a best-effort build, and it stops without changing anything when it cannot find what it patches. See Supported software stack for what install does with another version, and Guests for guest setup.
New to geforce-sriov? Skip to Install.
If an earlier version of geforce-sriov is installed, remove it completely before you install this one:
- Stop the VMs that use the GPUs.
- Run
sudo geforce-sriov uninstall, then run any command it prints. - Power the machine off and on.
- Install this version as described in Install.
To remove geforce-sriov without installing a new version, do steps 1 to 3. Details: Uninstall.
You need a supported card and NVIDIA's vGPU host driver .run file (NVIDIA-Linux-x86_64-580.159.01-vgpu-kvm.run) from your NVIDIA entitlement.
For the display build or host CUDA, also get the files in the table under What you need.
make
sudo ./geforce-sriov setup # first run, before the power cycle
# power the machine off and on (a cold power cycle, not a reboot)
sudo ./geforce-sriov setup # second run, after itsetup prompts for any required options you omitted:
- The path of the vGPU host driver
.runfile, when no NVIDIA driver is installed. - Acceptance of NVIDIA's licence.
- The GPUs to use, when more than one qualifies.
- The paths of the Linux driver package and of NVIDIA's public kernel module source, if you want the host console on a selected GPU. Both are version 580.159.03.
- Whether to build NVIDIA's CUDA module for the host too, so CUDA programs can run on the host. If you say yes, it also needs the Linux driver package. See Host CUDA.
- Consent to keep a laptop GPU powered when it is idle, if you select one. This turns off D3cold, the state in which a laptop cuts power to an idle GPU. See Laptop support.
If a prerequisite is missing, setup stops and names the required action.
For example, if nouveau is loaded, it tells you to blacklist it and power the machine off and on first.
For non-interactive setup, see One command from a clean host.
The second run checks every VF and completes any startup steps that did not run at boot.
Next, create your VM. On later boots, the boot units restore the VFs automatically. See the installation guide for each step and its expected output. See Uninstall to remove everything.
To move from another version of geforce-sriov, uninstall that version first, power the machine off and on, then install this one.
install, setup and uninstall stop before they write anything while another version is installed (Upgrading).
Selection and recovery:
- You can pick several GPUs at the prompt, or pass one
--device BDFper card, up to 32. Ampere and Ada cards can share a host (Combining generations). - The boot display GPU can be selected too (Boot display GPU).
- If the host stops responding or a card disappears from
lspci, power the machine fully off and on, and do not rescan the PCI bus. See The one rule for the reason.
Important
Choose vGPU types (also called profiles) that fit your card's physical VRAM.
The type list comes from the professional card and includes types larger than your card.
All running vGPUs must fit in VRAM together, with room left for the host driver.
For example, four 4Q vGPUs need 16 GB plus the host driver's share: they fit a 24 GB card and do not fit a 16 GB card.
Set the type per generation with type_ada= and type_ampere= in /etc/geforce-sriov/config (Choosing a vGPU type).
flowchart TD
GPU["One GeForce card<br/>(physical function, PF)"]
MOD["geforce-sriov kernel module<br/>reveals SR-IOV, 4 VFs by default"]
DRV["patched NVIDIA vGPU host driver"]
HOOK["Identity hook<br/>inside nvidia-vgpud"]
TYPES["vGPU type on each VF"]
LVM["Linux VM"]
WVM["Windows VM"]
GPU --> MOD --> DRV --> TYPES
HOOK -.->|"card is seen as a supported pro card"| TYPES
TYPES --> LVM
TYPES --> WVM
| Part | What it does |
|---|---|
Kernel module geforce_sriov (DKMS) |
Makes the kernel see the hidden SR-IOV feature of the cards you choose and presents four virtual functions per card by default. The vfs key in the config sets the count, and more than 4 per card is not available |
Boot units geforce-sriov-livepatch.service, geforce-sriov-activate.service |
The first loads the geforce_sriov kernel module, a livepatch that replaces three PCI functions of the running kernel. It runs before udev, the service that loads drivers for detected hardware, so nothing else binds your chosen cards first. The second loads NVIDIA's nvidia module once udev has applied your rules. Then it runs activate: it creates the VFs and sets the vGPU types before your VMs autostart. Guest autostart starts after activation has finished but does not wait for it to succeed, so a guest that uses a vGPU can fail to start until the VFs are up |
CLI geforce-sriov |
Checks the host, installs everything including the driver patch, and brings up the VFs and vGPU types |
Identity hook libgeforce_sriov.so |
Lets nvidia-vgpud, NVIDIA's daemon that registers the vGPU types of each GPU, accept your GeForce card as its professional counterpart so it offers vGPU types |
Driver patcher geforce-sriov-patch |
Used by install to patch your own copies of NVIDIA's nv-kernel.o_binary and libnvidia-vgpu.so. The first is the precompiled part of the kernel module and the second is the vGPU plugin. See Revisions for each change |
The boot display GPU is the card that shows the BIOS/UEFI startup messages and the Linux text console. On a single-NVIDIA-GPU host, that card is usually the boot display. Check it with:
cat /sys/bus/pci/devices/0000:01:00.0/boot_vgaReplace 0000:01:00.0 with your GPU's PCI address from lspci | grep -i nvidia.
A value of 1 means the GPU is marked as the boot display.
You select it like any other card.
activate hands the console to NVIDIA's display modules (nvidia-modeset and nvidia-drm), so the console stays on. It refuses the card unless the installed build of NVIDIA's kernel module includes them.
install builds them when a selected GPU is the boot display.
That needs the Linux driver package (580.159.03) and NVIDIA's public kernel module source, open-gpu-kernel-modules tag 580.159.03. See Boot display GPU.
On a laptop, see Display for which display setups make the NVIDIA GPU the boot display.
Ampere and Ada are supported, and so is every card in the device table, laptop GPUs included (Laptop support). See Supported cards for the full list and Ampere and Ada for generation-specific details.
| Page | What it covers |
|---|---|
| Installation | Everything from before you start to uninstall: the checks before installing, install, the cold boot, creating a VM, and what the checks cover |
| Supported cards | The supported device table |
| Ampere, Ada | Generation-specific behaviour, host stacks, guest drivers and limits |
| Laptop support | Laptop GPUs: the listed IDs, display wiring, keeping the GPU powered (D3cold), interrupts (MSI-X), PCIe function addressing (ARI) and VF counts |
| What install does to NVIDIA's files | The patches install makes to your copies of NVIDIA's files, with their digests, the manual path with --driver=skip, and what to do after an update |
| Configuration and commands | Config file keys, commands and exit codes, systemd units, module parameters |
| Boot display GPU | Sharing the card that shows the boot screen |
| Symptoms, Recovery | Fixes for common problems, the one rule for when a cold power cycle is needed, the activation lock that blocks activation after an unfinished run, and what not to do |
| Glossary, Technical reference, Identity hook | Terms, how each part works, how the hook works, and what the CLI does under the hood |
| Compatibility reports, Community reports | How to report whether your hardware works, and the setups people have reported so far |
| Changelog | The release notes |
geforce-sriov uses SR-IOV virtual functions rather than mdev (mediated devices), and targets Ampere and Ada cards. Other projects take different routes:
- polloloco/vgpu-proxmox: an install guide and driver patches for NVIDIA vGPU on Proxmox VE, using mdev. It covers consumer Maxwell 2.0 (except the GTX 970), Pascal and Turing cards. It says RTX 30xx and 40xx cards will not work. Use it for Turing and older cards, which geforce-sriov does not cover.
- DualCoder/vgpu_unlock and mbilker/vgpu_unlock-rs: the original vGPU unlock for consumer cards, which presents a GeForce card to NVIDIA's vGPU software as a supported professional model. Maxwell to Turing, mdev. The identity hook in geforce-sriov follows the same idea.
- Nium32/VGPU-MDEV-RTX-3090: NVIDIA vGPU on a GeForce RTX 3090 through the legacy mdev path, with driver 535.309.01 on Linux 6.1 or 6.5. It documents a scheduler fix and a list of approaches that failed. Same chip family as the Ampere cards here, with a different mechanism.
- olealgoritme/blackwell-vgpu-unlock: patches and scripts for one SR-IOV vGPU on a GeForce RTX 5090 with driver 580.159.01. Its README reports compute in a Linux guest and lists graphics, Windows guests and more than one VF as not working.
- bird/vgpu-unlock-blackwell: a write-up of an RTX 5090 attempt on driver 595.58.03. It reports that the host-side steps work and that the GPU firmware then stops on registers that are missing on consumer silicon.


