家园首页 Php4手册 我的相册 家园下载 个人文集 给我留言
我形我塑,网络相册,www.5x54.com 相册 相册 心情相册,少女相册 免费申请,我形我塑免费相册
 家园 个人文集   http://www.5x54.com
 


让你的Vmware虚拟机也可以跑3D游戏。


作者:网上收集    点击: 读取中...次    发布日期:2007-08-15.17:29

VMware Workstation 5.0 Suppot D3D


Enabling Accelerated 3-D for a Host
To enable a host for accelerated 3-D:

Hardware —

Use a host video card with support for accelerated OpenGL, such as NVIDIA TNT, GeForce and Quadro cards, or ATI FireGL and Radeon 8500 (or higher) video cards. If you are unsure, check with your hardware manufacturer.

Software —

Upgrade the video drivers for your host to the latest available.

NVIDIA drivers are available at
www.nvidia.com/content/drivers/drivers.asp

ATI drivers are available at
www.ati.com/support/driver.html

(Linux only) — NVIDIA GPUs support the features used in Direct3D acceleration. Linux open source drivers are not enabled. However, if you have a video card with an Radeon 8500 (or better) GPU, you can attempt to use the Direct3D acceleration using the ATI driver available at
www.ati.com/support/drivers/linux/radeon-linux.html

Windows —

Perform these steps to prepare a Windows 2000 or Windows XP host.

Make sure hardware acceleration is turned up in the display properties.

1. Right-click the desktop and choose Properties > Settings > Advanced > Troubleshoot.

2. Move the Hardware Acceleration slider all the way to the Full position.

Linux —

Perform these steps to test your Linux host for compatibility:

1. To verify that direct rendering is enabled, run
glxinfo | grep direct

2. To ensure that 3-D applications work on your host, run
glxgears

After your host is configured, configure a virtual machine for accelerated 3-D.

Enabling Accelerated 3-D for a Virtual Machine
To enable a virtual machine for accelerated 3-D

1. Choose a virtual machine with Windows 2000 or XP guest operating system.

Note: Do not enable Direct3D on a virtual machine that is powered on or suspended.

2. Add the following to the configuration (.vmx) file for the virtual machine:

mks.enable3d = TRUE

This line enables accelerated 3-D on the host. It is required to support accelerated 3-D in the guest and also enables the host to accelerate 2-D portions of the guest display.

3. You may also add one or both of the following optional lines:

svga.vramSize = 67108864

This line increases the amount of VRAM on the virtual display card to 64 MB. Adding more VRAM helps to reduce thrashing in the guest. The maximum value is 128 MB.

vmmouse.present = FALSE

This line disables the absolute pointing device in the guest. Applications which require DirectInput relative mode need to turn off the absolute pointing device in the guest. In practice, this is only required for a certain class of full screen 3-D applications (for example, real-time games like first-person shooters).

Note: If you set the vmmouse.present option, you should also turn off the preference for motion ungrabbing in the Input tab of the Preferences settings dialog.

To turn off ungrabbing for vmouse.present:

a. Choose Edit > Preferences.

b. Click Input.

c. Deselect Ungrab when cursor leaves window.

To enable the guest operating system for accelerated 3-D

1. Power on the virtual machine.

2. Install VMware Tools.

Note: It is critical for stability that you install the version of VMware Tools that matches the version of VMware Workstation you are running.

3. Install DirectX 9.0c End User Runtime

This download is available from Microsoft at

www.microsoft.com/downloads/search.aspx?displaylang=en&categoryid=2

4. Install and run your 3-D applications.



对官网说明的翻译

对D3D的实验性支持
VMware Workstation 实验性的对D3D视频加速提供支持。这个功能不是完整。
注意:实验性支持的功能不包含在产品应该提供的功能中。即使3D加速没有被激活,启动3D加速也可能导致宿主机或客户机的崩溃,导致你丢失数据。
注意:要利用VMware Workstation的实验性3D能力,虚拟机必须运行与你的虚拟机版本一样的VMware Tools。如果你的虚拟机是迁移过来的,你想用3D功能的话,你需要重新安装当前版本的虚拟机的VMware Tools。

对于D3D实验性支持的人
Workstation不提供对3D加速的技术支持。无论怎么样,我们鼓励你提出支持需求来使我们评估你在体验3D中所碰到的问题。

3D加速的限制
实验性的3D加速只能用于运行Windows 2000, Windows XP, 或Linux上的Windows 2000 and Windows XP客户机。对实验性3D加速也有以下限制:
1.工作站只能加速Direct8,对于Direct9的应用也只是支持应用其中的Direct8子集。
2.对3D应用程序的执行没有优化效果。
3.OpenGL应用程序只能运行在软件模拟仿真模式
不是所有的3D加速都能被启用。以下是不能加速的应用:
1. 像素和顶点渲染
2. 多顶点处理
3. 硬件级的贴图映射和环境映射
4. 纹理贴图
5. 一、三和四维的纹理

开启3D加速
D3D加速技术默认为被启用。你需要准备宿主机、虚拟机和虚拟机操作系统。
首先需要开启宿主机的3D加速
NVIDIA在Linux下有驱动程序
在Windows下,宿主机的操作系统需要Windows 2000 or Windows XP ,在系统中需要启动图形硬件加速功能。
在Linux下,需要执行以下步骤来查看你的Linux宿主机的兼容性
1. 打开你的Direct渲染能力,运行命令:glxinfo | grep direct。
2. 运行glxgears命令,以确保3D应用程序能运行在你的宿主机上。

在一台虚拟机中开启3D加速
1. 选择一台安装了Windows 2000 or XP操作系统得客户机
2. 在虚拟机的配置文件(.vmx)中加入:mks.enable3d = TRUE,来打开虚拟机的3D加速功能,虚拟机的2D加速同样能用。
3. 如果你要设置显存的大小,就在其中加入:svga.vramSize = 67108864(设置显存为64MB)或svga.vramSize = 134217728(设置显存为128MB)显存最多只能设置为128MB
4.对于一个需要全屏运行的3D应用程序(比如像第一人称射击这样的实时游戏),建议你关掉“在鼠标离开窗口后释放”这个选项,在其中加入:vmmouse.present = FALSE。并且在虚拟机主界面上编辑>参数>输入选项卡>去掉“在鼠标离开窗口后释放”选项前的钩。

在客户机操作系统中启动3D加速
1. 打开虚拟机电源
2. 安装与VMware Workstation 版本一致的VMware Tools
3. 安装D9c
4. 安装你的3D应用程序

已知的问题:
1. 在运行3D程序时不要切换VMware Workstation控制台中的标签。
2. 在运行3D程序时不要在全屏模式和窗口之间切换
3. 不要同时运行多个3D程序,这样可能导致VMware Workstation崩溃
4. 在运行3D程序时,你不能挂起虚拟机及创建快照。
5. 在截取和录制3D画面时候,可能出现画面破碎
6.当鼠标移至虚拟机操作系统3D加速画面上是,可能导致画面部分泛白。

通过实验3D帮助VMware
VMware仅仅提供实验性的D3D加速。VMware不可能个别地对所有的关于D3D加速的问题的回答。VMware对以下方面感兴趣:
1. 灾难性的故障,诸如客户机蓝屏或导致VMware Workstation崩溃的3D应用程序
2. 对ATI8500或更新的显示卡的测试报告。
3. Linux主机系统中的测试报告
4. 特别具体针对于D8和D9的应用程序的测试报告
5. 你在运行3D程序是所碰到的特殊问题
6. 你对VMware 3D技术前景的高见
具体而详细的报告有助于加速我们对全功能的3D加速应用的实现。在报告中,请包括你的配置、3D应用程序和硬件的细节。

收藏此文章     打印此文章     编辑此文章    『关闭窗口』