1. Computers
  2. Display Drivers
  3. Graphics Cards
  4. Memory
  5. Motherboards
  6. Processors
  7. Software
  8. Storage
  9. Operating Systems


Facebook RSS Twitter Twitter Google Plus


Phoronix Test Suite

OpenBenchmarking.org

VirtualBox 4.1 OpenGL 3D Guest Performance

Michael Larabel

Published on 8 November 2011
Written by Michael Larabel
Page 1 of 3 - 14 Comments

While KVM may be very fast for Linux virtualization, one of the areas where VMware and VirtualBox are superior is when it comes to the ability to provide hardware-accelerated 2D/3D support to guest virtual machines that ultimately is passed onto the host and its graphics card / driver. In this benchmark is a look at the gaming performance of Oracle's VM VirtualBox 4.1 when using their "Chromium" driver to enable guest Linux OpenGL acceleration.

Back in March I published some VirtualBox 4.0 3D benchmarks, which were rather unpleasant and left a lot to be desired, but the benchmarks today are coming from new hardware and using the latest VirtualBox release (v4.1.2) available on Ubuntu 11.10 in the Oneiric repository. The guest drivers were also installed, which is needed for enabling the VirtualBox guest driver dubbed Chromium (not to be confused with Google's Chromium).

The OpenGL Windows guest acceleration in VirtualBox came in late 2008 and in early 2009 there was Direct3D acceleration for Windows guests. The OpenGL Linux support came to VirtualBox a few months later. This support was originally introduced in the VirtualBox 2 series. VirtualBox 3.0 came with OpenGL 2.0 support along with SMP support and other improvements.

Unlike VMware's implementation that uses the Gallium3D architecture in passing graphics calls from the guest to host, the Innotek/Sun/Oracle developers working on VirtualBox haven't been convinced about this model and use their own model. Since then we have seen the release of VirtualBox 4.0 and VirtualBox 4.1, so we are seeing today where the guest 3D support is standing. This support is available on all supported platforms: Windows, Linux, Mac OS X, and Solaris.

For those wondering about the technical implementation of this 3D support, the documentation describes it as, "Technically, VirtualBox implements this by installing an additional hardware 3D driver inside your guest when the Guest Additions are installed. This driver acts as a hardware 3D driver and reports to the guest operating system that the (virtual) hardware is capable of 3D hardware acceleration. When an application in the guest then requests hardware acceleration through the OpenGL or Direct3D programming interfaces, these are sent to the host through a special communication tunnel implemented by VirtualBox, and then the host performs the requested 3D operation via the host's programming interfaces."

The 2D hardware accelerated description is along similar lines. "With this feature, if an application (e.g. a video player) inside your Windows VM uses 2D video overlays to play a movie clip, then VirtualBox will attempt to use your host's video acceleration hardware instead of performing overlay stretching and color conversion in software (which would be slow). This currently works for Windows, Linux and Mac host platforms, provided that your host operating system can make use of 2D video acceleration in the first place...Technically, VirtualBox implements this by exposing video overlay DirectDraw capabilities in the Guest Additions video driver. The driver sends all overlay commands to the host through a special communication tunnel implemented by VirtualBox. On the host side, OpenGL is then used to implement color space transformation and scaling."

On a ZaReason notebook with an Intel Core i7 "Sandy Bridge" processor and NVIDIA graphics, the OpenGL performance was compared within VirtualBox and when running on bare metal. Several open-source games were tested at a variety of resolutions under both system. The official NVIDIA binary Linux driver was used the entire time during testing.

<< Previous Page
1
Latest Linux Hardware Reviews
  1. Preview: AMD's FX-9590 Eight-Core At Up To 5.0GHz On Linux
  2. Intel Launches The Core i7 5960X, Mighty Powerful Haswell-E CPUs
  3. AMD Radeon R9 290: Gallium3D vs. Catalyst Drivers
  4. AMD Radeon R9 290 Open-Source Driver Works, But Has A Ways To Go
Latest Linux Articles
  1. How Intel Graphics On Linux Compare To Open-Source AMD/NVIDIA Drivers
  2. The Fastest NVIDIA GPUs For Open-Source Nouveau With Steam Linux Gaming
  3. Testing For The Latest Linux Kernel Power Regression
  4. The Most Energy Efficient Radeon GPU For AMD Linux Gaming
Latest Linux News
  1. Marek Lands Radeon Gallium3D HyperZ Improvements
  2. Mozilla Firefox 32 Surfaces With HTML5, Developer Changes
  3. Nouveau X.Org Driver Released With DRI3+Present, Maxwell, GLAMOR
  4. Microsoft & AMD Release C++ AMP Compiler With Linux Support
  5. AMD, Wine & Valve Dominated August For Linux Users
  6. Linux 3.17-rc3 Kernel Released Back On Schedule
  7. Lennart Poettering Talks Up His New Linux Vision That Involves Btrfs
  8. Mesa 10.3 RC2 Arrives Via Its New Release Manager
  9. Ubuntu 14.10's Lack Of X.Org Server 1.16 Gets Blamed On AMD
  10. MSI Motherboard BIOS Updating Remains A Pain For Linux Users
Latest Forum Discussions
  1. Lennart Poettering Talks Up His New Linux Vision That Involves Btrfs
  2. Best Radeon for a Power Mac G5?
  3. The dangers of Linux kernel development
  4. Updated and Optimized Ubuntu Free Graphics Drivers
  5. AMD Releases UVD Video Decode Support For R600 GPUs
  6. SSD seems slow
  7. Is laptop with Intel CPU and AMD dGPU worth buying considering especially AMD Enduro?
  8. Radeon HD5670 and Ubuntu 14.04