How SharedGL works
masterSharedGL provides OpenGL 4.6 acceleration for Windows and Linux guests in QEMU/KVM by streaming commands from a guest client to a host server.
Components
- Server (
sglrenderer): Runs on the Linux host. It receives OpenGL commands and renders them in a window on the host. - Client (ICD /
libGL): Runs inside the guest VM. It intercepts OpenGL calls from guest applications and forwards them to the server.
Transports
| Transport | Speed | Setup | Requirements |
|---|---|---|---|
| Shared memory | Faster | Default | Requires an ivshmem device on the VM and a kernel driver in the guest. |
| Network socket | Slower | No drivers | Works anywhere with a network connection; no VM configuration required. |