Hardware-accelerated OpenGL and Vulkan in a Proxmox Ubuntu VM
This setup uses a MINISFORUM UM790 Pro with an AMD Ryzen 9 7940HS (16 logical CPUs) and integrated Radeon 780M graphics. The GPU stays bound to amdgpu and remains available to the Proxmox host. No PCI passthrough or host reboot is needed.
Proxmox host
Replace 500 with your Ubuntu guest's VM ID before running any qm command. Run as root on the host:
apt install libgl1 libegl1 libgl1-mesa-dri mesa-vulkan-drivers virgl-server
VMID=500 # Replace 500 with your VM ID.
qm shutdown "$VMID"
qm status "$VMID"
Wait until qm status "$VMID" reports stopped. Then configure and start the VM:
qm set "$VMID" --vga virtio-gl
qm set "$VMID" --args '-set device.vga.blob=on -set device.vga.hostmem=4G -set device.vga.venus=on'
qm start "$VMID"
virtio-gl enables VirGL for OpenGL. The extra QEMU arguments enable Venus for Vulkan on the same virtual GPU. --args replaces existing custom QEMU arguments. If the VM already has an args: entry, merge the new flags into it instead.
The missing piece on this host was virgl-server. It provides /usr/libexec/virgl_render_server, which is packaged separately from libvirglrenderer1. Without it, QEMU advertised Venus, but the guest failed with VK_ERROR_OUT_OF_HOST_MEMORY.
Ubuntu guest
Run these commands as the user who will use the GPU, then log out and reconnect over SSH so the new group membership takes effect:
sudo apt install mesa-vulkan-drivers vulkan-tools mesa-utils
sudo usermod -aG render "$(id -un)"
Verify both APIs from the new session:
eglinfo -B
VK_DRIVER_FILES=/usr/share/vulkan/icd.d/virtio_icd.json vulkaninfo --summary
- OpenGL: Under
Surfaceless platform, look forvirgl (AMD Radeon 780M …). - Vulkan: Look for
DRIVER_ID_MESA_VENUSordriverName = venus. TheVK_DRIVER_FILESoverride is only for this check: it excludes the software driver so a fallback can't pass the test.
Read more
Read more: Hardware-accelerated OpenGL and Vulkan in a Proxmox Ubuntu VM