[Howto] How to Resolve Issues for VMWORKSTATION and VMPLAYER (ANY KERNEL + ANY VERSION)

The problem here is always the same vmnet and vmmon doesn’t start well or doesn’t start at all, find a PATCH deal with changes in vmmon.c and vmnet.c because something breaks or add some parameters to that files or modify and IF, I suggest to you follow this Step:

You can find all this Information in this Document:

Regards.,

2 Likes

Since this issue was asked many times, I added this howto to the list of commonly asked questions.
What do you think?

2 Likes

Perfect this idea doesn’t come to my mind :+1:

2 Likes

I created a script to take of this after a kernel update. Save it as /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
1 Like

Hello @freddyw, thank you and welcome to the community.
I edited your post in order to format the code in a more readable way :wink:

1 Like

Another candidated for quick-docs IMO.

@FranciscoD Done, also update the Common Task list with quick-docs information and reflected in the TOPIC

Regards.,

1 Like