# Discovering VMware ESX / ESXi servers in OpManager Discovering hosts and VMs in the vSphere environment requires providing the IP Address/DNS Name and vSphere credentials for the vCenter/Host. It is crucial that the vSphere user has at least Read access to all hosts and VMs for uninterrupted device monitoring. If the user intends to perform actions like powering on/off VMs, Administrator privileges are recommended. This documentation guides users through the essential steps for VMware discovery. **Discover vCenter:** Use discover vCenter with the vCenter's VMware credentials, to discover all the hosts, VMs and datastores managed by that particular vCenter. **Discover ESX:** Use discover ESX with the ESX's VMware credentials, to discover the host along with its datastore and VMs. ## Configuring VMware credentials Before proceeding, ensure that you have configured the [VMware credentials](https://www.manageengine.com/manageengine/network-monitoring/help/add-credentials.html) for the vCenter/ ESX host and the SNMP and WMI credentials for the VMs in the credential library. ![VMware ESX/ ESXi servers discovery in OpManager: VMware discovery - Add credential](https://www.manageengine.com/network-monitoring/help/images/vmware-discovery-1.jpg) 1. Go to **Settings → Discovery → Virtualization Discovery → VMware**. 2. Select the **Discovery Type**: - **vCenter Discovery** – Discovers all ESX/ESXi hosts and virtual machines managed by a vCenter server. - **ESX Discovery** – Discovers a standalone ESX/ESXi host. 3. Enter the **DNS name or IP address** of the vCenter server or ESX/ESXi host. 4. Select a **VMware Credential** from the drop-down list or click **Add Credential**. - Enter the **vSphere Username and Password** for the selected vCenter/Host. - Configure the connection settings by specifying the **HTTPS Port** (VMware web service port) and the **Timeout** interval. - Select **Auto VM Discovery** to automatically discover newly created virtual machines. - Click **Save**. 5. Click **Discover** to fetch the VMware inventory. The **Discovered Devices** page displays all ESX/ESXi hosts and virtual machines associated with the selected vCenter or ESX host. 6. All hosts will be discovered by default. Select or clear the checkboxes to choose the virtual machines that need to be monitored. 7. For OS-level and performance monitoring, click **Select Credentials** and assign the required dependent credentials (SNMP, WMI, or CLI). If the required credentials are unavailable, add them from **Settings → Discovery → Credentials**. 8. Click **Discovery Settings** to configure VMware discovery behavior: - Set **Scan vCenter / ESX Interval (hrs)** to automatically rediscover inventory changes. - Enable **Sync entity name with display name** to synchronize VMware entity names with device display names. - Enable **Raise alerts for Physical NIC & Host Bus Adapter** to receive alerts for NIC and HBA status changes. - Enable **Rediscover existing** to rediscover previously discovered VMs during manual inventory updates. - Enable **UnManage the Orphaned VMs** to automatically unmanage VMs removed or moved to an orphaned state. ![VMware ESX/ ESXi servers discovery in OpManager: vmware ip address configuration](https://www.manageengine.com/network-monitoring/help/images/vmipmapping.png) 9. Click **Save** to apply the settings. 10. Click **Discover** to start the discovery process. Once discovery is complete, navigate to **Virtualization → VMware** to view the discovered vCenter, hosts, and virtual machines. If any of the VMs are already discovered or added, OpManager automatically maps them as virtual devices. ## Configuring VM IP Address OpManager, with the help of the installed VMware Tools, identifies the IP address of the VM and maps it to the host. If VMware Tools are not installed, OpManager discovers it using the VM's entity name. You can assign the IP address manually for such VMs in the host's snapshot page (navigate to **Inventory → Devices** and then click on the device to open its snapshot page). If VMs are not discovered/mapped to their vCenter/Host because of an unassigned IP address, you can assign an IP address in the vSphere environment. OpManager will automatically map that VM to its vCenter/Host. Alternatively, you can manually assign an IP address to a VM by following the steps below: - Go to the **vCenter/Host's snapshot page → Virtual Machines** tab. - Click the start monitoring button in the **Monitoring** column for devices that are not monitored. - This will open **IP Mapping**. Enter the **VM's IP address/DNS name** and the corresponding credentials to rediscover and map the VM to its vCenter/Host. You can now choose to monitor only the required VMs on a host. If you wish to stop monitoring a VM, click the Stop monitor button for the corresponding VM under the Virtual Details tab in the vCenter/Host's snapshot page. Select the relevant icon to stop monitoring the required VMs on the host. OpManager maintains this configuration when a HA, VMotion, or rediscovery happens. To gain in-depth insights into OpManager's VMware monitoring practices, explore the following help documents: - [Monitoring VMwares](https://www.manageengine.com/manageengine/network-monitoring/help/monitoring-vmware-server.html) - [Monitoring VMware performance](https://www.manageengine.com/manageengine/network-monitoring/help/monitoring-vmware-esx-server.html) - [Configuring Thresholds for VMware Host and VMs](https://www.manageengine.com/manageengine/network-monitoring/help/vmware-templates.html) - [Managing VMware Alerts](https://www.manageengine.com/manageengine/network-monitoring/help/vmware-alerts.html) - [VMware fault management](https://www.manageengine.com/manageengine/network-monitoring/help/vmware-fault-management.html) - [About VMware templates](https://www.manageengine.com/manageengine/network-monitoring/help/vmware-templates.html) --- **Frequently asked questions:** 1. [How to discover devices and interfaces in OpManager?](https://www.manageengine.com/network-monitoring/help/discover-networks.html) 2. [How to add a new credential?](https://www.manageengine.com/network-monitoring/help/add-credentials.html) 3. [Can I add a non-admin user account for WMI?](https://www.manageengine.com/network-monitoring/kb/adding-non-admin-user-for-wmi.html) 4. [Can I add devices using SSH?](https://www.manageengine.com/network-monitoring/help/adding-devices-using-ssh.html) 5. [Why are devices discovered as 'Unknown'?](https://www.manageengine.com/network-monitoring/faq/devices-discovered-as-unknown-devices-opmanager.html) 6. [What are devices supported in OpManager?](https://www.manageengine.com/network-monitoring/faq/all-devices-supported.html) 7. [Why are interfaces not discovered for my device?](https://www.manageengine.com/network-monitoring/faq/interfaces-not-discovered.html) 8. [How can I associate device templates to a newly discovered device?](https://www.manageengine.com/network-monitoring/help/associate-device-template.html) 9. [How to associate monitors to the discovered device?](https://www.manageengine.com/network-monitoring/help/adding-custom-monitors.html) 10. [What is a discovery filter?](https://www.manageengine.com/network-monitoring/help/discovery-filter.html) 11. [How do I configure a new discovery rule?](https://www.manageengine.com/network-monitoring/help/configuring-discovery-rule-engine.html) 12. [How to manage or unmanage a device?](https://www.manageengine.com/network-monitoring/help/managing-and-unmanaging-a-device.html) 13. [How to configure device dependencies?](https://www.manageengine.com/network-monitoring/help/configuring-device-dependencies.html) 14. [How can find the missing VMs and hosts?](https://www.manageengine.com/network-monitoring/faq/find-missing-vms-and-hosts-opmanager.html) 15. [How can I discover a VLAN?](https://www.manageengine.com/network-monitoring/faq/vlan-discovery-in-opmanager.html) 16. [How does availability monitoring work in OpManager?](https://www.manageengine.com/network-monitoring/availability-monitoring.html) 17. [What are the basic system requirements to install and use OpManager?](https://www.manageengine.com/network-monitoring/help/hardware-and-software-requirements.html) 18. [How can I troubleshoot issues with device discovery?](https://www.manageengine.com/network-monitoring/help/add-device-failure-messages.html) 19. [How can I troubleshoot issues with VCenter/ESX discovery?](https://www.manageengine.com/network-monitoring/faq/troubleshooting-problems-in-vcenter-discovery.html)