Common Mistakes Using VMware VI and vSphere SDK

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.

Lost VMs or Containers? Too Many Consoles? Too Slow GUI? Time to learn how to "Google" and manage your VMware and clouds in a fast and secure HTML5 App.

This entry was posted in vSphere API and tagged , , , . Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.


  1. Posted February 1, 2010 at 1:21 am | Permalink

    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. Posted February 1, 2010 at 9:46 pm | Permalink

    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.

Post a Comment

Your email is never published nor shared. Required fields are marked *


You may use these HTML tags and attributes <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>


    My company has created products like vSearch ("Super vCenter"), vijavaNG APIs, EAM APIs, ICE tool. We also help clients with virtualization and cloud computing on customized development, training. Should you, or someone you know, need these products and services, please feel free to contact me: steve __AT__

    Me: Steve Jin, VMware vExpert who authored the VMware VI and vSphere SDK by Prentice Hall, and created the de factor open source vSphere Java API while working at VMware engineering. Companies like Cisco, EMC, NetApp, HP, Dell, VMware, are among the users of the API and other tools I developed for their products, internal IT orchestration, and test automation.