Hi folks

This script (I got from the net somewhere - can't remember though) should fix the problem with VMware and updated kernels when using Linux Hosts

put this script in the vmmodules install file - usually this one : /etc/kernel/install.d/99-vmmodules.install


#!/usr/bin/bash

export LANG=C

COMMAND="$1"
KERNEL_VERSION="$2"
BOOT_DIR_ABS="$3"
KERNEL_IMAGE="$4"

ret=0

case "$COMMAND" in
add)
VMWARE_VERSION=$(cat /etc/vmware/config | grep player.product.version | sed '/.*"\(.*\)".*/ s//\1/g')

[ -z VMWARE_VERSION ] && exit 0

mkdir -p /tmp/git; cd /tmp/git
git clone -b workstation-${VMWARE_VERSION} " https://github.com/mkubecek/vmware-host-modules.git"
cd vmware-host-modules
make VM_UNAME=${KERNEL_VERSION}
make install VM_UNAME=${KERNEL_VERSION}

((ret+=$?))
;;
remove)
exit 0
;;
*)
usage
ret=1;;
esac

exit $ret

this should save a lot of aggro after kernel updates.

Remove the double quotes from the URL - I added those to stop the URL being translated in the post rendering the script unusable.

Cheers
jimbo