Back to Articles

GPU Virtualization and Sharing: vGPU, MIG, and Passthrough

Contents

Why Share a GPU at All

The motivation is economics. A GPU is expensive, and a single workload rarely uses all of it — a VDI session uses a little graphics, a small inference model uses a little compute. Sharing lets one card serve many VMs, which is the difference between "one GPU per power user" and "one GPU per rack." The two workloads that drive GPU sharing:

  • VDI / virtual workstations. Many low-intensity graphics sessions sharing a card, each getting a time slice.
  • AI inference. Many small models or many tenants sharing a card, each getting a partition of compute and memory.

The cost of sharing is contention and, in some models, licensing. The three models trade that cost off differently.

The Three Models

ModelHow it sharesIsolationLicensingBest for
PCIe passthroughWhole GPU assigned to one VMHardwareNone (consumer or datacenter driver)One VM that needs a full card; maximum performance
NVIDIA vGPUGPU time-sliced (or MIG-backed) by the hypervisor + NVIDIA vGPU softwareSoftware (driver-enforced)vGPU license per session/VMVDI and shared AI; many VMs per card
MIGGPU partitioned into hardware instances (each gets its own SMs + memory)HardwareNone (datacenter GPU only)AI on A100/H100/H200-class GPUs; guaranteed slices

The single most important distinction: passthrough and MIG are hardware isolation with no license; vGPU is software sharing with a license. MIG exists only on NVIDIA's datacenter GPUs (A100, A30, H100, H200 and newer), while vGPU works across a wider range of cards.

PCIe Passthrough

Passthrough is the simplest model: mark the physical GPU as passthrough-capable in the hypervisor, then assign it to a VM, which gets the whole card and its native driver. It is the right answer when one workload legitimately needs a full GPU and you are not trying to share — and it is the model to use for consumer cards, which do not support vGPU or MIG at all.

The tradeoffs are the ones you would expect: full performance and no license, but one VM per card, no live migration of the GPU-backed VM (in most configurations), and no oversubscription. It is the baseline the other two models improve on.

NVIDIA vGPU

vGPU is NVIDIA's software-sharing model.[1] The host runs the vGPU manager plus a vGPU-aware driver, and each VM is assigned a vGPU profile that gives it a defined slice of the card — a fixed amount of the GPU's own onboard memory (the framebuffer, which is what caps how large a desktop or model that VM can hold) plus a share of the card's compute time. The hypervisor and the NVIDIA driver together time-slice the GPU across the VMs.

The parts of the stack:

  • The vGPU host driver + manager. Installed on the hypervisor itself, not in the VMs. On vSphere it arrives as a VIB — a vSphere Installation Bundle, the package format ESXi uses to install software onto a host — plus the NVIDIA vGPU software that goes with it.[3]
  • Profiles. Named slices like A16-4Q or the newer Q/B/C series[5] — each profile defines framebuffer size and compute share, and the profile you pick determines how many VMs fit on one card.
  • The guest driver. Each VM runs a vGPU-aware NVIDIA driver.
  • Licensing. A vGPU license (via NVIDIA's license server / DLS) is required per vGPU instance. This is the recurring cost that makes the passthrough-vs-vGPU decision a real TCO question.

Profiles and licensing change per GPU generation and driver. The exact profile names, the maximum VMs per card, and the licensing model (per-concurrent-user, per-VM, or subscription) shift between NVIDIA GPU generations and driver releases. Treat the profile names here as representative; confirm the current profile list and license terms against NVIDIA's vGPU documentation for the specific card and driver you plan to deploy.

MIG: Slicing the GPU in Hardware

MIG (Multi-Instance GPU)[2] is a different philosophy: instead of time-slicing, it partitions the GPU's hardware — its streaming multiprocessors and its memory — into fixed instances. Each instance is a self-contained mini-GPU with guaranteed, isolated compute and memory, and no hypervisor involvement. It is the model for AI inference on datacenter GPUs, because it gives deterministic slices without the overhead of a vGPU stack — and without a license.

MIG is configured with nvidia-smi on the host, then each instance is exposed as its own device that can be passed to a VM or scheduled by Kubernetes:

# Enable MIG mode and list the available instance profiles
nvidia-smi -i 0 -mig 1
nvidia-smi mig -lgip   # list GPU instance profiles (e.g., 1g.5gb, 3g.20gb, 7g.40gb)

# Create GPU instances (here: seven 1g.5gb slices on an A100 40GB)
nvidia-smi mig -cgi 19,19,19,19,19,19,19 -C

# Create the corresponding compute instances
nvidia-smi mig -cci 0,0,0,0,0,0,0 -C

# Verify the slices
nvidia-smi mig -lgi

Kubernetes consumes MIG through the NVIDIA GPU Operator[4] / device plugin, which can schedule pods onto MIG instances. For a VMware estate, a MIG instance is passed to a VM like any passthrough device. The tradeoff: MIG is a fixed partition, so a 1g.5gb slice cannot grow on demand the way a time-sliced vGPU profile can share idle capacity.

A Worked Example: vGPU on vSphere

The vGPU path on vSphere, at the level of the workflow and the verification:

  1. Install the NVIDIA vGPU software on the host. This is the vGPU manager VIB plus the matching host driver, installed before the GPU is shared. The driver and the vSphere build must be a supported pairing.
  2. Confirm the card is seen as vGPU-capable. On the host, the card should now report itself through the vGPU manager rather than as a plain GPU.
  3. Assign a profile to a VM. In the VM's settings, add a shared PCI device and pick the vGPU profile (e.g., a Q-series profile for a workstation, or a smaller slice for a thin client).
  4. Install the guest driver and license it. The VM needs the NVIDIA vGPU guest driver, and the license server must issue it a seat.
  5. Verify inside the VM. The guest should report a working NVIDIA device with the profile's framebuffer:
# Inside the VM — confirm the vGPU is active and see its profile
nvidia-smi

Rule of Thumb: Compute GPU sharing as (number of VMs per card × the license cost per VM) versus (one card per VM × the hardware cost of the extra cards). At low density passthrough wins because there is no license; at high density vGPU or MIG wins because one card serves many VMs and the license amortizes. MIG is the exception that wins on AI even at moderate density, because it has hardware isolation and no license — the constraint is that it needs a datacenter GPU you may not otherwise buy.

Test Contention, Not Just One VM

A single virtual machine on an otherwise idle GPU cannot validate a sharing design. The acceptance test must create the noisy-neighbor condition that sharing introduces.

  • Run the expected number of VMs or containers concurrently and record per-tenant p95 latency, throughput, framebuffer use, and host CPU use.
  • Saturate one tenant and confirm the others stay within their service targets. Repeat with memory pressure as well as compute pressure.
  • Restart a guest, reset a partition where supported, and place the host into maintenance. Document which workloads pause and whether live migration is available for the chosen mode.
  • Verify scheduler labels, profile names, driver versions, and license checkout after a clean rebuild. These dependencies should be reproducible, not remembered.

Density rule: size to the worst acceptable per-tenant result under concurrent load. Dividing total GPU capacity by average utilization overstates safe density.

Choosing a Model

The decision reduces to three questions: what GPU can you actually buy, how many VMs must share it, and whether you will pay a license.

ScenarioRecommendationWhy
One VM, full card, max performancePCIe passthroughWhole GPU, no sharing, no license
VDI, many low-intensity sessions, budget for a licenseNVIDIA vGPUHighest density; the license is the cost of the density
AI inference on an A100/H100-class cardMIGHardware-isolated slices, no license, deterministic performance
Consumer or gaming cardPCIe passthroughConsumer cards do not support vGPU or MIG
Kubernetes AI, shared fleetMIG + GPU OperatorMIG instances schedule like native devices; no hypervisor layer

The honest caveat that ties the whole decision together: GPU sharing is a support-matrix exercise as much as an architecture choice. The card, the driver, the hypervisor build, and (for vGPU) the license all have to line up, and the matrix changes every release.


References

  1. NVIDIA — "NVIDIA vGPU" documentation: vGPU architecture, the vGPU manager, profiles, and licensing. NVIDIA Technical Documentation, current.
  2. NVIDIA — "Multi-Instance GPU (MIG)" user guide: MIG mode, instance profiles, and nvidia-smi mig configuration. NVIDIA Technical Documentation, current.
  3. VMware/Broadcom — "vSphere and NVIDIA vGPU" documentation: shared PCI devices, vGPU deployment, and supported configurations. Broadcom Technical Documentation, current.
  4. NVIDIA — "NVIDIA GPU Operator" and Kubernetes MIG scheduling documentation. NVIDIA Technical Documentation, current.
  5. NVIDIA — "vGPU profiles and supported GPUs" reference: profile names and maximum VMs per card. NVIDIA Technical Documentation, current.
← Back to Articles ← Previous: Storage Offload with NVMe-oF and SPDK Next: NPUs Explained →