3d is not proper working inside a virtualbox guest

Bug #1351376 reported by Mirco T
30
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Virtualbox
Fix Released
Unknown
virtualbox (Ubuntu)
Fix Released
Undecided
Unassigned
Trusty
Fix Released
Undecided
Unassigned

Bug Description

[Impact]

As many users use virtual machines to experiment with Ubuntu systems, it is crucial that for an LTS 3D acceleration is working properly in popular virtualization software.

[Test Case]

In an Ubuntu trusty virtual machine install latest virtualbox-guest-* packages. On this system run glxinfo and make sure that 3D acceleration is properly handled.

[Other Info]

Good evening
I notice a problem inside a guest virtualbox kubuntu 14.04.1 64bit edition; 3d does not work properly

glxinfo |head
libGL error: failed to authenticate magic 1
libGL error: failed to load driver: vboxvideo
name of display: :0
display: :0 screen: 0
direct rendering: Yes
server glx vendor string: SGI
server glx version string: 1.4
server glx extensions:
    GLX_ARB_multisample, GLX_EXT_import_context, GLX_EXT_texture_from_pixmap,
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_MESA_copy_sub_buffer,
    GLX_OML_swap_method, GLX_SGIS_multisample, GLX_SGIX_fbconfig,
    GLX_SGIX_pbuffer, GLX_SGI_make_current_read

virtualbox-guest-x11 and virtualbox-guest-dkms are already at latest version

please note that the old ubuntu 12.04.04 works pefectly
name of display: :0
display: :0 screen: 0
direct rendering: Yes
server glx vendor string: Chromium
server glx version string: 1.3 Chromium
server glx extensions:
    GLX_ARB_multisample, GLX_EXT_texture_from_pixmap, GLX_SGIX_fbconfig,
    GLX_ARB_get_proc_address
client glx vendor string: Chromium
client glx version string: 1.3 Chromium

as far as I know thi is a problem of the guest addition as you can read from the Vbox forum
https://www.virtualbox.org/ticket/12941

can you update the guest addition package?

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in virtualbox (Ubuntu):
status: New → Confirmed
Revision history for this message
Vlad Orlov (monsta) wrote :

We need a backport of the fix from 4.3.14 to Trusty's 4.3.10.

Revision history for this message
Vlad Orlov (monsta) wrote :

Still not fixed in Trusty.

Vlad Orlov (monsta)
tags: added: trusty
Revision history for this message
Gianfranco Costamagna (costamagnagianfranco) wrote :

Hi Monsta, do you have a reference for the "fix" you are talking about?

Can you please try this patch?
http://anonscm.debian.org/cgit/pkg-virtualbox/virtualbox.git/commit/src/VBox/Additions/x11?id=3eb8d91ea4b084bee126b91d0e3ac792a8bc8a8a

it might be the fix for this bug, altough I'm not sure because I didn't test it (just looked at the diff)

Revision history for this message
Vlad Orlov (monsta) wrote :

That's not a patch, that's a part of a huge import of the new upstream version, limited to one subdir. If I was a maintainer, I wouldn't apply that to 4.3.10 as is. Instead I'd try to search for the upstream commit with the fix and then cherry-pick it.

Revision history for this message
Gianfranco Costamagna (costamagnagianfranco) wrote :

You aren't the maintainer, I am :-)

but indeed you are right, I wont ever apply such a patch. I'm asking you if the patch solves the issue, if it works I can then look at the 45000 upstream commits to find the correct one :-)

I just would like to save some time, because this probem can easily be solved already with a backport request

Revision history for this message
Vlad Orlov (monsta) wrote :

Well, here's the comment in the upstream bug report where the developer says it's fixed:
https://www.virtualbox.org/ticket/12941#comment:36

As he said,
> the commit message will be: "Additions/x11/vboxvideo: properly report the file descriptor for the kernel driver to allow authentication to work."

So, looking at the github mirror (which is much more convenient than the upstream repo interface), I found that commit quite quickly:
https://github.com/mdaniel/virtualbox-org-svn-vbox-trunk/commit/091213fd0b5e319918172d1f486cdf2bfffb75ff

I can't test it at the moment, but I'll get back to it later and check if it's applicable to 4.3.10 source (because the commit is from 4.3.13).

Changed in virtualbox:
status: Unknown → New
Revision history for this message
Gianfranco Costamagna (costamagnagianfranco) wrote :

the lack of a decent git mirror/interface is the main reason for my lack of fixes :)

I usually look at the diff between git import origs, but importing in the debian git repository makes git loose the single commit description :)

I'll fix it tomorrow and push on my ppa.

thanks!

Revision history for this message
Vlad Orlov (monsta) wrote :

The mentioned github mirror should make things more convenient for you :)

Revision history for this message
Gianfranco Costamagna (costamagnagianfranco) wrote :

Hi Monsta, can you please test virtualbox from costamagnagianfranco/locutusofborg-ppa?

should be working with the minimalist patch I could figure out :)

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "debdiff" seems to be a debdiff. The ubuntu-sponsors team has been subscribed to the bug report so that they can review and hopefully sponsor the debdiff. If the attachment isn't a patch, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are member of the ~ubuntu-sponsors, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issue please contact him.]

tags: added: patch
Revision history for this message
Vlad Orlov (monsta) wrote :

Ok, I've installed virtualbox-guest-x11, virtualbox-guest-dkms and virtualbox-guest-utils version 4.3.10-dfsg-1ubuntu5 from your PPA.
Looks good. Cinnamon now has 3D acceleration that was missing with guest additions 4.3.10-dfsg-1ubuntu2.

First I tested it with mesa 10.1.3-0ubuntu0.1, then updated mesa packages to 10.1.3-0ubuntu0.3. All good.

Changed in virtualbox (Ubuntu Trusty):
status: New → Confirmed
Changed in virtualbox (Ubuntu):
status: Confirmed → Invalid
Changed in virtualbox (Ubuntu):
status: Invalid → Fix Released
description: updated
Revision history for this message
Łukasz Zemczak (sil2100) wrote :

Package looks good to me, uploading it in a moment. I would personally prefer the patch naming to be consistent with the other patches (i.e. include a number at the front), but since it's a Debian virtualbox uploader preparing this patch I'm pretty sure LoctusOfBorg know's what's better suiting.

Changed in virtualbox (Ubuntu Trusty):
status: Confirmed → In Progress
Revision history for this message
Brian Murray (brian-murray) wrote : Please test proposed package

Hello Mirco, or anyone else affected,

Accepted virtualbox into trusty-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/virtualbox/4.3.10-dfsg-1ubuntu3 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Changed in virtualbox (Ubuntu Trusty):
status: In Progress → Fix Committed
tags: added: verification-needed
Revision history for this message
Gianfranco Costamagna (costamagnagianfranco) wrote :

Hi Mirco and Monsta, can you please try the proposed package?

thanks

Revision history for this message
Vlad Orlov (monsta) wrote :

I confirm that the proposed virtualbox-guest-* packages version 4.3.10-dfsg-1ubuntu3 work fine and fix the software rendering issue in Cinnamon. After the upgrade of these packages from 4.3.10-dfsg-1ubuntu2 to 4.3.10-dfsg-1ubuntu3, Cinnamon started to use the 3D rendering properly.

tags: added: verification-done
removed: verification-needed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package virtualbox - 4.3.10-dfsg-1ubuntu3

---------------
virtualbox (4.3.10-dfsg-1ubuntu3) trusty; urgency=medium

  * Cherry-pick upstream commit to fix a 3d graphic acceleration issue.
    fix-3d-not-working.patch
    (LP: #1351376) thanks to Monsta for providing the patch.
 -- Gianfranco Costamagna <email address hidden> Sun, 08 Feb 2015 14:41:25 +0100

Changed in virtualbox (Ubuntu Trusty):
status: Fix Committed → Fix Released
Revision history for this message
Brian Murray (brian-murray) wrote : Update Released

The verification of the Stable Release Update for virtualbox has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

Revision history for this message
Vlad Orlov (monsta) wrote :

Thanks :)

Revision history for this message
Mirco T (mirco-torelli) wrote :

the glxinfo reports the following error
libGL error: pci id for fd 4: 80ee:beef, driver (null)
OpenGL Warning: glFlushVertexArrayRangeNV not found in mesa table
OpenGL Warning: glVertexArrayRangeNV not found in mesa table
OpenGL Warning: glCombinerInputNV not found in mesa table
OpenGL Warning: glCombinerOutputNV not found in mesa table
OpenGL Warning: glCombinerParameterfNV not found in mesa table
OpenGL Warning: glCombinerParameterfvNV not found in mesa table
OpenGL Warning: glCombinerParameteriNV not found in mesa table
OpenGL Warning: glCombinerParameterivNV not found in mesa table
OpenGL Warning: glFinalCombinerInputNV not found in mesa table
OpenGL Warning: glGetCombinerInputParameterfvNV not found in mesa table
OpenGL Warning: glGetCombinerInputParameterivNV not found in mesa table
OpenGL Warning: glGetCombinerOutputParameterfvNV not found in mesa table
OpenGL Warning: glGetCombinerOutputParameterivNV not found in mesa table
OpenGL Warning: glGetFinalCombinerInputParameterfvNV not found in mesa table
OpenGL Warning: glGetFinalCombinerInputParameterivNV not found in mesa table
OpenGL Warning: glDeleteFencesNV not found in mesa table
OpenGL Warning: glFinishFenceNV not found in mesa table
OpenGL Warning: glGenFencesNV not found in mesa table
OpenGL Warning: glGetFenceivNV not found in mesa table
OpenGL Warning: glIsFenceNV not found in mesa table
OpenGL Warning: glSetFenceNV not found in mesa table
OpenGL Warning: glTestFenceNV not found in mesa table
libGL error: core dri or dri2 extension not found
libGL error: failed to load driver: vboxvideo

Revision history for this message
Gianfranco Costamagna (costamagnagianfranco) wrote :
Revision history for this message
Mirco T (mirco-torelli) wrote :
Download full text (3.4 KiB)

on the guest
dpkg -l virtualbox-guest-dkms
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============================-====================-====================-=================================================================
ii virtualbox-guest-dkms 4.3.10-dfsg-1ubuntu3 all x86 virtualization solution - guest addition module source for dk

glxinfo | grep OpenGL
libGL error: pci id for fd 4: 80ee:beef, driver (null)
OpenGL Warning: glFlushVertexArrayRangeNV not found in mesa table
OpenGL Warning: glVertexArrayRangeNV not found in mesa table
OpenGL Warning: glCombinerInputNV not found in mesa table
OpenGL Warning: glCombinerOutputNV not found in mesa table
OpenGL Warning: glCombinerParameterfNV not found in mesa table
OpenGL Warning: glCombinerParameterfvNV not found in mesa table
OpenGL Warning: glCombinerParameteriNV not found in mesa table
OpenGL Warning: glCombinerParameterivNV not found in mesa table
OpenGL Warning: glFinalCombinerInputNV not found in mesa table
OpenGL Warning: glGetCombinerInputParameterfvNV not found in mesa table
OpenGL Warning: glGetCombinerInputParameterivNV not found in mesa table
OpenGL Warning: glGetCombinerOutputParameterfvNV not found in mesa table
OpenGL Warning: glGetCombinerOutputParameterivNV not found in mesa table
OpenGL Warning: glGetFinalCombinerInputParameterfvNV not found in mesa table
OpenGL Warning: glGetFinalCombinerInputParameterivNV not found in mesa table
OpenGL Warning: glDeleteFencesNV not found in mesa table
OpenGL Warning: glFinishFenceNV not found in mesa table
OpenGL Warning: glGenFencesNV not found in mesa table
OpenGL Warning: glGetFenceivNV not found in mesa table
OpenGL Warning: glIsFenceNV not found in mesa table
OpenGL Warning: glSetFenceNV not found in mesa table
OpenGL Warning: glTestFenceNV not found in mesa table
libGL error: core dri or dri2 extension not found
libGL error: failed to load driver: vboxvideo
OpenGL vendor string: Humper
OpenGL renderer string: Chromium
OpenGL version string: 2.1 Chromium 1.9
OpenGL shading language version string: 4.30
OpenGL extensions:

and i have some blak area on the screen, it seem a refresh problem.

On the host
dpkg -l |grep -i virtualbox
ii virtualbox 4.3.10-dfsg-1ubuntu3 amd64 x86 virtualization solution - base binaries
ii virtualbox-dkms 4.3.10-dfsg-1ubuntu3 all x86 virtualization solution - kernel module sources for dkms
ii virtualbox-qt 4.3.10-dfsg-1ubuntu3 amd64 x86 virtualization solution - Qt based user interface

 glxinfo | grep OpenGL
OpenGL vendor string: Advanced Micro Devices, Inc.
OpenGL renderer string: AMD Mobility Radeon HD 5000 Series
OpenGL core profile version string: 4.3.12798 Core Profile Context 13.35.1005
OpenGL core profile shading language version string: 4.30
OpenGL core profile context flags: (none)
OpenGL core pr...

Read more...

Revision history for this message
Gianfranco Costamagna (costamagnagianfranco) wrote :

sorry wrong link, some users did successfully load 3d here
http://ubuntuforums.org/showthread.php?t=2209197

Revision history for this message
Vlad Orlov (monsta) wrote :

Hi Mirco,

Here's a note from the developers in the upstream bug report:

Please stop reporting that you see the line "libGL error: failed to load driver: vboxvideo" in the output of glxinfo and/or unity_support_test. This is normal (an artifact of the unusual approach which VirtualBox uses to implement the 3D support).

As long as the command shows "OpenGL renderer string: Chromium" everything is perfect, and will result in working 3D acceleration.

Changed in virtualbox:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.