pyvmomi-community-samples
pyvmomi-community-samples copied to clipboard
Sample: find a VM using FindByDatastorePath
Demonstrate how to figure out a Virtual Machine's datastore path during create, save the path, and then use that path to find the VM again later. This can be a valuable tool in systems that are focused on Datastore and storage as their primary focus in creating, managing, and moving around Virtual Machines.
In particular the Nova driver on OpenStack does this a lot and could use some clean samples around that work flow.