Linux – VMWare Workstation – not enough physical memory since last update

arch linuxvmware-workstation

Running Arch Linux, I've just updated the host (pacman -Syyu) and VMWare Workstation (14.0.0), and I now get the following error when I launch any VM no matter how many free memory I have or how many times I reboot:

Not enough physical memory is available to power on this virtual machine with its configured settings.
To fix this problem, increase the amount of physical memory for all virtual machines to 2130 MB or adjust the additional memory settings to allow more virtual machine memory to be swapped.
It is possible that native applications and/or services have locked down memory which could be preventing the virtual machine from launching. Shutting down unnecessary applications or services may free enough memory to launch this virtual machine.
If you were able to power on this virtual machine on this host computer in the past, try rebooting the host computer. Rebooting may allow you to use slightly more host memory to run virtual machines.

How to make it work?

Best Answer

I see you're on kernel version 4.13.3-1. This kernel has some small changes that require some patching for the Vmware vmmon module. Apply this patch to the vmmon module code to fix this memory issue:

https://github.com/mkubecek/vmware-host-modules/commit/770c7ffe611520ac96490d235399554c64e87d9f

cd /usr/lib/vmware/modules/source
tar xf vmmon.tar
cd vmmon-only/linux
vim hostif.c # or use the patch command to apply the patch
cd ../..
tar cf vmmon.tar vmmon-only
rm -rf vmmon-only # cleanup

# Lastly, we need to rebuild the patched module
sudo vmware-modconfig --console --install-all
Related Question