# Cd to te dir where the vmware modules are.
cd /usr/lib/vmware/modules/source
# Unpack vmnet.
tar -xvf vmnet.tar
# Add the missing include (code is just there now)
sed -i '46 a#include <net/gso.h>' vmnet-only/bridge.c
# Backup original vmnet.tar
mv vmnet.tar vmnet.tar.original
# Pack the patched vmnet.
tar -cf vmnet.tar vmnet-only
# Cd to the dir where the vmware modules are.
cd /usr/lib/vmware/modules/source
# Unpack vmmon.
tar -xvf vmmon.tar
# Fix by replacing replace pte_offset_map with pte_offset_kernel
sed -i 's/pte_offset_map/pte_offset_kernel/g' vmmon-only/include/pgtbl.h
# Backup original vmmon.tar
mv vmmon.tar vmmon.tar.original
# Pack the patched vmmon.
tar -cf vmmon.tar vmmon-only
vmware-modconfig --console --install-all
systemctl restart vmware
コメント