The Mesa 3D Graphics Library

VMware guest GL driver

This page describes how to build, install and use the VMware guest GL driver (aka the SVGA or SVGA3D driver) for Linux using the latest source code. This driver gives a Linux virtual machine access to the host's GPU for hardware-accelerated 3D. VMware Workstation running on Linux or Windows and VMware Fusion running on MacOS are all supported.

End users shouldn't have to go through all these steps once the driver is included in newer Linux distributions.

For more information about the X components see these wiki pages at x.org:

Components

The components involved in this include:

Prerequisites

Depending on your Linux distro, other packages may be needed. The configure scripts should tell you what's missing.

Getting the Latest Source Code

Begin by saving your current directory location:
  export TOP=$PWD
  

Building the Code

Now try to load the kernel module by issuing
  sudo modprobe vmwgfx
Then type
  dmesg
to watch the debug output. It should contain a number of lines prefixed with "[vmwgfx]".

Then restart the Xserver (or reboot). The lines starting with "vmwlegacy" or "VMWARE" in the file /var/log/Xorg.0.log should now have been replaced with lines starting with "vmwgfx", indicating that the new Xorg driver is in use.

Running OpenGL Programs

In a shell, run 'glxinfo' and look for the following to verify that the driver is working:

OpenGL vendor string: VMware, Inc.
OpenGL renderer string: Gallium 0.4 on SVGA3D; build: RELEASE;
OpenGL version string: 2.1 Mesa 8.0

If you don't see this, try setting this environment variable:

  export LIBGL_DEBUG=verbose

then rerun glxinfo and examine the output for error messages.