When running a guest OS with 3D acceleration enabled on VMWare Workstation (or player) on an Arch-based distro, you may receive the following notifications on guest OS startup:
VMWARE WORKSTATION 12 NVIDIA DRIVER (vmwareworkstation4109.zip) Download Now VMWARE WORKSTATION 12 NVIDIA DRIVER With vmware horizon and nvidia quadro virtual data center workstation quadro vdws, designers and engineers get gpu rendering, simulation and 3d graphics, giving the them flexibility to work from anywhere, on any device. VMware Workstation 16 Pro VMware Workstation Pro is the industry standard desktop hypervisor for running virtual machines on Linux or Windows PCs. Workstation 16 Pro improves on the industry defining technology with DirectX 11 and OpenGL 4.1 3D Accelerated graphics support, a new dark mode user interface, support for Windows Hyper-V mode on Windows 10 version 2004 and greater hosts, a new CLI.
The cause of the problem can be varied. However, on Arch based distributions, especially on laptops with both a discrete graphics card and integrated graphics, it's most likely related to the discrete card not being used (or enabled easily).
Below are two solutions which have worked for me, for a Nvidia-based laptop (2018 Razer Blade 15) and an ATI Radeon laptop (2018 Lenovo e480).
Guest VMs use NVIDIA vGPU s in the same manner as a physical GPU that has been passed through by the hypervisor: an NVIDIA driver loaded in the guest VM provides direct access to the GPU for performance-critical fast paths, and a paravirtualized interface to the NVIDIA Virtual GPU Manager is used for non-performant management operations. This driver enables VMware's vSGA shared GPU capabilities. Hardware based graphics acceleration for 3D workloads for VMware Horizon View virtual desktops or vSphere virtual machines. Support for VMware ESXi 5.5.
The first solution involves installing bumblebee and prefixing the vmware
or vmplayer
executable with optirun
. E.g.
You can also modify (or make a copy) of the .desktop file with a modified prefix. See below (create a .desktop file and put in a folder on you path):
For laptops with newer cards (for example my Razer Blade 15 with an RTX 2080) you should be able to prefix the vmware
or vmplayer
executable with prime-run
. E.g.
You can also modify (or make a copy) of the .desktop file with a modified prefix. See below (create a .desktop file and put in a folder on you path):
Now, ATI has much better linux support (by far...) however, on my e480, I couldn't get 3D acceleration working (tried all different types of drivers free and non-free) until I came across this post by /dev/blog.
Apparently VMWare decided to blacklist some drivers. Luckily we can undo this blacklisting by modify the preferences
file by adding the following to ~/.vmware/preferences
: