> For the complete documentation index, see [llms.txt](https://docs.octoxlabs.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.octoxlabs.com/adapters/v/vmware-vcenter.md).

# VMware vCenter

VMware vCenter manages ESXi hosts and virtual machines. OctoXLabs reads each ESXi host and the virtual machines on it. This adds guest operating system, sizing, IP and MAC addresses, host and cluster placement and VMware tags to the inventory.

## Use cases

* List all virtual machines in vCenter.

```
Adapters = vmware-vcenter
```

* Find virtual machines that are in vCenter but have no endpoint agent. Replace `falcon-crowdstrike` with your own agent source.

```
Adapters = vmware-vcenter AND NOT Adapters = falcon-crowdstrike
```

## Before you begin

### Network

| Source              | Destination           | Port                        | Protocol |
| ------------------- | --------------------- | --------------------------- | -------- |
| OctoXLabs connector | vCenter Server        | 443 (default, configurable) | HTTPS    |
| OctoXLabs connector | HTTP proxy (optional) | Set in **Proxy**            | HTTP     |

### Required permissions

| Scope or role                                             | Permission | Needed for                 |
| --------------------------------------------------------- | ---------- | -------------------------- |
| Global Permissions: Read-only role, Propagate to children | Read       | Hosts, VMs, clusters, tags |

## Create credentials in VMware vCenter

{% stepper %}
{% step %}

### Add a user

Sign in to vCenter as an administrator. Go to **Menu > Administration**. Under **Users and Groups**, select the domain and click **Add User**.
{% endstep %}

{% step %}

### Assign the role

Go to **Global Permissions**. Assign the **Read-only** role to the user. Make sure **Propagate to children** is selected.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter      | Required | Type    | Default | Description                             |
| -------------- | -------- | ------- | ------- | --------------------------------------- |
| IP             | Yes      | Text    |         | IP address of vCenter.                  |
| Port           | No       | Integer | 443     | vCenter port.                           |
| Username       | Yes      | Text    |         | Read only account.                      |
| Password       | Yes      | Text    |         | Account password.                       |
| Proxy          | No       | Text    |         | Proxy in `host:port` format.            |
| Timeout        | No       | Integer | 30      | Seconds to wait for API responses.      |
| Is Secure?     | No       | Boolean | True    | Use HTTPS.                              |
| Fetch Clusters | No       | Boolean | False   | Attach cluster data to each VM.         |
| Fetch Tags     | No       | Boolean | False   | Attach VMware tags to each VM.          |
| Thread Count   | No       | Integer | 32      | Parallel threads. Min 1, max 32.        |
| Sleep Time     | No       | Integer | 0       | Delay in seconds between thread starts. |

## Troubleshooting

| Error message                                                                                                      | Cause                           | Fix                                        |
| ------------------------------------------------------------------------------------------------------------------ | ------------------------------- | ------------------------------------------ |
| Tag association pagination (iterate.marker) not supported on this vCenter version. Partial associations collected. | Tag paging returned 400.        | Upgrade vCenter, or accept partial tags.   |
| Tag fetching failed, continuing without tags                                                                       | A tag call failed.              | Check the account permissions on tags.     |
| Request failed after 5 retries for url                                                                             | Rate limit (429) did not clear. | Increase Sleep Time or lower Thread Count. |

## Change history

{% hint style="info" %}
Available starting from version 2.4.0.
{% endhint %}
