vmware module for 12.5.2 and linux 4.9.6-1-ARCH

here we are again,

vmware modules need some tweaks again … here you will find a quick and easy patch.
in short, you have to fix some conditions:

cd /usr/lib/vmware/modules/source
tar xf vmmon.tar
mv vmmon.tar vmmon.old.tar
sed -r -i -e ‘s/KERNEL_VERSION\(4, 6, 0\)/KERNEL_VERSION\(4, 9, 0\)/g’ vmmon-only/linux/hostif.c
sed -r -i -e ‘s/retval = get_user_pages\(\(unsigned long\)uvAddr, numPages, 0, 0, ppages, NULL\);/retval = get_user_pages\(\(unsigned long\)uvAddr, numPages, 0, ppages, NULL\);/g’ vmmon-only/linux/hostif.c
tar cf vmmon.tar vmmon-only
rm -r vmmon-only
tar xf vmnet.tar
mv vmnet.tar vmnet.old.tar
sed -r -i -e ‘s/KERNEL_VERSION\(4, 6, 0\)/KERNEL_VERSION\(4, 9, 0\)/g’ vmnet-only/userif.c
sed -r -i -e ‘s/retval = get_user_pages\(addr, 1, 1, 0, \&page, NULL\);/retval = get_user_pages\(addr, 1, 0, \&page, NULL\);/g’ vmnet-only/userif.c
tar cf vmnet.tar vmnet-only
rm -r vmnet-only

thanks “digger” for all the fish!

Leave a Reply

Your email address will not be published. Required fields are marked *