Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Ok, here's the guide to get vmware workstation working with nvidia acceleration on Ubuntu based systems...
- Same might apply just fine for other distros...
- 1. If you don't have vmware installed install it now, it might also be a good idea to install VMware as root with primusrun,
- this is how I installed it, but it might not be needed...
- sudo primusrun ./VMware-Workstation-Full-10.0.0-1295980.x86_64.bundle
- gksudo primusrun ./VMware-Workstation-Full-10.0.0-1295980.x86_64.bundle
- kdesudo primusrun ./VMware-Workstation-Full-10.0.0-1295980.x86_64.bundle
- 2. We're going to back up libGL.so.1 making a copy
- sudo cp /usr/lib/x86_64-linux-gnu/primus/libGL.so.1 libGL.so.1.bak
- Now we're going to change the permissions.
- sudo chmod a+s /usr/lib/x86_64-linux-gnu/primus/libGL.so.1
- 3. We need to create two symlinks.
- The example below shows nvidia-current, change it to reflect your /path if you're not using current.
- 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/
- Now we run ldconfig to update the system for the changes we've just made.
- sudo ldconfig
- 4. Now we need to stop vmware from running.
- sudo /etc/init.d/vmware stop
- 5. We're going to back up vmware-vm making a copy
- sudo cp /usr/lib/vmware/bin/vmware-vmx vmware-vmx.bak
- Now we're going to move vmware-vmx to another name.
- sudo mv /usr/lib/vmware/bin/vmware-vmx /usr/lib/vmware/bin/vmware-vmx.real
- 6. Now we need to open up an editor, in this example we'll use gedit, you can use what you like...
- sudo gedit /usr/lib/vmware/bin/vmware-vmx
- (paste in the following below into vmware-vmx then save and close.)
- #!/bin/bash
- LD_PRELOAD=/usr/lib/x86_64-linux-gnu/primus/libGL.so.1 exec primusrun /usr/lib/vmware/bin/vmware-vmx.real "$@"
- 7. Now we're going to change the permissions on vmware-vmx.
- sudo chmod u+s,a+x /usr/lib/vmware/bin/vmware-vmx
- Now we need to start vmware
- sudo /etc/init.d/vmware start
- 8. VMware needs to be run as root, so play with what you like.
- AS ROOT PICK ONE: (I've found them all to work, so it's really a matter of preference.)
- (sudo vmware)
- (gksudo vmware)
- (kdesudo vmware)
- 9. Whichever desktop you are running there should be an entry in the menu you can use, or edit the command in the
- menu to the same above.
- 10. Enjoy 3d acceleration.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement