After you customize a guest network in a running virtual machine, you must reconnect the virtual NICs before the guest operating system can use them.
To reconnect a virtual NIC by reconfiguring the virtual machine, prepare a VirtualMachineConfigSpec
data object that specifies a connected virtual NIC. You pass the config specification in the spec
parameter of the ReconfigVM_Task
method. Assign a value of True
to the property spec.deviceChange[].device.connectable.connected
.