Virtio GPU

Attach a virtio-gpu device to grain QEMU guests.

grain runs headless by default (-display none). For guests that want a virtio display device (Wayland/X in the guest, GPU-aware tools, etc.), enable virtio-gpu.

This is not full GPU passthrough (VFIO / Metal). It exposes a virtio-gpu-pci device suitable for many desktop-in-VM workflows without binding a physical GPU.

Enable

grain new --gpu virtio --wait agent

Or in config:

gpu: virtio

Notes

See also