VMware {code} Community
giorashc
Contributor
Contributor
Jump to solution

Knowing when virtual machine customization is done ...

When I generate virtual machines I also customize them using the sysprep mechanism.

How can I know when the customization is done through the vsphere api ? It is crucial for me as I need to perform several operations only AFTER the customization is done on the machine. (e.g. updating active direcotry....)

Thanks

0 Kudos
1 Solution

Accepted Solutions
njain
Expert
Expert
Jump to solution

vSphere generates events to convey information about various actions that take place in the system. You can monitor these events to keep track of an action. In order to check if customization is complete, you can monitor for "CustomizationSucceeded" event.

http://www.vmware.com/support/developer/vc-sdk/visdk41pubs/ApiReference/vim.event.CustomizationSucce...

For more information on events, check out SDK Programming guide:

http://www.vmware.com/support/developer/vc-sdk/visdk41pubs/vsp41_vsdk_prog_guide.pdf

View solution in original post

0 Kudos
2 Replies
njain
Expert
Expert
Jump to solution

vSphere generates events to convey information about various actions that take place in the system. You can monitor these events to keep track of an action. In order to check if customization is complete, you can monitor for "CustomizationSucceeded" event.

http://www.vmware.com/support/developer/vc-sdk/visdk41pubs/ApiReference/vim.event.CustomizationSucce...

For more information on events, check out SDK Programming guide:

http://www.vmware.com/support/developer/vc-sdk/visdk41pubs/vsp41_vsdk_prog_guide.pdf

0 Kudos
giorashc
Contributor
Contributor
Jump to solution

Perfect !

Thank alot

0 Kudos