1 4 5 6 7 8 Previous Next 112 Replies Latest reply on Aug 5, 2015 6:03 AM by dmgeurts Go to original post
      • 90. Re: Workstation 9 - No 3D Acceleration to Guest - Ubuntu 12.04 Host - Nvidia Card
        cmillersp Novice

        You can also check the temperature of the nvidia gpu from the nvidia-settings utility (optirun nvidia-settings -c :8)

        When you use something like 3dmark, you'll notice the temperature goes up.

         

        With regards to the root issue, there is currently no decent workaround.  It's very annoying, but it's still far better than nothing.

        • 91. Re: Workstation 9 - No 3D Acceleration to Guest - Ubuntu 12.04 Host - Nvidia Card
          docsmooth Enthusiast

          These instructions worked great for my new Lenovoa T430 running Kubuntu 12.10, Thank you!

           

          I thought I could add a bit as well: since I'm kind of a battery runtime nut, I want to be able to only run VMware under the Nvidia driver sometimes, so I scripted it with intelligence.  Full writeup, and the script, are here: http://www.totalnetsolutions.net/2012/12/08/bumblebee-primus-and-vmware-workstation-nvidia-optimus-graphics-on-ubuntu/

           

          I'm hoping to add in the SuSE notes from this thread, perhaps tomorrow morning, and am actively interested in feedback, to make it maybe the first useful thing I've added to this community I've so far taken so much from.

           

          Thanks again, cmillersp!

          • 92. Re: Workstation 9 - No 3D Acceleration to Guest - Ubuntu 12.04 Host - Nvidia Card
            cmillersp Novice

            That's a very useful implementation.  Hopefully people involved with VMWare will be so kind as to come up with a better solution for Optimus users at some point.

             

            I'm very interested to know how the 3d performance for people with various set-ups is.  For example, if you have the optimus in a thinkbook t-series, I believe you can select discrete graphics in the BIOS.  I wonder if there is much of a difference in a 3d benchmark with proper nvidia driver with discrete only graphics VS my primus hack.  The reason I'm interested is that in the near future I'll want to get a new laptop, and ideally not dual boot, but I would need better 3d performance in a virtual machine to be really happy with it.

            • 93. Re: Workstation 9 - No 3D Acceleration to Guest - Ubuntu 12.04 Host - Nvidia Card
              docsmooth Enthusiast

              I'd really like to know that, too, except that my company's IT dep. locked that setting in my bios.  At least they didn't lock it to the discrete graphics option.

               

              I can tell you that primusrun works much faster and more responsive than optirun.  Enough that I'm not ever going to try optirun again for vmware.

              • 94. Re: Workstation 9 - No 3D Acceleration to Guest - Ubuntu 12.04 Host - Nvidia Card
                cmillersp Novice

                http://www.phoronix.com/scan.php?page=news_item&px=MTI1MDQ

                 

                I wonder if anyone wants to try this.  Perhaps vmware will play nicely with it?  Has nothing to do with nvidia, but might help the intel only folk.

                 

                Unfortunately, I don't have the time to set everything up.  Hoping someone wouldn't mind getting it running and trying it out, though!

                • 95. Re: Workstation 9 - No 3D Acceleration to Guest - Ubuntu 12.04 Host - Nvidia Card
                  james33 Novice

                  I followed step by step the guide and everything seems fine (MY OS IS LINUX MINT 14 mate 64-bit)

                  but

                   

                  I got this output when I ran VMware as sudoer as said

                   

                   

                  ~ $ sudo vmware
                  [sudo] password for alex:
                  Logging to /tmp/vmware-root/vmware-modconfig-20395.log
                  filename:       /lib/modules/3.5.0-17-generic/misc/vmmon.ko
                  supported:      external
                  license:        GPL v2
                  description:    VMware Virtual Machine Monitor.
                  author:         VMware, Inc.
                  srcversion:     9342145FB4C112347AF67BE
                  depends:       
                  vermagic:       3.5.0-17-generic SMP mod_unload modversions
                  Xlib:  extension "NV-GLX" missing on display ":0.0".
                  Xlib:  extension "NV-GLX" missing on display "unix:0.0".
                  Xlib:  extension "NV-GLX" missing on display ":0.0".
                  Xlib:  extension "NV-GLX" missing on display ":0.0".
                  Xlib:  extension "NV-GLX" missing on display ":0.0".
                  Xlib:  extension "NV-GLX" missing on display ":0.0".

                  • 96. Re: Workstation 9 - No 3D Acceleration to Guest - Ubuntu 12.04 Host - Nvidia Card
                    cmillersp Novice

                    Don't worry. That's normal. I think it has to do with primus.

                    • 97. Re: Workstation 9 - No 3D Acceleration to Guest - Ubuntu 12.04 Host - Nvidia Card
                      Emulez Lurker

                      Try using gksudo or kdesudo. Many X applications don't work when run by only 'sudo', IIRC because it doesn't preserve some environment variables.

                      • 98. Re: Workstation 9 - No 3D Acceleration to Guest - Ubuntu 12.04 Host - Nvidia Card
                        james33 Novice

                        If I run gksudo  i get the same output BUT when I quit the application

                         

                        Anyway I totally agree with Linus Torvalds, if you know what I mean

                         

                        here is the output


                        ~ $ gksudo vmware
                        filename:       /lib/modules/3.5.0-17-generic/misc/vmmon.ko
                        supported:      external
                        license:        GPL v2
                        description:    VMware Virtual Machine Monitor.
                        author:         VMware, Inc.
                        srcversion:     9342145FB4C112347AF67BE
                        depends:       
                        vermagic:       3.5.0-17-generic SMP mod_unload modversions
                        Xlib:  extension "NV-GLX" missing on display ":0".
                        Xlib:  extension "NV-GLX" missing on display "unix:0.0".
                        Xlib:  extension "NV-GLX" missing on display ":0".
                        Xlib:  extension "NV-GLX" missing on display ":0".
                        Xlib:  extension "NV-GLX" missing on display ":0".
                        Xlib:  extension "NV-GLX" missing on display ":0".

                        • 99. Re: Workstation 9 - No 3D Acceleration to Guest - Ubuntu 12.04 Host - Nvidia Card
                          james33 Novice

                          I don't think that 3D acceleration works  I did some test running glxgears inside the VM machine with and without running it as sudoer and I got the same fps

                           

                          take a look

                           

                          Running with gksudo I got no errors about 3D acceleration that seems correctly enabled in VMware Workstation prefences.

                           

                          1.jpeg

                          When I close the VMware Workstation program I got this error screen in the CLI ↓

                          5.jpeg

                           



                          RUNNING IT WITHOUT GKSUDO OR SUDO THEN WITHOUT 3D ACCELARATION THAT IS DISABLE AUTOMATICALLY BY THE VMware Workstation  

                           

                          2.jpeg

                           

                          3.jpeg

                           

                          And here you can see i got the same frame rate   check below↓

                          4.jpeg

                          • 100. Re: Workstation 9 - No 3D Acceleration to Guest - Ubuntu 12.04 Host - Nvidia Card
                            james33 Novice

                            I TRIED THIS METHOD ON ANOTHER MACHINE WITH THE  SAME RESULTS AND I CAN SAY THAT IT DOESN'T WORK AT ALL, IT JUST DISABLE THE NO 3D HARWARE SUPPORT WARNING IN VMWARE BUT 3D ACCELERATION DOESN'T WORK

                            • 101. Re: Workstation 9 - No 3D Acceleration to Guest - Ubuntu 12.04 Host - Nvidia Card
                              rashm2k Novice

                              james33 check the CPU usage when running BOTH. I noticed that my cpu usage was near zero with gpu acceleration and near 50%+ without when trying to run graphical effects.

                              • 102. Re: Workstation 9 - No 3D Acceleration to Guest - Ubuntu 12.04 Host - Nvidia Card
                                james33 Novice

                                I just checked and I have the same CPU usage


                                Do you also have this error when you run VMware trying with primurun ?

                                 

                                 

                                http://communities.vmware.com/servlet/JiveServlet/showImage/25277/5.jpeg

                                • 103. Re: Workstation 9 - No 3D Acceleration to Guest - Ubuntu 12.04 Host - Nvidia Card
                                  ninjacoding Novice

                                  cmillersp wrote:

                                   

                                  Ok, here's the guide to get vmware workstation working with nvidia acceleration.

                                   

                                  ASSUMING: vmware workstation 9.0.1 or 8.0.5, ubuntu 12.10, optimus, working bumblebee config, x86_64 os.

                                   

                                  If you don't have bumblebee set up yet, there are numerous tutorials to help you. Follow them.

                                   

                                  1.  sudo apt-add-repository ppa:zhurikhin/primus

                                  2. sudo apt-get update; sudo apt-get install primus primus-libs primus-libs:i386

                                  3. Check that primus works. Try primusrun glxspheres.

                                   

                                  4. If you don't have vmware installed, install it now.

                                  5. sudo chmod a+s /usr/lib/x86_64-linux-gnu/primus/libGL.so.1

                                  6. sudo ln -s /usr/lib/nvidia-current/tls/libnvidia-tls.so.304.43 /usr/lib/x86_64-linux-gnu/

                                  sudo ln -s /usr/lib/nvidia-current/libnvidia-glcore.so.304.43 /usr/lib/x86_64-linux-gnu/
                                  sudo ldconfig

                                   

                                  7. sudo /etc/init.d/vmware stop

                                  sudo mv /usr/lib/vmware/bin/vmware-vmx /usr/lib/vmware/bin/vmware-vmx.real

                                  8. sudo gedit /usr/lib/vmware/bin/vmware-vmx
                                  (paste in the following)

                                  #!/bin/bash

                                  LD_PRELOAD=/usr/lib/x86_64-linux-gnu/primus/libGL.so.1 exec primusrun /usr/lib/vmware/bin/vmware-vmx.real "$@"
                                  9. sudo chmod u+s,a+x /usr/lib/vmware/bin/vmware-vmx
                                  sudo /etc/init.d/vmware start
                                  10. Run vmware, AS ROOT (sudo vmware)
                                  11. Enjoy 3d acceleration.
                                  So far, no crashes, decent performance.  Of course it's nowhere near an ideal solution, but it's the best I've been able to come up with at this point, and I'm really, really happy to have hardware acceleration.

                                   

                                   

                                  Great work cmillersp.

                                  Only now I had the chance to try this out... and it's working great.

                                  Now it's possible to run from simple directx apps (2D games) and 3D heavy ones too (like ones using pixel shaders and such).

                                  Whereas before neither worked with WS 9.

                                   

                                  It seems that for heavier games (I only tested one so far, and it wasn't that heavy, it's a TB game) it still doesn't run as fluid as one would want.

                                  And it eats up a lot of CPU resources. I'm guessing part of it is from the game itself, while the other part is probably due to all the interface layers involved.

                                  But you can see the difference when running a 2D adventure game (like Resonance) and a 3D one (like Age of Decadence). Both CPU wise and GPU wise (with optirun nvidia-settings -c :8).

                                   

                                   

                                  FWIW, I also get these errors:

                                  Xlib:  extension "NV-GLX" missing on display ":0".

                                   

                                   

                                  Will have to investigate it latter on.

                                  • 104. Re: Workstation 9 - No 3D Acceleration to Guest - Ubuntu 12.04 Host - Nvidia Card
                                    kaed Lurker

                                    I tried your solution with LinuxReCon's fix but I still don't have 3d acceleration.

                                     

                                    I  have a Dell Inspiron N7110 (GeForce GT 525M/PCIe/SSE2) running Ubuntu  12.10 64bit with VMware Workstation 9.0.1-894247.  And on VW I'm trying  to get 3d acceleration (aero + directx features working) on a Windows 7  Home Premium 64bit machine.

                                     

                                    My VMs Specs:

                                    Memory: 2gb
                                    Processors: 4
                                    Hard Disk: 30gb
                                    Display: Auto Detect
                                    

                                     

                                    Here's what I typed in the terminal and the output:

                                    code@code-PC:~/Desktop$ sudo chmod a+s /usr/lib/x86_64-linux-gnu/primus/libGL.so.1
                                    code@code-PC:~/Desktop$ sudo ln -s /usr/lib/nvidia-current/tls/libnvidia-tls.so.304.64 /usr/lib/x86_64-linux-gnu/
                                    code@code-PC:~/Desktop$ sudo ln -s /usr/lib/nvidia-current/libnvidia-glcore.so.304.64 /usr/lib/x86_64-linux-gnu/
                                    code@code-PC:~/Desktop$ sudo ldconfig
                                    code@code-PC:~/Desktop$ sudo /etc/init.d/vmware stop
                                    Stopping VMware services:
                                       VMware Authentication Daemon                                        done
                                       VM communication interface socket family                            done
                                       Virtual machine communication interface                             done
                                       Virtual machine monitor                                             done
                                       Blocking file system                                                done
                                    code@code-PC:~/Desktop$ sudo mv /usr/lib/vmware/bin/vmware-vmx /usr/lib/vmware/bin/vmware-vmx.real
                                    code@code-PC:~/Desktop$ sudo gedit /usr/lib/vmware/bin/vmware-vmx
                                    code@code-PC:~/Desktop$ sudo chmod u+s,a+x /usr/lib/vmware/bin/vmware-vmx
                                    code@code-PC:~/Desktop$ sudo /etc/init.d/vmware start
                                    Starting VMware services:
                                       Virtual machine monitor                                             done
                                       Virtual machine communication interface                             done
                                       VM communication interface socket family                            done
                                       Blocking file system                                                done
                                       Virtual ethernet                                                    done
                                       VMware Authentication Daemon                                        done
                                       Shared Memory Available                                             done
                                    code@code-PC:~$ sudo vmware
                                    
                                    (vmware-modconfig:7906): Gtk-WARNING **: Unable to locate theme engine in module_path: "murrine",
                                    
                                    [(^This pops up a bunch more)]
                                    
                                    (vmware-modconfig:7906): Gtk-WARNING **: Unable to locate theme engine in module_path: "murrine",
                                    
                                    (vmware-modconfig:7906): Gtk-WARNING **: Unable to locate theme engine in module_path: "murrine",
                                    Gtk-Message:  Failed to load module "canberra-gtk-module": libcanberra-gtk-module.so:  cannot open shared object file: No such file or directory
                                    Logging to /tmp/vmware-root/vmware-modconfig-7906.log
                                    filename:       /lib/modules/3.5.0-25-generic/misc/vmmon.ko
                                    supported:      external
                                    license:        GPL v2
                                    description:    VMware Virtual Machine Monitor.
                                    author:         VMware, Inc.
                                    srcversion:     9342145FB4C112347AF67BE
                                    depends:        
                                    vermagic:       3.5.0-25-generic SMP mod_unload modversions
                                    
                                    (vmware-tray:7988): Gtk-WARNING **: Unable to locate theme engine in module_path: "murrine",
                                    
                                    [(^This pops up a bunch more)]
                                    
                                    (vmware-tray:7988): Gtk-WARNING **: Unable to locate theme engine in module_path: "murrine",
                                    
                                    (vmware-tray:7988): Gtk-WARNING **: Unable to locate theme engine in module_path: "murrine",
                                    Gtk-Message:  Failed to load module "canberra-gtk-module": libcanberra-gtk-module.so:  cannot open shared object file: No such file or directory
                                    
                                    (vmware-unity-helper:8498): Gtk-WARNING **: Unable to locate theme engine in module_path: "murrine",
                                    
                                    [(^This pops up a bunch more)]
                                    
                                    (vmware-unity-helper:8498): Gtk-WARNING **: Unable to locate theme engine in module_path: "murrine",
                                    
                                    (vmware-unity-helper:8498): Gtk-WARNING **: Unable to locate theme engine in module_path: "murrine",
                                    Gtk-Message:  Failed to load module "canberra-gtk-module": libcanberra-gtk-module.so:  cannot open shared object file: No such file or directory
                                    Xlib:  extension "NV-GLX" missing on display ":0".
                                    2013-02-26 20:14:26  9097 no printer configured or none available
                                    2013-02-26 20:14:26  9109 adaptor daemon booted
                                    2013-02-26 20:14:26  9112 connector "vmlocal" booted
                                    Xlib:  extension "NV-GLX" missing on display ":0".
                                    Xlib:  extension "NV-GLX" missing on display ":0".
                                    Xlib:  extension "NV-GLX" missing on display ":0".
                                    Xlib:  extension "NV-GLX" missing on display ":0".
                                    2013-02-26 20:22:51  9109 adaptor daemon shut down
                                    2013-02-26 20:22:51  9112 connector "vmlocal" shut down
                                    

                                     

                                    Here's a screeny of when I tried powering my vm on after running sudo vmware:

                                    http://i.imgur.com/HWH36BP.png

                                     

                                    Things I have checked/tried:

                                    • Checked: libcanberra-gtk3-module is installed and updated to the latest version
                                    • Tried:  sudo apt-get install nvidia-experimental-310 (currently using  nvidia-current) only to get the following: http://i.imgur.com/QllGZVr.png
                                    • Tried: uninstalling and  reinstalling vmware only to notice that the: Failed to load module  "canberra-gtk-module"   shows up on both the uninstallation and  reinstallation.
                                    • Checked: The output for optirun glxspheres is:
                                    Polygons in scene: 62464
                                    Visual ID of window: 0x21
                                    Context is Direct
                                    OpenGL Renderer: GeForce GT 525M/PCIe/SSE2
                                    117.786601 frames/sec - 131.449847 Mpixels/sec
                                    123.078047 frames/sec - 137.355100 Mpixels/sec
                                    • Checked: The output for primusrun glxspheres is:
                                    Polygons in scene: 62464
                                    Visual ID of window: 0xb9
                                    Context is Direct
                                    OpenGL Renderer: GeForce GT 525M/PCIe/SSE2
                                    60.639464 frames/sec - 67.673642 Mpixels/sec
                                    59.796828 frames/sec - 66.733260 Mpixels/sec
                                    • Checked: The output for vblank_mode=0 primusrun glxspheres:
                                    Polygons in scene: 62464
                                    ATTENTION: default value of option vblank_mode overridden by environment.
                                    ATTENTION: default value of option vblank_mode overridden by environment.
                                    Visual ID of window: 0xb9
                                    Context is Direct
                                    OpenGL Renderer: GeForce GT 525M/PCIe/SSE2
                                    ATTENTION: default value of option vblank_mode overridden by environment.
                                    ATTENTION: default value of option vblank_mode overridden by environment.
                                    ATTENTION: option value of option vblank_mode ignored.
                                    212.256030 frames/sec - 236.877729 Mpixels/sec
                                    221.688264 frames/sec - 247.404102 Mpixels/sec
                                    • Tried:  adding vblank_mode=0 before the primusrun in the vmware-vmx file only  to get the error that the vblank_mode=0 module didn't exist.  And I  couldn't even power on the machine.

                                     

                                    What am I doing wrong and what can I try to do to fix this?  Any help is greatly appreciated.

                                    1 4 5 6 7 8 Previous Next