Skip to content

Nvkvm Pv

Paravirtual NVIDIA GPU for KVM guests — run unmodified CUDA, PyTorch and Vulkan inside a VM at host parity, on a GPU the host keeps using.

Nvkvm Pv screenshot

About Nvkvm Pv

Run CUDA, PyTorch, Vulkan or a graphical display inside a KVM guest, on the same GPU your host is still using.

Get the actual GPU accelerated display in the VM on your desktop - zero copy native, no PCIe round trips when not needed.

Run QEMU in a container for additional isolation and environment consistency.

This project is both intended for compute workload VMs (e.g deep learning) and for graphics VMs (e.g gaming)

Without /dev/kvm , QEMU silently falls back to software emulation: it appears to work and is unusably slow. Permissions, containers and nested virt can be found here: install guide .

Keep the 127.0.0.1: in the -p flag. The guest is ubuntu:ubuntu with NOPASSWD:ALL ; published as a bare -p 2222:2222 it is a root shell with your GPU attached, offered to your whole network.

NVIDIA_DRIVER_CAPABILITIES is not optional decoration: --gpus all alone gives the container compute,utility , and the guest then gets a compute-only driver with no GL or Vulkan — which does not fail, it silently falls back to llvmpipe.

A prebuilt tarball runs on a bare host, and bash scripts/build_qemu.sh --install-deps builds from source.

Discussion

Sign in to join the discussion.

Loading comments…

Tagged

Alternatives to Nvkvm Pv

Tools in the same space, ranked by how they are performing in the directory.

Compare all
  • Pollen Robotics

    Microduck is a 25 cm biped robot with 15 motors, a camera, LiDAR and a grasping beak.

    Open source/Developer Tools
  • Derive

    Review and approval for work made by AI agents.

    Freemium/Developer Tools
  • Spore

    Run open-weight models on hardware you already own, reach them from any device, and tap a distributed network when you need more.

    Freemium/Developer Tools
  • Conductai

    AI agent governance for teams.

    Open source/Developer Tools
  • Splatit

    An Splatoon server recreation in C++ with a focus on user friendliness and ease of hosting.

    /Developer Tools
  • The Simpsons Hit and Run

    Modern Windows version of The Simpsons: Hit & Run, based on the original leaked source code from 2003 - xaskasdf/The-Simpsons-Hit-and-Run

    /Developer Tools