VMAware is a cross-platform library designed to detect virtual machines.
It is meant to be stupidly easy to use, with only 5 total functions in its public interface. Additionally, it supports brand detection.
While there are many VM detection mechanisms that are already in use, VMAware features up to 80+ unique techniques to get the most accurate result possible.
On top of the library, there's a CLI tool that takes advantage of the full library (see screenshots)
It's also meant...
OpenGL apps running inside a VM use VMGL to obtain graphics hardware acceleration. VMGL supports VMware, Xen PV and HVM, qemu, and KVM VMs; X11-based OS such as Linux, FreeBSD and OpenSolaris; and ATI, Nvidia and Intel GPUs.