Common Mistakes Using VMware VI and vSphere SDK

January 31, 2010

I posted two blogs on the top 10 best practices of using the vSphere SDK (part 1, part 2) two days ago. Here is a list of several common mistakes developers make during their development. It’s based on the stats from our SDK support team.

  1. Defining wrong interval information in PerfQuerySpec
  2. Using same unit number for each device attached to a controller
  3. Mistakes in defining the TraversalSpec
  4. Using case sensitive DNS names or IP address
  5. Wrong customization spec setting for cloning a VM
  6. Mistakes in environment setup

Hope you can avoid them. If you have any mistakes to share with other developers, please feel free to add them in the comments.

Author: Steve Jin is the author of VMware VI and vSphere SDK (Prentice Hall), creator of VMware vSphere Java API. For future articles, please subscribe to RSS or Email, and follow on Twitter.

Related Posts

2 Responses to “Common Mistakes Using VMware VI and vSphere SDK”

  1. LucD says:

    I have seen at least 4 out of those 6 in practice already ;-)
    Another one that makes me pull my hair regularly, is the case-sensitivity of some enumeration values.
    For example “Community” as a value for the pvLanType gives an error. It should be “community”.

  2. admin says:

    That is true. One more reason we should use toolkit over hand code these sensitive strings. Still there are some types meant to be enumeration, but end up as string. So pay more attention to them.
    -Steve

Leave a Reply

Page 1 of 0

OfficeFolders theme by Themocracy