Because of this, we’ll need to compile it with the necessary support. Sadly the version of QEMU that comes with Ubuntu does not have VirGL support. Obviously, you also need a system capable of virtualisation. With nvidia cards you’re probably stuck on using the nouveau driver which is not ideal.
Intel iGPUs should work, so should most AMD cards. Hardware wise you need a GPU with DRM support. Currently it only supports Linux guests, although there was an experiment to get Windows guests working as well. Currently it’s mature enough to support window managers and maybe some really, really simple quake clones (I tried running Half Life 2… It did not work well). VirGL is a driver that allows creating a virtual GPU within Virtual Machines that leverages host’s GPU without the need for passing it through (VFIO).