I have a couple hundred VM's that need to have their NIC's updated to vmxnet3. I have a workflow that loops through a machine and records information on any NIC except the vmxnet3 which it just bypasses. I would like to remove the old NIC and add the new vmxnet3 NIC and pass the IP information back to the new NIC. The problem I have is actually whacking the old NIC and creating the new one. Any suggestions?
You might want to be cautious with such a workflow for several reasons:
Not exactly vRO workflow help, but food for thought since I've done similar things in the past with PowerCLI and run into above issues.
Definitely food for thought.
I have a workflow that will snapshot the vm, update tools, shut down the vm and then upgrade the virtual hardware. I plan to add the new nic while the machine is shut down to avoid instability.
This thread will give you a starter code for adding and removing nics. I have added them in the past using this code, powering off the VM first and then powering it on again afterwards.
I would then look at running a script inside the guest OS to apply IP information, I never had to do that as in my scenerio it was adding a nic during vRA deployment ready for clustering a VM which was then added manually by a separate team when they configured the windows cluster.