VMware Cloud Community
KThorlund
Enthusiast
Enthusiast

What comes after VMPSMasterWorkflow32.MachineActivated -> Post

Good morning, 

I use the event VMPSMasterWorkflow32.MachineActivated -> Post to finalize the configuration of a deployment. It works well.

But I have got the need to execute some code on the machine via VMWare Tools when the machine has been fully started. I have tried to add it to the VM object in the Post event, but it fails. I doubt at that point it is not fully available... 

So my question. How should I access and run via VMWare Tools during my deployment?

Regards Kjeld

0 Kudos
3 Replies
KThorlund
Enthusiast
Enthusiast

I think I found the issue. It seems to be ok to do with in the Post event. It was my own code, which was odd. 
0 Kudos
stevedrummond
Hot Shot
Hot Shot

A vSphere machine is available from PRE-MachineProvisioned onwards.

I wouldn't use POST-MachineActivated if the code you need to run is critical to the build and needs to be blocking/failure state.

0 Kudos
KThorlund
Enthusiast
Enthusiast

Thanks Steve, 

it was my code which was faulty. It works in both states. It was a bash script at had to execute as final part of my Linux installation, e.g users, postfix etc. 

0 Kudos