- Автор
- nestrilabs
- Размер
- 5.6 MB
- Звёзды
- 462
- Обновлён
- КоммитNov 17Релизv0.2.1Oct 16
- Возраст
- 8 мес
- Коммиты · 90 дней
README проекта с github.com/nestrilabs/virtio-nvgpu. Одним файлом markdown: README.md.
Share one NVIDIA GPU across several VMs, at bare-metal speed.
Run NVIDIA's own unmodified drivers (Vulkan, NVENC, and CUDA) inside multiple microVMs, while the host keeps the card. No vGPU licenses or VFIO passthrough needed.
virtio-nvgpu forwards the NVIDIA driver instead of the graphics API. The guest builds its own GPU commands and writes them straight to GPU memory, so a frame being drawn doesn't cross the VM boundary. Nothing gets serialized and replayed on the host the way Venus and virgl do it.
On an RTX 3060:
[!NOTE] 12 is what we tested, not a hard cap. Like containers, you're limited by:
- VRAM. A game needs gigabytes, so this usually runs out first. Cap each guest with
--vram-limit-mib.- Host CPU and RAM for each guest.
- NVENC's 12-session cap on GeForce cards. Our Nestri capture layer encodes with Vulkan Video, which doesn't count against it (16 at once worked fine).
People who stream games or GPU apps from headless VMs (cloud gaming, remote desktops, CI with a real GPU, selfhosted "serverless" AI) on consumer NVIDIA cards.
driver/ is the guest kernel module (GPL-2.0), device/
is the VMM-agnostic Rust device (Apache-2.0), and protocol/ is
shared by both (BSD-3/GPL-2.0).Inspired by gVisor's nvproxy, and kayfabe by Reindert Pelsma.