Quantcast
Channel: VMware Communities : All Content - Workstation Player
Viewing all articles
Browse latest Browse all 5660

cannot get poweroff/suspend scripts to run

$
0
0

Hi there,

 

I am out of ideas, maybe somebody here knows the magic trick to get poweroff/suspend scripts to run inside the guest.

 

I am running VMware Player 4.0.2 on Windows 2003r2 and have a small Ubuntu 10.04 virtual machine I want to run (no GUI, command-line only).

 

Everything is fine so far, except for me not being able to get the poweroff/suspend VMware tools scripts to run.

 

I did install the 8.8.2 build 590212 tools without any trouble. I did use the

 

vmware-toolbox-cmd script power enable

vmware-toolbox-cmd script shutdown enable

vmware-toolbox-cmd script resume enable

vmware-toolbox-cmd script suspend enable

 

commands and I could verify that all the default scripts are enabled in /etc/vmware-tools/tools.conf.

 

I created the

 

/etc/vmware-tools/scripts/poweron-vm-default.d

/etc/vmware-tools/scripts/poweroff-vm-default.d

/etc/vmware-tools/scripts/resume-vm-default.d

/etc/vmware-tools/scripts/suspend-vm-default.d

 

directories and do have a very simple test.sh (which I made executable, chmod 550) in all four directories, which does nothing but spit out the time is was called into /var/log/vmscripts.log.

 

The weird thing is: I do get poweron and resume scripts executed just fine, but I can never see poweroff or suspend !!!

 

So I got desperate and started to google around like crazy, I even set

 

toolScripts.afterPowerOn="true"

toolScripts.afterResume="true"
toolScripts.beforeSuspend="true"
toolScripts.beforePowerOff="true"

 

in the VM's .vmx file (which doesn't seem to change anything). No success.

 

So I thought, maybe it is because 4.0.2 is too new and there seems to have been some screw-up with the tools anyway, so switched back to VMware Player 3.1.5, uninstalled the 8.8.2 tools and installed the 8.4.8 build 491717 tools, just to realize that the effect is exactly the same :-(.

 

After that I was doing some searching in the host-side logs of the VM (vmware.log) and it seems that for the poweroff and suspend the VMware Player does never actually "call" the script. For poweron and resume I get something like this:

 

Feb 21 23:10:46.230: vcpu-0| TOOLS sending 'OS_PowerOn' (state=3 callback=0 clientData=0) state change request

 

But I can never see anything along those lines for poweroff and suspend.

 

 

What am I doing wrong???

 

I cannot believe that this is something not working and not having been noticed by anybody else yet ...

 

Thanks for some insight

 

 

Harry


Viewing all articles
Browse latest Browse all 5660

Trending Articles