在Windows7下以VirtualBox Guest运行Ubuntu 12.04 LTS的OpenGL警告


8

一段时间以来,我一直在笔记本电脑上以12.04为宾客使用,以保持安静,并且它工作正常。

今天,一位同事向我询问了客人的3D性能。我从来没有想到要在客户机上使用精美的3D内容,但是无论如何我还是对结果感兴趣,因此我3D acceleration在VirtualBox菜单中启用了我的安装并重新启动了vm。

运行glxgears发出奇怪的警告,加上带有旋转齿轮的窗口保持黑色(我在下面的控制台输出中张贴)。

glxgears 没有启用3D加速的情况下运行,我最终获得了约570 FPS且没有警告。

FPS低不是我的问题,但是黑色glxgears窗口很奇怪。我的猜测是主机系统的nVidia驱动程序存在问题吗?(查看NV警告的后缀)

ortang@vbox-12-04:~$ glxgears 
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
369 frames in 5.0 seconds = 73.647 FPS

主机是带有i7-2820QMCPU和nVidia Quadro 2000M(驱动程序版本311.10)图形卡的Windows 7(64位)Dell笔记本电脑(Precision E4600)。

guest虚拟机是最新的12.04 LTS安装,带有已安装的guest虚拟机插件。

运行团结支持测试工具的一些其他信息:

ortang@vbox-12-04:~$ /usr/lib/nux/unity_support_test -p
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
OpenGL vendor string:   Humper
OpenGL renderer string: Chromium
OpenGL version string:  2.1 Chromium 1.9

Not software rendered:    yes
Not blacklisted:          yes
GLX fbconfig:             yes
GLX texture from pixmap:  yes
GL npot or rect textures: yes
GL vertex program:        yes
GL fragment program:      yes
GL vertex buffer object:  yes
GL framebuffer object:    yes
GL version is 1.4+:       yes

Unity 3D supported:       yes

GUI运行流畅,但是我还没有激活任何花哨的东西(所有默认设置)。

我发现一些链接,他们报告说3D加速可以在12.04来宾上正常工作,他们甚至在那里运行游戏也不会造成重大性能损失。

我在stackoverflow上找到了类似的帖子,但是由于主题关闭:

/programming/16287511/opengl-warnings-after-enabling-3d-acceleration-in-virtual-box-running-ubuntu-12

解决这个问题的任何提示都是不错的!

Answers:


1

Guest Additions软件包中的视频驱动程序仅是guest虚拟机操作系统和主机视频驱动程序之间的代理(有一些限制,例如16 MB (可更改)的VRAM)。这意味着即使操作系统将与更新的NVidia驱动程序一起运行(您可以使用专有的驱动程序 -只需从外壳程序执行.run文件来安装它们),或者甚至可能没有更新的驱动程序,都可能弹出相同的错误。

Windows 7可能不包括(至少我想没有)真正的NVidia驱动程序,但是最多兼容但功能却不那么强大(例如最初在Ubuntu上找到的驱动程序)。如果是这样,则必须从此处更新HOST驱动程序!


0

您是否在虚拟机上安装了Virtualbox Guest Additions工具?机器运行后,转到显示设备的菜单选项卡,然后转到菜单上的最后一个选项,然后按“插入带有Gest Additions的CD”选项,您将看到CD在操作系统内部启动,安装驱动程序,您将获得更好的性能,希望对您有所帮助。


是的,我已经安装了它们。guest虚拟机是最新的12.04 LTS安装,带有已安装的guest虚拟机插件。
ortang 2014年
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.