Guides

GPU

Turn the GPU on for a machine and check that the guest sees it. Isolation usually costs you the GPU; Egg's point is that it doesn't: Linux guests get OpenGL and Vulkan bridged to the host GPU (Metal on Apple silicon), and models running *inside* the egg execute on the host GPU too. Full desktops, Blender, games, and local LLMs — on real hardware.

You turn it on in three equivalent places:

# Eggfile — the machine the egg carries with it
GPU virgl
DISPLAY 1920x1080
# egg.toml — a machine to run
[display]
gpu = "virgl"          # 3D acceleration (default)
host_mem = "16G"       # GPU memory window for LLMs: powers of two, 256M–32G

…or the GPU switch in the app's egg dialog. Inside the machine, check what it sees:

glxinfo -B             # OpenGL renderer
vulkaninfo --summary   # Vulkan device

egg inspect <egg> shows the host-side view of a running egg: GPU backend and memory window.

Models on the GPU

Models running inside an egg execute on the host GPU — on Apple silicon that's Metal, bridged through the guest's virtio GPU path. llama.cpp and anything ggml-based work this way: the guest-side ggml-virtgpu backend ships its compute graphs to the host over virtio-gpu (the APIR path), validated through 32B-class quantized models.

host_mem is the knob that matters: too small and large models fail to allocate. The default is 1G — fine for graphics, small for LLMs.

Next: Local LLM