Hello community, this is my first post. In this post, I'll show you how to solve 2 problems in VMWare. I went over all the documents, read all the posts, and watched all the videos on the internet, and only a few of them were actually helpful. Therefore, I want to show you how I solve these problems.

First, the common problem with gcc:
VMware Kernel Module Updater (as superuser)_001.png

This problem can occur if you have the newest version or an old version of gcc. To solve it, you'll have to follow these steps:

First, you need to know which version of gcc you are actually using. For that, execute the next command::
As you can see, I have the latest version:, but VMWare needs version 5.4.0. If you have a newer version like I do, you'll have to downgrade the gcc, otherwise you'll upgrade it to the 5.4.0 version.

To upgrade, just run the next command:
sudo apt-get install gcc-5
To downgrade, follow my steps (replace the "6" with your current version):
sudo apt-get remove gcc-6
sudo apt-get remove --auto-remove gcc-6
sudo apt-get purge gcc-6
Then, install the gcc and g++ version needed:
sudo apt-get update
sudo apt-get install g++-5
sudo apt-get install gcc-5
And just create a link to finish:
ln -s /usr/bin/gcc-5 /usr/bin/gcc
ln -s /usr/bin/g++-5 /usr/bin/g++
That's all. Simply run your VMWare and enjoy.

Now if you have this problem:
That means you have a small incovenience with your VMNet and/or your VMMon. Don't you worry, these errors occur because the new kernel has new changes in C code and some sentences are different now.

To solve it, just go to this location with cd command:
cd /usr/lib/vmware/modules/source
Now untar vmmon.tar:
tar -xf vmmon.tar
And edit the following file, replacing all "get_user_pages" to "get_user_pages_remote":
vi ./vmmon-only/linux/hostif.c
Now you have to replace the original file with the edited one, but first you have to do a backup:
mv vmmon.tar vmmon.tar.bak
tar -cf vmmon.tar vmmon-only
Now you'll do the same thing in vmnet.tar, obviously editing a different file:

untar vmnet.tar:
tar -xf vmnet.tar
And edit the file. Remember to replace all "get_user_pages" with "get_user_pages_remote":
vi ./vmnet-only/userif.c
Then backup and replace:
mv vmnet.tar vmnet.tar.bak
tar -cf vmnet.tar vmnet-only
And it's done. Now you have your VMWare ready to use:
Home - VMware Workstation (as superuser)_005.jpg

Thank you for taking the time to read this. Knowledge is free and you should document each issue you come across.

"Very, very, very helpful links":