Definitive guide for the acceleration 3D on Virtualbox
As sapete I have already written two post on the argument, Acceleration 3D on VirtualBox and Habemus 3D, and to this point I have felt the need to organize this kind of notes in order to construct a complete guide and relatively easy I use. If you have read the post of which over and have a sure experience of virtualbox sapete that the architecture dl arranges of virtualizzazione previews a machine host, where resides “real” the operating system, and a machine guest with the virtual system. The trick is to try to put in communication the two arranges and to make so that “guest” it takes advantage of the host acceleration 3D. In order to make this we have need of vmgl in the first place, a software been born from the genius of a Canadian sviluppatore, of a script in order to create an interface host that allows the two blots some to communicate, of a series of small configurations on the two arranges a little and of patience.
Prerequisiti
In my case the machine host is equipped with Ubuntu Hardy Heron and the guest with OpenSUSE 11, therefore from now I will call to them respective hardy and suse.
On hardy installed all the necessary one for the compilation (make, build-essential…) the following packages: freeglut3-dev, libxmu-dev, libbz2-dev, zlib1g-dev, libssl-dev, libjpeg62-dev, libjasper-dev.
Continuations my guide on the Installation and configuration of Opensuse 11 on Virtualbox procastinando but the installarzione of the guest additions to after that of vmgl (the successive step). Also on suse it must install the necessary one for the compilation (make, GCC, gcc , kernel source…) the version suse of the packages of which over: freeglut-devel, xorg-x11-libxmu-devel, libbz2-devel, libopenssl-devel, libjpeg-devel, libjasper-devel.
Obviously there will be several dependencies to satisfy er which preparatevi to nstallare a beautiful one po' of roba.
Installation of vmgl
Hardy
To make the download of vmgl from link the precedence, to scompattare the tar.gz archives in the home, to enter in vmgl.hg and typing make, make install-host.
Suse
In /home/ $user/vmgl.hg to type make, make install-guest.
Configuration
Hardy
You open the /etc/gdm/gdm.conf rows and changed DisallowTCP=true in DisallowTCP=false; saved and from root launch stub-daemon. Now inserted in /etc/hosts IP address of suse (we suppose 192.168.0.3) followed from the hostname (es. linux-zlug); this the complete line: 192.168.0.3 linux-zlug.
Suse
Created an interface host with the leo script; you follow of it calmly the instructions, you must only change to the name customer, and launch virtualbox with the net interface tap1. Assigned to suse IP address 192.168.0.3 and in /etc/hosts inserted IP address of hardy (192.168.0.2) and the hostname (es. maddomlinux); complete line: 192.168.0.2 maddomlinux. You open door 6000 for the X forwarding launch YaST->Editor for /etc/sysconfig rows - >Desktop->Display manager and changing the value of DISPLAYMANAGER_XSERVER_TCP_PORT_6000_OPEN from not yes.
At last in the inserted /etc/environment rows the following lines:
DISPLAY=hostname: 0
GLSTUB=hostname: 7000
Riavviate, voilà ET:

*hostname=il name of the machine host (hardy). In my case maddomlinux.
Update 9/07/2008
Little lines over, I have documented the way to create a X11forwarding through telnet being implemented the variable DISPLAY in /etc/environment. An other way exists also, that is that to use ssh - X from the machine host (hardy). In my type of configuration better, a lot works that they are in a position to showing to john (my commentator english) and to all you screenshot (a first one of the two) of gnuchess 3D (only the keyboard, the pawns is not granted to me…). The use is simplest:
ssh - X nomeutente@host (in my case mad73@linux-zlug).
Post correlated…
Which distro for mine laptop? by Mad on April 29th, 2008
As all know, little days ago the airone it has detached its flight and I must say with good result in terms of improvement of the total performances and a good stability of the system.
Installation and configuration of OpenSuse 11 on VirtualBox. by Mad on July 2nd, 2008
This post wants to be the most possible guide exaustive on the installation and configuration of OpenSUSE 11 on VirtualBox 1.
Ubuntu Hardy, Fedora 9, Opensuse 11 by Mad on June 3rd, 2008
Creed that 2008 will be a particularly meaningful year for the pinguino, its final communities and its customers.
The day of Opensuse 11 by Mad on June 20th, 2008
This is the day of OpenSuse 11: “The plan openSUSE is proud to announce the release of openSUSE 11.






















9 July 2008 to the 5:02 am
Where is the screenshot of compiz, or to 3d game, running inside of virtualbox? Otherwise it was to good read! Thanks.!
P.S: sorry about writing in english, but although to can read Italian, the can't write.
9 July 2008 to the 10:34 am
Optimal and simple guide
You could dirmi if it were possible to take advantage of this thing also with a machine windows as guest?
9 July 2008 to the 12:53 pm
@John
You can't run compiz because vmgl doesn't support AIGLX. Can't shows any 3D game screenshot because my PC is quiet slow and it isn't able to run to 3d game in VM. However you can see that DRI enabled and vmgl works…
@Fattazzo
On windows not it can for the simple reason that it does not support opengl but directx.
Hello!
9 July 2008 to the 5:09 pm
Can't read anything but english [the know, I'm stupid] but that looks like loads type of to devil operating system. Is it Linux? Because if it is, you should read The Truth about choice Linux and make for yourself.
16 July 2008 to the 8:43 am
Hello, I have correctly executed all the passages of the guide and at the end making a glxinfo it says to me that the 3D it is active; but if I make glxgears not it makes me to see “gears” (… and after po me s'inchioda the VM) and if I try to give a glance to some screensaver 3D I do not succeed to visualize nothing! You know to me to help in some way?
26 August 2008 to the 8:19 pm
Hello, also I had a similar requirement, to start one serveur X on one virtual machine UserModeLinux and have resolved using vnc serveur on the host on which the client was leaned that it turned on the guest…
Now pero' I wanted own to make to turn applications 3d microsoft on virtualbox, drivers the Nvidia for windows supports OpenGL… and of this they are sure…
Now pero' I do not know if a patch exists or a driver new for the virtual card of virtualbox… you know nothing?
26 August 2008 to the 8:21 pm
me they are dimenticaro of dirti that the performances of vnc are clearly advanced or to telnet that to ssh with Xforwarding as they pass in luminosity, without the crittazione own of SSL as an example…
Hello
31 August 2008 to the 3:31 pm
Does not exist no way in order to emulate the 3d with windows on virtual box?