![虚拟机中的 Intel HD 显卡、可切换显卡和 3D 加速](https://linux22.com/image/1463879/%E8%99%9A%E6%8B%9F%E6%9C%BA%E4%B8%AD%E7%9A%84%20Intel%20HD%20%E6%98%BE%E5%8D%A1%E3%80%81%E5%8F%AF%E5%88%87%E6%8D%A2%E6%98%BE%E5%8D%A1%E5%92%8C%203D%20%E5%8A%A0%E9%80%9F.png)
在我的系统中,Windows 10 主机中有两个显示适配器:
- 英特尔高清显卡 4000
- AMD Radeon HD 7600M 系列
DirectX 诊断工具显示:
- Intel 全显示设备类型
- AMD 是仅渲染显示设备
OpenGL Extensions Viewer 显示:
- 渲染器是英特尔
- OpenGL 版本为 4
- DirectX 版本为 9c
显示适配器属性显示适配器类型为英特尔。
我将非常感激您的帮助,以配置我的系统以使用虚拟机中的 3D 加速资源。
我尝试了 VirtualBox 中的 3D 加速选项,但没有成功(使用 Ubuntu 14.04 和 Windows 8.1 客户机)。
Windows 8.1 客户机中的 DirectX 诊断工具显示:
- 该设备是适用于 Windows 8 的 VirtualBox 图形适配器
- 处理器类型为 VirtualBox VESA BIOS
- 主要驱动程序是 VBoxDispD3D.dll
客户机 Windows 8.1 中的 GLView 显示:
- 渲染器 = GDI 通用
- 适配器 RAM = N/A
- OpenGL 版本 = 1.1
- DirectX 版本 = 9.0c
在客户机中出现Ubuntu 14.04:
$ /usr/lib/nux/unity_support_test -p
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
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
答案1
使用 VMware Workstation 12 Player 我获得了以下结果(对于装有 Ubuntu 14.04 的客户机):
$ /usr/lib/nux/unity_support_test -p
OpenGL vendor string: VMware, Inc.
OpenGL renderer string: Gallium 0.4 on SVGA3D; build: RELEASE;
OpenGL version string: 2.1 Mesa 10.3.2
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
另外,使用 GPU-Z 应用程序,我可以看到在客户机中启动 3D 模拟时使用了 AMD 显卡。