Lost OpenGL/3D acceleration

Discussions about using Linux guests in VirtualBox.
Post Reply
raka
Posts: 5
Joined: 16. Feb 2015, 17:07

Lost OpenGL/3D acceleration

Post by raka »

HP Zbook G2
Windows 7 x64 professional
Virtualbox 4.3.20 (4.3.22)
Ubuntu 14.04

I updated Windows graphic drivers,Ubuntu, and Virtualbox and after that I'm no more able to start Unity on Ubuntu 14.04 because it crashes with a segmentation fault. I noticed, that when installing VB additions, the OpenGL is not listed (there is no "Building the OpenGL support module"), see attachment. I suppose that Unity fails to start due to the missing OpenGL support. 3D acceleration is enabled in settings.

Any idea?
Attachments
unity_test.png
unity_test.png (11.93 KiB) Viewed 2833 times
AdditionsInstallation.png
AdditionsInstallation.png (17.2 KiB) Viewed 2833 times
Last edited by raka on 16. Feb 2015, 17:43, edited 1 time in total.
loukingjr
Volunteer
Posts: 8851
Joined: 30. Apr 2009, 09:45
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: just about all that run

Re: Lost OpenGL/3D acceleration

Post by loukingjr »

First of all you shouldn't have VMWare Tools and the VirtualBox Guest Additions installed in the same guest.

You can't run VMWare and VirtualBox at the same time.

You also can't have Hyper-v enabled in the host.
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
raka
Posts: 5
Joined: 16. Feb 2015, 17:07

Re: Lost OpenGL/3D acceleration

Post by raka »

Thanks for your answer. My apology, VMWare was wrong, VirtualBox is correct.

Btw, It worked before. I have not installed anything new, just the updates.
loukingjr
Volunteer
Posts: 8851
Joined: 30. Apr 2009, 09:45
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: just about all that run

Re: Lost OpenGL/3D acceleration

Post by loukingjr »

no problem. I only have Linux and OSX hosts and the 4.3.22 GAs are working for me.

What I wonder about is the message in your first screenshot…
"Unity is not supported by your hardware." Which usually means VT-x is disabled or Hyper-v is enabled. Or something in your Windows host is using VT-x. Apparently BitDefender does, among other programs.
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
raka
Posts: 5
Joined: 16. Feb 2015, 17:07

Re: Lost OpenGL/3D acceleration

Post by raka »

Among the SW I updated was also BIOS. Do I disable the Hyper-V in BIOS? I have VT-X enabled.
loukingjr
Volunteer
Posts: 8851
Joined: 30. Apr 2009, 09:45
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: just about all that run

Re: Lost OpenGL/3D acceleration

Post by loukingjr »

If Hyper-V is enabled in the BIOS. As I said, I have no Windows hosts. I believe there is also a Windows Features control panel Hyper-V can be disabled in. If you attach the vbox.log (compressed) file for the Ubuntu guest (shutdown first), it will show if Hyper-v is enabled.
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Lost OpenGL/3D acceleration

Post by Perryg »

The reason why unity is not supported is because the guest is running the software rendering ( gallium ) and not the accelerated ( chromium ) that VBox uses. I know the message is cryptic and confusing.

Make sure that you have enabled 3D acceleration in the guest settings and what ever you do, do not disable VT-x.
raka
Posts: 5
Joined: 16. Feb 2015, 17:07

Re: Lost OpenGL/3D acceleration

Post by raka »

Both 3D and VT-x are enabled. I noticed, that the OpenGL module is not build or at least not listed during installing VB additions for some reason. Maybe VB start to think that my hardware is not supported for this.
raka
Posts: 5
Joined: 16. Feb 2015, 17:07

Re: Lost OpenGL/3D acceleration

Post by raka »

I found the culprit. As I installed the Ubuntu so I can run it natively as well as in VBox, i have added PPA for intel drivers. However it contains newer mesa 3.0 drivers which work in native mode but caused the segfault when in VBox. I removed the PPA and downgraded all mesa packages using default source and now everything works again. Although the OpenGL hw acceleration does not work in the latest VBox.
Post Reply