Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Other Community Discussions > Tutorials & Tips
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Tutorials & Tips
The place to find Ubuntu related Tips & Tricks.

 
Thread Tools Display Modes
Old October 30th, 2005   #1
sizzam
A Carafe of Ubuntu
 
sizzam's Avatar
 
Join Date: Jul 2005
Location: Pennsylvania (USA)
Beans: 112
Ubuntu 8.04 Hardy Heron
Send a message via AIM to sizzam
Lightbulb HOWTO: Enabling Accelerated 3D for a Virtual Machine in VMWare 5.0

This is from the VMWare manual:

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.

*****EDIT - More info ******
Not all aspects of 3-D acceleration are enabled. The following 3-D features are not accelerated:
# Pixel and vertex shaders
# Multiple vertex streams
# Hardware bump-mapping, environment mapping
# Projected textures
# Textures with one, three, or four dimensions

Last edited by sizzam; October 30th, 2005 at 11:56 PM..
sizzam is offline   Reply With Quote
Old October 30th, 2005   #2
krye
Just Give Me the Beans!
 
Join Date: Dec 2004
Location: Mexico
Beans: 38
Edgy Eft Testing
Send a message via MSN to krye
Re: HOWTO: Enabling Accelerated 3D for a Virtual Machine in VMWare 5.0

Excellent! When i've just installed vmware5 on my machine, only to avoid rebooting to windows when I need to use photoshop and dreamweaver

Thanks!
krye is offline   Reply With Quote
Old October 31st, 2005   #3
greythorne
5 Cups of Ubuntu
 
Join Date: Feb 2005
Beans: 24
Ubuntu 9.04 Jaunty Jackalope
Re: HOWTO: Enabling Accelerated 3D for a Virtual Machine in VMWare 5.0

so now if i want to put the vid memory to 128mb then what the value will be?

thnx
greythorne is offline   Reply With Quote
Old November 1st, 2005   #4
krye
Just Give Me the Beans!
 
Join Date: Dec 2004
Location: Mexico
Beans: 38
Edgy Eft Testing
Send a message via MSN to krye
Re: HOWTO: Enabling Accelerated 3D for a Virtual Machine in VMWare 5.0

That would be... 128 megabytes = 134 217 728 bytes
krye is offline   Reply With Quote
Old April 17th, 2006   #5
kakashi
Gee! These Aren't Roasted!
 
Join Date: Oct 2005
Beans: 172
Re: HOWTO: Enabling Accelerated 3D for a Virtual Machine in VMWare 5.0

does this work for the new beta vmware server (its free so i only use it)
kakashi is offline   Reply With Quote
Old April 18th, 2006   #6
Stormbringer
A Carafe of Ubuntu
 
Stormbringer's Avatar
 
Join Date: Dec 2005
Location: Vienna, Austria
Beans: 154
Ubuntu 6.06
Re: HOWTO: Enabling Accelerated 3D for a Virtual Machine in VMWare 5.0

Well ... here's a possible showstopper on AMD64 systems with NVIDIA graphic cards (I'm running VMware Wks 5.5.1 build 19175 on Breezy AMD64).

You added the following lines to your <virtualmachine>.vmx file:

mks.enable3d = "TRUE"
svga.vramSize = "67108864" (or "134217728")

As soon as you start the VM you get an error saying the 3d acceleration cannot be used because of a problem with libnvidia-tls.so.1

Reason: unknown (only Nvidia may know the answer)
Source: VMware opens the 32-Bit TLS library (instead of the 64-Bit one) ... and here seems to be a catch.

Open a terminal and type ...

# sudo mv /usr/lib32/tls/libnvidia-tls.so.1.0.<version> /usr/lib32/tls/libnvidia-tls.so.1.0.<version>.backup
# sudo cp /usr/lib32/libnvidia-tls.so.1.0.<version> /usr/lib32/tls

Replace <version> with the version number of the Nvidia driver that's installed on your box ... here's an example for v87.56 ...

# sudo mv /usr/lib32/tls/libnvidia-tls.so.1.0.8756 /usr/lib32/tls/libnvidia-tls.so.1.0.8756.backup
# sudo cp /usr/lib32/libnvidia-tls.so.1.0.8756 /usr/lib32/tls

That's it ... exit the terminal, fire up VMware, start the VM ... the error should be gone and 3d acceleration should be available.

Hope this information is useful ...

Storm.

Last edited by Stormbringer; April 18th, 2006 at 06:42 PM..
Stormbringer is offline   Reply With Quote
Old April 19th, 2006   #7
imagine
Gee! These Aren't Roasted!
 
Join Date: Sep 2005
Location: Germany
My beans are hidden!
Re: HOWTO: Enabling Accelerated 3D for a Virtual Machine in VMWare 5.0

Quote:
Originally Posted by kakashi
does this work for the new beta vmware server (its free so i only use it)
Not really, because VMware Server uses a remote console to access the virtual machine. Servers don't need 3D acceleration.
imagine is offline   Reply With Quote
Old October 24th, 2006   #8
MASTERTUHO
First Cup of Ubuntu
 
MASTERTUHO's Avatar
 
Join Date: Oct 2006
My beans are hidden!
Re: HOWTO: Enabling Accelerated 3D for a Virtual Machine in VMWare 5.0

GUYS YOUR AMAZING!!!!!!!!
now i can game at school

now school is more fun

but i have 1 question.
How can i calculate the code foor more MB for the VM graphic

if you can tell me then post it here pls

me beg you

SIGNED BY MASTERTUHO
MASTERTUHO is offline   Reply With Quote
Old October 24th, 2006   #9
Crashmaxx
A Carafe of Ubuntu
 
Crashmaxx's Avatar
 
Join Date: Apr 2006
Location: York College, PA
Beans: 116
Ubuntu 7.10 Gutsy Gibbon
Send a message via AIM to Crashmaxx Send a message via MSN to Crashmaxx Send a message via Yahoo to Crashmaxx
Re: HOWTO: Enabling Accelerated 3D for a Virtual Machine in VMWare 5.0

Anyway to get this to work with vmware server? It says "3d back-end not enabled" or something like that. Don't see why it won't work, basically the same as vmware, but with more.
Crashmaxx is offline   Reply With Quote
Old November 2nd, 2006   #10
aroswald1977
5 Cups of Ubuntu
 
aroswald1977's Avatar
 
Join Date: Aug 2006
Beans: 20
Re: HOWTO: Enabling Accelerated 3D for a Virtual Machine in VMWare 5.0

Quote:
Originally Posted by Crashmaxx View Post
Anyway to get this to work with vmware server? It says "3d back-end not enabled" or something like that. Don't see why it won't work, basically the same as vmware, but with more.
same here:

Direct rendering is not available.
Failed to construct 3-D rendering backend. The 3-D features of the display card will be disabled.
__________________
This is me (Week 1)
<- Gnu80013
aroswald1977 is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:23 PM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry