Here is some code how to configure the vMotion address with a distributed virtual switch. Input parameter are my host and dvSwitch. I go through all portgroups and compare if it is called vmotion. If so I set IP and subnet. Hard coded so it is easier to understand, you probably want this also asContinue reading “vCO – Configure vMotion with Virtual Distributed Virtual Switch”
Here is the code for creating a distributed virtual port group. Input is of type VC:VmwareDistributedVirtualSwitch
Here is the code for creating a distributed virtual switch. Input is sdkConnection. The code assumes you have only the root network folder.