VirtualBox 4.0 OpenGL Gaming Performance

Posted by Michael Larabel on December 13, 2010

Put out earlier this morning on Phoronix were Linux virtualization benchmarks comparing the native performance of a high-end Intel Core i7 system to that of the de facto standard Linux KVM virtualization method as well as Oracle VM VirtualBox 3.2.12 and Oracle VM VirtualBox 4.0 Beta 2. These tests focused largely upon the disk and CPU performance within Ubuntu Linux virtual machines, since that's often where enterprise users are most concerned with virtualization performance. For desktop users, there's also the matter of 2D/3D acceleration support within virtual machines.

VirtualBox does provide support for OpenGL acceleration in guests as well as 2D/video acceleration. For Microsoft Windows guests, there's also Direct3D acceleration support. The VirtualBox graphics acceleration requires an accelerated GPU driver to be installed on the host (obviously) and then also the guest operating system to have the Oracle VM VirtualBox "Guest Additions" to be installed. Contained within this VirtualBox guest software for Windows/Solaris/Linux operating systems is a graphics driver that allows passing the OpenGL/Direct3D to the host system.

The VirtualBox 2D/3D acceleration though isn't quite as nice as VMware's implementation, which is based upon Gallium3D. VMware guests have not only Direct3D/OpenGL acceleration on the graphics processor, but any Gallium3D state tracker could be utilized such as OpenVG and OpenGL ES. The VMware implementation with Gallium3D is also more efficient (not to mention that VMware also owns the Tungsten Graphics developers responsible for Mesa / Gallium3D). There's also a Gallium3D driver for Xen virtualization, but sadly there's no such 2D/3D support for QEMU/KVM.

Without accelerated GPU support for QEMU/KVM, we hadn't ran any 3D virtualization tests in the article from this morning. However, for your pleasure, below are two OpenGL gaming tests from the same system. There's the performance of the host compared to VirtualBox 4.0 Beta 2 with this Intel Core i7 970 CPU + NVIDIA GeForce GTX 460 system.


While VirtualBox has guest 3D acceleration, its implementation is significantly slower than running OpenGL on the host with the proprietary NVIDIA Linux driver. At least though it's a fairly playable experience (above 30 FPS average), but it's with a lightweight, ioquake3-powered game.


The World of Padman performance was about the same too. While the virtualized gaming performance lags behind, there's at least some level of support and it's enough to power a composited desktop.

Discuss this article in our forums, IRC channel, or email the author. You can also follow our content via RSS and on social networks like Facebook, Identi.ca, and Twitter (@Phoronix and @MichaelLarabel). Subscribe to Phoronix Premium to view our content without advertisements, view entire articles on a single page, and experience other benefits.
Latest Hardware Reviews
  1. Gallium3D Continues Improving OpenGL For Older Radeon GPUs
  2. 15-Way Open vs. Closed Source NVIDIA/AMD Linux GPU Comparison
  3. Nouveau vs. NVIDIA Linux Comparison Shows Shortcomings
  4. AMD Radeon Gallium3D More Competitive With Catalyst On Linux
Latest Software Articles
  1. Btrfs vs. EXT4 vs. XFS vs. F2FS On Linux 3.10
  2. AMD Radeon R600 GPU LLVM 3.3 Back-End Testing
  3. F2FS File-System Shows Regressions On Linux 3.10
  4. Previewing The Radeon Gallium3D Shader Optimizations
Latest Linux News
  1. Modern Intel Gallium3D Driver Still Being Toyed With
  2. Linux 3.10 Kernel Benchmarks On A Core i7 Laptop
  3. GCC 4.8.1 Compiler Due To Be Out Next Week
  4. Linux 3.10 Kernel Benchmarks For Intel Ivy Bridge
  5. Linux's "Ondemand" Governor Is No Longer Fit
  6. Firefox 22 Beta Enables WebRTC Support
  7. OpenSUSE 13.1 Milestone 1 Released
  8. DRM Graphics Driver Comes For Dove/Cubox
  9. JADE: An LLVM-Based Video Decoder For MPEG RVC
  10. Ubuntu 13.10 Likely Switching To Chromium Browser
  11. Unity 7, Compiz To Be Polished For Ubuntu 13.10
Latest Forum Talk
  1. KDE's Krita Ported To OpenGL 3.1, OpenGL ES 2.0
  2. Firefox 22 Beta Enables WebRTC Support
  3. Unity 8, Mir To Be Experimental Choice In Ubuntu...
  4. Linux's "Ondemand" Governor Is No...
  5. Greater Radeon Gallium3D Shader Optimization Tests
  6. Kubuntu, KDE Has Little Hope For Ubuntu's Mir
  1. Computers
  2. Display Drivers
  3. Graphics Cards
  4. Motherboards
  5. Peripherals
  6. Processors
  7. Software
  8. Operating Systems
  9. All Articles
  1. Linux Benchmarking
  2. OpenBenchmarking.org
  3. Phoronix Test Suite