DocsDiscoveryVMware vSphere Discovery

VMware vSphere Discovery

Discover and inventory your VMware vSphere infrastructure including virtual machines, ESXi hosts, datastores, networks, and resource pools.


Overview

The VMware collector connects to a vCenter Server (or a standalone ESXi host) through the vSphere API and discovers virtual machines and templates, ESXi hosts, clusters, datastores, resource pools, distributed switches and port groups, and vApps.

Connection Configuration

To configure a VMware discovery zone, provide the vCenter Server connection details.

  • host (required): The hostname or IP address of your vCenter Server (e.g., "vcenter.example.com" or "10.0.1.50")
  • username (required): A vCenter user account with read-only permissions (e.g., "idp-discovery@vsphere.local")
  • password (required): The password for the vCenter user account
  • port (optional): The vSphere API port, defaults to 443. Only change this if your vCenter uses a non-standard port.

Note: Optional connection_config keys, settable through the API: datacenter (limit the scan to one datacenter), include_powered_off (default true), collect_vms, collect_templates, collect_hosts, collect_clusters, collect_datastores, collect_resource_pools, collect_networks, collect_vapps, collect_snapshots, collect_custom_attributes (all true by default) and disable_ssl_verification (default true, see below).

Discovered Resource Types

The VMware collector discovers the core resource types that make up your vSphere infrastructure.

  • Virtual machines (virtual_machine): power state, guest OS, CPU and memory, disks, VMware Tools status, IP addresses, host, resource pool, folder path, snapshots and custom attributes
  • VM templates (vm_template)
  • ESXi hosts (esxi_host): model, CPU and memory capacity, version, connection state and cluster
  • Clusters (cluster): HA and DRS configuration and capacity
  • Datastores (datastore): type, capacity and free space
  • Resource pools (resource_pool): reservations, limits and shares
  • Distributed switches and distributed port groups (distributed_switch, distributed_port_group)
  • vApps (vapp)

Dependency Detection

The VMware collector builds dependency relationships using vCenter inventory references and resource configuration.

  • VMs run on their ESXi host (runs_on)
  • VMs are stored on the datastores of their virtual disks (stored_on)
  • VMs are members of their resource pool (member_of)
  • ESXi hosts are members of their cluster (member_of) and access their datastores (accesses)
  • Distributed port groups are members of their distributed switch (member_of)

Required Permissions

Create a dedicated vCenter user with a read-only role for AsPeekIt discovery. The built-in "Read-only" role in vCenter grants sufficient permissions for all discovery operations. Assign this role at the vCenter root level so it propagates to all child objects.

  • 1. Log in to vCenter as an administrator
  • 2. Go to Administration > Single Sign-On > Users and Groups
  • 3. Create a new user (e.g., "idp-discovery@vsphere.local")
  • 4. Navigate to the vCenter object in the Hosts and Clusters inventory
  • 5. Right-click > Permissions > Add Permission
  • 6. Select the new user and assign the "Read-only" role
  • 7. Check "Propagate to children" to ensure access to all objects in the hierarchy

Warning: Never grant administrative or write privileges to the AsPeekIt vCenter user. The Read-only role is sufficient for all discovery operations. AsPeekIt never modifies, powers on/off, or migrates any virtual infrastructure.

Self-Signed Certificates

Many vCenter deployments use self-signed certificates, so certificate verification is disabled by default (disable_ssl_verification: true). Set disable_ssl_verification to false through the API to require a certificate trusted by the server.

Note: For production deployments, consider replacing the vCenter self-signed certificate with one issued by your internal CA to improve security posture.

Tips and Best Practices

Consider these recommendations for VMware discovery.

  • A discovery interval of 60-360 minutes is typically sufficient for VMware environments since infrastructure changes less frequently than in cloud-native setups
  • Use custom attributes on VMs: they are collected and help to organize and assign ownership in AsPeekIt
  • If you have multiple vCenter instances (e.g., per datacenter), create a separate discovery zone for each
  • Install agents in the guest OS of important VMs: the VM is then covered by the agent host with the same short name on the Blind spots page
  • Monitor the discovery duration; very large vCenter inventories (10,000+ VMs) may require longer scan windows