Paylaştığınız linkteki gibi 3. adımdan sonrakileri komut satırında uyguladım.
Patch VMware
sudo tar -xf /usr/lib/vmware/modules/source/vmmon.tar
sudo nano vmmon-only/linux/hostif.c
Around line 1162, change
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 6, 0)
retval = get_user_pages((unsigned long)uvAddr, numPages, 0, 0, ppages, NULL);
#else
retval = get_user_pages(current, current->mm, (unsigned long)uvAddr,
numPages, 0, 0, ppages, NULL);
#endif
to
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 10, 0)
retval = get_user_pages((unsigned long)uvAddr, numPages, 0, ppages, NULL);
#else
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 6, 0)
retval = get_user_pages((unsigned long)uvAddr, numPages, 0, 0, ppages, NULL);
#else
retval = get_user_pages(current, current->mm, (unsigned long)uvAddr,
numPages, 0, 0, ppages, NULL);
#endif
#endif
Save the file and exit, then:
sudo tar -cf /usr/lib/vmware/modules/source/vmmon.tar vmmon-only/
sudo tar -xf /usr/lib/vmware/modules/source/vmnet.tar
sudo nano vmnet-only/userif.c
Below line 114, change
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 6, 0)
retval = get_user_pages(addr, 1, 1, 0, &page, NULL);
#else
retval = get_user_pages(current, current->mm, addr,
1, 1, 0, &page, NULL);
#endif
to
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 10, 0)
retval = get_user_pages(addr, 1, 0, &page, NULL);
#else
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 6, 0)
retval = get_user_pages(addr, 1, 1, 0, &page, NULL);
#else
retval = get_user_pages(current, current->mm, addr,
1, 1, 0, &page, NULL);
#endif
#endif
Save the file, exit, and then re-tar that one too
sudo tar -cf /usr/lib/vmware/modules/source/vmnet.tar vmnet-only/
Run VMware again
Now just start VMware as normal and it should install vmon and vmnet correctly.