def find_vm_by_name(vm_name)
      logger.debug("search for #{vm_name}")
      serviceContent.propertyCollector.collectMultiple(vms, 'name').find do |_k, v|
        v['name'] == vm_name
      end[0]
    end
def find_vm_by_name(vm_name)
      logger.debug("search for #{vm_name}")
      serviceContent.propertyCollector.collectMultiple(vms, 'name').find do |_k, v|
        v['name'] == vm_name
      end[0]
    end
find vm