ubuntu OpenGL Warning

OpenGL Warning: Failed to connect to host. Make sure 3D acceleration is enabled for this VM.

 

 

/usr/lib/nux/unity_support_test -p

 

 

 

An easy way to do that is

sudo apt-get install pastebinit

 

and then

 

/usr/lib/nux/unity_support_test -p | pastebinit

 Got it; here it is: paste.ubuntu.com/1040404

 

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?

share improve this question
 
1 
Please pastebin the output of /usr/lib/nux/unity_support_test -p. An easy way to do that is sudo 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:18
  
Got it; here it is: paste.ubuntu.com/1040404 –  Jay Jun 14 '12 at 7:26
  
What is your kernel name - uname -r? Please also pastebin the output of lsmod. 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
  
"uname -r" outputs the following: 3.2.0-25-generic; For "lsmod": paste.ubuntu.com/1040414 –  Jay Jun 14 '12 at 7:32
  
Can you confirm that you followed the instructions here when installing guest additions? –  izx Jun 14 '12 at 8:04
show 4 more comments

1 Answer

up vote 1 down vote accepted

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.

share improve this answer
 
  
I think it may in fact be a permission problem because when I was poking around my Ubuntu files (since I am trying to get acquainted with the Ubuntu environment), I was denied access to a file called "root", which I guess is the file that holds the "kernel" and other such fundamental system files? –  Jay Jun 14 '12 at 7:29
  
Oh and I do not have "glxinfo" installed on my Ubuntu system at the moment. –  Jay Jun 14 '12 at 7:41
1 
/root is root's (Administrator's) home directory. –  izx Jun 14 '12 at 7:48

 

http://askubuntu.com/questions/150685/why-do-i-get-an-opengl-warning-message-after-running-google-chrome-through-the

 

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.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值