Acceleration 3D on VirtualBox
As sure you will have comprised from the title it, this is last the my “fixed one”, to try to activate the acceleration 3D on a virtual machine with VirtualBox and Vmgl. We know that VirtualBox, also being a product truly much valid one, thus like explained in this post, does not support the 3D. Many will be asked: But to what it serves the 3D in a virtual machine? If I must play to us or I want to rejoice with effects details it is not better a beautiful installation cleaned up on a partition ad hoc?
All legitimate objections, but tant'è. You story as it has gone.
Days ago the wish is taken to me to install kde 4 on kubuntu 7,10 in VirtualBox; I have followed the official guide on the site of kubuntu and all it has gone to good aim. Then they are said to me: Why not to change the topic of kde 4? I have found and followed this post of Divilinux on the application of Slim Glow, a topic for kde 4 that needs of effects desktop 3D; to thus they are said me: Why not to try to see if it is possible to qualify the acceleration 3D on VirtualBox?
In my usual to girovagare for the net to the search of information I have found of the post on Vmgl. 
Product from Canadian sviluppatori is a software that allows the rendering 3D on blots some virtual, tested on VMware and Xen, but, in theory working also with other systems of virtualizzazione. I have carried out download of the tar.gz rows from the Home Page and the continuation the installation procedures:
- Scompattare the archives and to copy it in the machine host (Ubuntu 7,10 in my case) and that guest (for me VirtualBox with Kubuntu 7,10);
- to open the /vmgl.hg/cr/Linux.mk rows with any editor of text and to change make=gmake - s in make =make - s, this because of the fact that this software is made also for systems BS;
- to make sure itself of to have installed the following packages: freeglutt3-dev, libxmu-dev, libbz2-dev, zlib1g-dev, libssl-dev, libjpeg-dev;
- in vmgl.hg then typing make and make install-host (in the machine host) and make install-guest (in that guest);
- in Section “Module” of /etc/X11/xorg.conf to insert Load “vmglext”, therefore restart of xorg;
- to make to leave stub-daemon in host;
- to qualify the X forwarding traimite ssh (in host) and ssh - X (in guest), or inserting DISPLAY=<host_hostname>: 0 in the /etc/environment rows;
- to settare GLSTUB = <host_hostname>: always 7000 in the /etc/environment rows.
We would have to be to place, solo that to mine glxinfo mine guest machine answers: CR Error (maddomlinux: 5252): Failed connect to maddomlinux: 7000.
It seems that guest and hosts do not succeed to communicate, nevertheless also I have created an interface host tap1 modifying the script of leodav, perfectly working.
I accept aids from anyone has wish to contribute to resolve this problem.
Post correlated…
Installation and configuration of virtualbox. by Mad on December 3rd, 2007
This guide proposes itself to explain with accessible words also to “niubbo” the use of virtualbox, to my opinion one of the best systems than virtualizzazione in circulation.
A translator from line of commando by Mad on April 4th, 2008
All “internauti” know at this point that in order translate a text in more languages enough to use the translator online of.
Distro personalized in little click. by Mad on December 2nd, 2007
How to create easy a personalized distribution in a short time? Simply using any of the tool developed for this scope (UCK, Reconstructor.
Samsung sgh u700 evo, hsdpa and ubuntu hardy by Mad on June 1st, 2008
My summery logons, cause movement from it accustoms them residence, over recent years to this part, has been taken advantage of Gprs/Umts modem.
Google pack on linux? by Mad on November 8th, 2007
Turning for the blogosfera I have found this interesting.





















4 February 2008 to the 5:59 pm
it could be one problem of X forwarding
if you have not already made modifications in kubuntu in the rows:
/etc/kde3/kdm/kdmrc
the ServerArgsLocal line is commented of default. you would have decommentarla leaving it unchanged.
# This string is subject to word splitting.
# Default is “”
#ServerArgsLocal=-nolisten tcp
5 February 2008 to the 7:20 pm
I ringrazio you for the suggestion, but the line in issue was already without comment.
5 February 2008 to the 8:13 pm
true. scusami. I have mailed solemn castronata.
I explain myself: I remembered myself to have changed this formulation in order to make to work forward the X11 with kubuntu. as a result of yours post they have gone to see like it I have shaped, and in effects I have commented it to the line (and not viceversa).
A lot that the copy glue of post the precedence I have made it from my rows of configuration thus com'è, it is the given explanation that it is toppata.
a lot in order not to write to vanvera of new:
X11 uses for the remote login the door 6000/tcp.
the line
ServerArgsLocal=-nolisten tcp
it blocks the door. commenting it obviously the free ones.
verifying my configuration X11 forwarding activated puts into effect them (and working) with nmap 127.0.0.1 obtains:
Interesting ports on localhost (127.0.0.1):
Not shown: 1694 closed ports
BEEN PORT SERVICE
22/tcp open ssh
631/tcp open ipp
6000/tcp open X11
5 February 2008 to the 9:36 pm
In a sudden start I give frustration I have eliminated kubuntu the machine and I am trying again the entire procedure of installation. However as soon as I can I try and I make to know you.
Hello!
7 February 2008 to the 2:09 pm
[...] ← Acceleration 3D on VirtualBox [...]
17 February 2008 to the 8:52 pm
which two precise commandos you have used in order to make this: “to qualify the X forwarding traimite ssh (in host) and ssh - X (in guest)”?
Tnx
17 February 2008 to the 9:20 pm
simply ssh hostname: and ssx - X hostname: ; however you can calmly adopt according to method (DISPLAY=…) that it works dearly.
Council to read also post successive (the Habemus to you 3D on VirtualBox) that it is the natural completion of this guide.
Hello!
9 July 2008 to the 12:13 am
[...] Acceleration 3D on VirtualBox - 984 views [...]
25 August 2008 to the 11:44 am
hello
[quotas]
1. Scompattare the archives and to copy it in the machine host (Ubuntu 7,10 in my case) and that guest (for me VirtualBox with Kubuntu 7,10);
2. to open the /vmgl.hg/cr/Linux.mk rows with any editor of text and to change make=gmake - s in make =make - s, this because of the fact that this software is made also for systems BS;
3. to make sure itself of to have installed the following packages: freeglutt3-dev, libxmu-dev, libbz2-dev, zlib1g-dev, libssl-dev, libjpeg-dev;
4. in vmgl.hg then typing make and make install-host (in the machine host) and make install-guest (in that guest);
5. in Section “Module” of /etc/X11/xorg.conf to insert Load “vmglext”, therefore restart of xorg;
6. to make to leave stub-daemon in host;
7. to qualify the X forwarding traimite ssh (in host) and ssh - X (in guest), or inserting DISPLAY=: 0 in the /etc/environment rows;
8. to settare GLSTUB =: always 7000 in the /etc/environment rows.
[/quote]
these operations it must execute them in the virtualizzato operating system on virtualbox?
thanks
25 August 2008 to the 5:26 pm
host is the system installed on the PC while guest that one on virtualbox.
Hello!
1 September 2008 to the 12:44 pm
Point 5 and 8 must be made on the guest, the host or both?
Point 7 as one adopts a position? For host_hostname agrees the IP of the created inner net with virtualbox?
1 September 2008 to the 1:14 pm
Points 5, 7 and 8 solos on the guest; they respective serve to load the module vmglext that it is taken care of the recovery (if thus can be said) of the OpenGL from the host, to make that Serveur X is connected on the DISPLAY of the host and to the communication through door 7000 with the activated demon stub on the host.
If you decide to use telnet rather than Ssh (the possibility exists also to use Vnc but I do not have it head) the variable DISPLAY I must settare in /etc/environment on the Guest.
Hello!
1 September 2008 to the 1:44 pm
I add: now it exits to me: CR Error (test-vm: 5562): Failed connect to 10.0.2.2: 6000
What I can make? In the PC host, under /etc/ssh/ssh_config I have qualified these options:
ForwardX11 yes
ForwardX11Trusted yes
and fact “xhost ” for disabilitare the control, allowing all the hosts to enter: S
1 September 2008 to the 1:59 pm
Like not said, riavviato the virtual machine and now it goes!
In the sense… technically it goes, practically glxinfo filler all correcting but the applications are not looked at!
Here the error that if says to me I execute an application from finishes them:
“Pack SPU: Couldn't init X serveur CR support extension”
Now they are own spiantato
1 September 2008 to the 4:02 pm
It tries to put your hostname to the place of IP address, naturally after to have shaped it in /etc/hosts
1 September 2008 to the 4:33 pm
I have arranged riavviando once more the machine guest… boh?
Now it appears (I hope) the last error to me!
CR Info (giacomo-desktop: 5362): Pack SPU: Couldn't init X serveur CR support extension!
This when start glxgears or ume-launcher (launcher of Netbook Remix), both uses the 3D obviously. Xterm works very well (does not use the 3D in fact)… The windows are simply white women… ideas?
Thanks