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”
In this example I configure some advanced setting on an ESXi host. Syslog server is just one of the. First I create a for loop to create my hostSetting array objects. Then late I fill them. Always the key and a value. You can check the ESXi host advanced setting in GUI for parameters. YouContinue reading “vCO – Configure ESXi Syslog Server and more”
In this example I set the NTP Server and then check if the NTP Service is running. If not I start it. //myhost is input parameter of type VcHostSystem //ntpServer is input parameter of type String (string array) var hostDateTimeConfig = new VcHostDateTimeConfig(); hostDateTimeConfig.ntpConfig = new VcHostNtpConfig(); hostDateTimeConfig.ntpConfig.server = ntpServer; //Set the ntp servers myhost.configManager.dateTimeSystem.updateDateTimeConfig(hostDateTimeConfig);Continue reading “vCO – Configure NTP on ESX”
This is another simple one. In my eyes useful if you want to use vCO to configure your ESX. I go through all port groups on the host and compare if one is name “VM Network” if this is so then I remove it.
Well it took me a while to figure this one out but once you know, it is really simple. Isn’t it?
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.
There are maybe times when you want to send an email attachment. A csv file for example. It is actually quit easy to achieve. Just create a duplicate of the existing workflow “Send notification” and add a few lines. Add following lines: attachmentName is an input parameter of the type string with the file nameContinue reading “vCO – Send email attachment”
VMware has published some demo videos on how to develop vCenter Orchestrator (vCO) workflows. The first time I ever worked with vCO before I actually were clueless on what to do with it. In case you feel the same way right now these three youtube videos might give you a good start. Developing Your FirstContinue reading “vCO getting started – Videos from VMwareTV”
Well this is my very first blog ever. Actually this is a reply to a blog on the mighty virtualization blog from Christian Johannsen on http://mighty-virtualization.blogspot.com/2011/01/vco-get-all-distributed-virtual.html Blogspot for some reason did not let me post this code as a reply but I thought I do not want to leave my talent wasted (cough!) and post it asContinue reading “vCO – Another way of getting Distributed Virtual Switches”