OpenGL Warning: Failed to connect to host. Make sure 3D acceleration is enabled for this VM.
/usr/lib/nux/unity_support_test -p
sudo apt-get install pastebinit
/usr/lib/nux/unity_support_test -p | pastebinit
|
I just downloaded Google Chrome for Ubuntu 64-bit onto my Ubuntu 12.04 64-bit OS (which is running as a guest as a VM on a Win 7 host). After it had installed, I opened up the terminal and typed "google chrome" and the web browser opened for the first time. Immediately below that line in the terminal, however, this appeared:
"OpenGL Warning: Failed to connect to host. Make sure 3D acceleration is enabled for this VM."
This message appeared 2 more times in the terminal before the cursor returned to normal. I am pretty sure I have 3D acceleration enabled, so what is causing this error message?
|
|
show 4 more comments |
|
This message is from VirtualBox host additions. It means that the VM is unable to connect to the Host Virtual Card, and 3D acceleration, for the guest, can't work. It should appear every-time that something tries to access the 3D engine. For example, type:
glxinfo
The same error should appear. Usually, but not always, the cause is a permission problem.
|
|
answered
Jun 14 '12 at 7:23
|
|
|
|
3D Only Works as root in Virtualbox Guest
I am running Gentoo as a Virtualbox Guest and I'm using the latest Virtualbox-Guest-Additions from portage. In X, when I run glxgears as root, they are fast and accelerated. When I run them as non-root, they are slow and not accelerated. I have tried quite a bit and I cannot fix this but it is clearly a permissions issue. When I add my nonroot user into the group "root", then I can run with full acceleration. Here's all my information:
代码: |
$ glxinfo | grep OpenGL OpenGL Warning: Failed to connect to host. Make sure 3D acceleration is enabled for this VM. OpenGL vendor string: Mesa Project OpenGL renderer string: Software Rasterizer OpenGL version string: 2.1 Mesa 7.8 OpenGL shading language version string: 1.20 OpenGL extensions: |
代码: |
# glxinfo | grep OpenGL OpenGL vendor string: Humper OpenGL renderer string: Chromium OpenGL version string: 2.0 Chromium 1.9 OpenGL shading language version string: 1.20 OpenGL extensions: |
代码: |
in xorg.conf... Section "DRI" mode 0666 group "video" EndSection |
代码: |
$ groups lp wheel cron audio cdrom video users portage |
代码: |
$ ls -l /dev/dri total 0 crw-rw-rw- 1 root video 226, 0 Apr 6 10:06 card0 |
Now, to show that it's a permissions issue somewhere:
代码: |
$ glxinfo | grep render OpenGL Warning: Failed to connect to host. Make sure 3D acceleration is enabled for this VM. direct rendering: Yes OpenGL renderer string: Software Rasterizer GL_NV_conditional_render, GL_NV_depth_clamp, GL_NV_fragment_program, ... add user to root group ... $ groups root lp wheel cron audio cdrom video users portage $ glxinfo | grep render direct rendering: Yes OpenGL renderer string: Chromium I've found the answer!
Add your non-root user to the "vboxguest" group. I didn't find this documented anywhere, but I found the group in my /etc/group file and decided to try it.
As root, run the following:
代码: | usermod -a -G vboxguest <non-root username> |
http://forums.gentoo.org/viewtopic-t-832068-view-previous.html?sid=4a3c903f4be754d265b29e4d2a46b0ae $ glxgears ... Runs very fast now. |
/usr/lib/nux/unity_support_test -p
. An easy way to do that issudo apt-get install pastebinit
, and then/usr/lib/nux/unity_support_test -p | pastebinit
-- just copy and paste the output URL then. – izx Jun 14 '12 at 7:18uname -r
? Please also pastebin the output oflsmod
. The unity_support_test shows that Ubuntu can detect no 3D acceleration and is using the software llvmpipe renderer. – izx Jun 14 '12 at 7:30