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::
Terminal_003.jpg
As you can see, I have the latest version: 6.1.1.1-1, 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:
To downgrade, follow my steps (replace the "6" with your current version):Code:sudo apt-get install gcc-5
Then, install the gcc and g++ version needed:Code:sudo apt-get remove gcc-6 sudo apt-get remove --auto-remove gcc-6 sudo apt-get purge gcc-6
And just create a link to finish:Code:sudo apt-get update sudo apt-get install g++-5 sudo apt-get install gcc-5
That's all. Simply run your VMWare and enjoy.Code:ln -s /usr/bin/gcc-5 /usr/bin/gcc ln -s /usr/bin/g++-5 /usr/bin/g++
Now if you have this problem:
14012005_10153595979911784_1717133854_n.jpg
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:
Now untar vmmon.tar:Code:cd /usr/lib/vmware/modules/source
And edit the following file, replacing all "get_user_pages" to "get_user_pages_remote":Code:tar -xf vmmon.tar
Now you have to replace the original file with the edited one, but first you have to do a backup:Code:vi ./vmmon-only/linux/hostif.c
Now you'll do the same thing in vmnet.tar, obviously editing a different file:Code:mv vmmon.tar vmmon.tar.bak tar -cf vmmon.tar vmmon-only
untar vmnet.tar:
And edit the file. Remember to replace all "get_user_pages" with "get_user_pages_remote":Code:tar -xf vmnet.tar
Then backup and replace:Code:vi ./vmnet-only/userif.c
And it's done. Now you have your VMWare ready to use:Code:mv vmnet.tar vmnet.tar.bak tar -cf vmnet.tar vmnet-only
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":
http://askubuntu.com/questions/69064...n-ubuntu-15-10
https://ubuntuforums.org/showthread.php?t=2284953