Monday, February 13, 2006

Enabling Accelerated 3-D for a Virtual Machine

To enable a virtual machine for accelerated 3-D

I found this on the VMWare site while trying to figure out how to get GuildWars to run under a VM...   


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.

1 comment:

  1. I did as you advised. Unfortunately, dxdiag and a test game (Shadow Ops) both are reporting Direct3D still to be off. DirectX version is 9.0b. Does it have to be 9.0c to work with vmware correctly?

    On my host dxdiag statest direct3d is on. Moreove on my host i run 9.0c. Perhaps it must be the same on guest os?