I have installed the VMWare Tools into a test Ubuntu guest, and it's created the standard scripts as expected:

poweroff-vm-default
poweron-vm-default
resume-vm-default
suspend-vm-default

I add some custom actions to the scripts, but it says in the top of the file

##########################################################################
# DO NOT modify this file directly as it will be overwritten the next
# time the VMware Tools are installed.
##########################################################################

So where should the custom scripts go, if I'm not supposed to modify these ones?

scriptsdir="`dirname $0`/scripts/`basename $0`.d"
if [ -d "$scriptsdir" ]; then
    for scriptfile in "$scriptsdir"/*; do
        [ -x "$scriptfile" ] && "$scriptfile" poweron-vm
    done
fi
link|improve this question

61% accept rate
feedback

1 Answer

up vote 0 down vote accepted

Here is some information on creating custom VMWare Tools scripts.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.