VMware Cloud Community
sbeaver
Leadership
Leadership

Extensibility / Event Broker

I have another team that has an automated process creating Golden Images so that the images are current and patched ect.  When this team deploys the images around the enterprise the vnic is removed from the vm as the last step before converting the vm to a template.  I have been looking to find the moment during the build when the clone of the template has finished and before any customization is applied to the template so I can run a workflow to add a vnic to the deployed image before the "set virtual machine custom value" is applied.  If I use the customization spec a nic is added to the vm but the guest OS does not see it.  It appears that if I run the workflow to add a vnic after the "set virtual machine custom value" is applied, the vm ends up with two vnics and then barfs because that does not match the spec.

My last attempt had these conditions:

Data > Lifecycle state > Lifecycle state name = CloneWorkflow.CloneMachine

State phase = EVENT

Event top ID = OnCloneMachineComplete

Anyone got any suggestions?

Steve Beaver
VMware Communities User Moderator
VMware vExpert 2009 - 2020
VMware NSX vExpert - 2019 - 2020
====
Co-Author of "VMware ESX Essentials in the Virtual Data Center"
(ISBN:1420070274) from Auerbach
Come check out my blog: [www.virtualizationpractice.com/blog|http://www.virtualizationpractice.com/blog/]
Come follow me on twitter http://www.twitter.com/sbeaver

**The Cloud is a journey, not a project.**
Reply
0 Kudos
1 Reply
SeanKohler
Expert
Expert

Quick thought: Not pretty... but you could add the NIC during machine provisioned and configure using OS commands. (including set addressing) 

If I come up with something else... will post.  Thinking about this now.

Reply
0 Kudos