Definitive guide for the acceleration 3D on VirtualBox
As you know I have already written two posts on 'subject, Acceleration 3D on VirtualBox and Habemus 3D, and at this point I felt the need to organize this kind of notes to build a comprehensive and relatively easy to use. If you read the post above and have some experience to know that VirtualBox architecture dl system virtualization provides a host machine, where is the operating system "real", and a machine with the guest virtual system. The trick is to try to put the two communication systems and ensure that "guest" exploiting the host of 3D acceleration. To do this we first need vmgl, a software developed by the genius of a Canadian developer of a script to create a host interface that will allow the two machines to communicate, to a small number of configurations on both systems and a po 'di patience.
Prerequisites
In my case the host machine is equipped with Ubuntu Hardy Heron and the guest with OpenSUSE 11, and now the call respectively hardy and suse.
On hardy installed everything necessary for the compilation (make, build-essential ...) + the following packages: freeglut3-dev, libxmu-dev, libbz2-dev, zlib1g-dev, libssl-dev, libjpeg62-dev, libjasper-dev.
Follow my guide on the installation and configuration of OpenSuse 11 on VirtualBox procastinando but l 'installarzione the guest additions after the vmgl (the next step). Also you need to install suse on the need to compile (make, gcc, gcc + +, kernel source ...) + the version of suse packages above: freeglut-devel, xorg-x11-devel-libxmu, libbz2-devel, libopenssl - devel, libjpeg-devel, libjasper-devel.
Obviously there will be many dependencies to be met er which to prepare nstallare a lot 'of stuff.
Installing vmgl
Hardy
Making vmgl download from the link above, unpack the tar.gz archive in your home, get in vmgl.hg type and make, make install-host.
Suse
In / home / $ user / vmgl.hg type make, make install-guest.
Configuration
Hardy
Open the file / etc / gdm / gdm.conf DisallowTCP and change in DisallowTCP = true = false; saved and run as root stub-daemon. Now stored in / etc / hosts the ip address of suse (suppose 192.168.0.3) followed by the hostname (eg linux-zlug), this completes the line: 192.168.0.3 linux-zlug.
Suse
Create an interface with the host script leo, quietly follow the instructions, you should only change your user name, and run VirtualBox with the network interface tap1. Assigned to suse ip address 192.168.0.3 in / etc / hosts Enter the IP address of hardy (192.168.0.2) and hostname (eg maddomlinux); full line: 192.168.0.2 maddomlinux. Open the port 6000 for 'X forwarding by running YaST-> editor for file / etc/sysconfig-> Desktop-> Display Manager and changing the value of DISPLAYMANAGER_XSERVER_TCP_PORT_6000_OPEN from no to yes.
Finally the file / etc / environment included the following lines:
DISPLAY = hostname: 0
GLSTUB = hostname: 7000
Restart, et voilà:
* hostname = the name of the host machine (hardy). In my case maddomlinux.
Update 9/07/2008
Few lines above, I documented how to create a telnet X11Forwarding through implementing the DISPLAY variable in / etc / environment. There is also another way, that is to use ssh-X from the host machine (hardy). In my type of setup works best so that I can show to john (my commentator english) and all of you a screenshot (the first of two) of gnuchess 3D (only the keyboard, not the pawns I may ...) . Operation is simple:
ssh-X username @ host (in my case mad73 @ linux-zlug).
Related posts ...
Installation and configuration of OpenSuse 11 on VirtualBox. By Mad on July 2nd, 2008
This post is meant to be a guide as comprehensive as possible on the installation and configuration of OpenSUSE 11 on VirtualBox 1st
The day of OpenSuse 11 by Mad on June 20th, 2008
This is the day of OpenSuse 11: "The openSUSE Project is proud to announce the release of openSUSE 11.
PolicyKit, permission denied ... by Mad on October 2nd, 2008
The process of search for knowledge is often studded with setbacks, and sometimes the best discoveries take away from these mistakes.
Which distro for my laptop? By Mad on April 29th, 2008
As everyone knows, a few days ago, the heron has marked her flight, and I must say with good results in terms of improved performance and good system stability.
+ + Kde 4.1 unstable on OpenSuse 11 by Mad on October 2nd, 2008
Want to update your OpenSuse 11th
If the site is to your liking subscribers subscribing to the free RSS Feed. Thanks for visiting!























July 9 2008 at 5:02 am
Where is the screenshot of compiz, or a 3d game, running inside of VirtualBox? Otherwise it was a good read! Thanks.!
PS: sorry about writing in english, but although a can read English, i can not write.
9 July 2008 at 10:34 AM
Excellent and simple guide
You could tell me if we could use this thing with a windows machine as a guest?
9 July 2008 at 12:53 pm
@ John
You can not run compiz because vmgl does not support AIGLX. I can not show any 3D game screenshot because my pc is quiet slow and it is not able to run a 3d game in VM. However you can see that DRI enabled and vmgl works ...
@ Fattazzo
On windows you can not for the simple reason that does not support opengl but directx.
Hello!
July 9 2008 at 5:09 pm
I can not read anything but english [I know, I'm stupid] but that looks like some type of a devil operating system. Is it Linux? Because if it is, you should read The Truth about Linux and make the choice for yourself.
16 July 2008 at 8:43 am
Hello, I have successfully performed all the steps in the guide, and finally making a glxinfo tells me that 3D is active, but when I do glxgears does not make me see "the wheels" (... and after a while I s'inchioda VM) and if I try to take a look at some 3D screensaver I can not see anything! I know to help in any way?
26 August 2008 at 8:19 pm
Hello, I too had a similar need, start an X server on a virtual machine UserModeLinux and I solved using vnc server on which it is supported on the client that was going on guest ...
Ora pero 'just wanted to run 3D applications on microsoft VirtualBox, the Nvidia drivers support OpenGL for windows ... and I am sure ...
But now 'I do not know if there is a patch or a new driver for the card VirtualBox virtual ... know anything?
26 August 2008 at 8:21 pm
dimenticaro I have to tell you that the performance of vnc are well above that is a telnet to ssh with Xforwarding as passing in the clear, without encryption own ssl for example ...
Hello
31 August 2008 at 3:31 pm
There is no way to emulate the 3d with windows on virtual box?