> For the complete documentation index, see [llms.txt](https://developer.harness.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.harness.io/resilience-testing/chaos-testing/chaos-faults/vmware.md). Agents can also search and read this documentation through its [MCP server](https://developer.harness.io/~gitbook/mcp).

# VMware

VMware chaos faults that power off vCenter VMs, or stress, disrupt the network of, and kill processes inside Linux guest VMs through VMware Tools.

VMware faults act on VMs managed by vCenter. vCenter faults power VMs off and on through the vSphere API. Linux VM faults run commands inside the guest through VMware Tools Guest Operations, so the guest needs no chaos agent. All VMware faults run on a Kubernetes chaos infrastructure that can reach vCenter.

***

## Before you begin

* **Chaos infrastructure:** A Kubernetes chaos infrastructure that can reach vCenter on port 443. Go to [Get started](https://developer.harness.io/resilience-testing/chaos-testing/get-started.md) to install one.
* **vCenter user and role:** A vCenter user mapped to a role with the chaos privileges. Go to [VMware fault permissions](https://developer.harness.io/resilience-testing/chaos-testing/chaos-faults/vmware/permissions.md) for the privileges and the network paths.
* **Credentials:** The vCenter credentials, and for Linux VM faults the guest credentials, stored as Harness text secrets. Go to [VMware fault authentication](https://developer.harness.io/resilience-testing/chaos-testing/chaos-faults/vmware/authentication.md) to store them.
* **VMware Tools and binaries for Linux VM faults:** VMware Tools runs in each target guest, and the guest has the binaries the fault uses. Go to [Linux VMs](https://developer.harness.io/resilience-testing/chaos-testing/chaos-faults/vmware/linux.md#required-binaries) for the binaries each fault needs.

***

## Supported environments

VMware faults target VMs on vSphere managed by vCenter. A fault page lists any environment below that it does not support.

| Environment                            | Faults that target it                                                                                          |
| -------------------------------------- | -------------------------------------------------------------------------------------------------------------- |
| Linux and Windows VMs on vCenter       | vCenter faults, which act on the VM and not the guest                                                          |
| Linux VMs on vCenter with VMware Tools | Linux VM faults. Network faults also need `tc`, HTTP faults need `iptables`, and service stop needs `systemd`. |
| Standalone ESXi hosts without vCenter  | Not supported                                                                                                  |

To run in-guest faults on Windows VMs on vCenter, install the Windows chaos infrastructure on the VM and use the [Windows faults](https://developer.harness.io/resilience-testing/chaos-testing/chaos-faults/windows.md).

***

## Faults

| Group                                                                                                   | What the faults target                                                                 |
| ------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- |
| [vCenter](https://developer.harness.io/resilience-testing/chaos-testing/chaos-faults/vmware/vcenter.md) | The power state of VMs on vCenter                                                      |
| [Linux VMs](https://developer.harness.io/resilience-testing/chaos-testing/chaos-faults/vmware/linux.md) | CPU, memory, disks, network, HTTP traffic, processes, and services inside Linux guests |

***

## Troubleshooting

<details>

<summary>A VMware fault cannot connect to vCenter</summary>

The chaos infrastructure cannot reach vCenter on port 443, or the vCenter certificate is not trusted. Check the route and firewall rules from the cluster to vCenter. For a self-signed certificate, add it to the trust store, or set `GOVC_INSECURE` to `true` on faults that support it.

</details>

<details>

<summary>A VMware fault fails with a NoPermission or "Permission to perform this operation was denied" error</summary>

The vCenter user's role is missing a privilege the fault uses, or the role is not assigned on the target VM's folder or cluster. The error names the privilege. Go to [VMware fault permissions](https://developer.harness.io/resilience-testing/chaos-testing/chaos-faults/vmware/permissions.md) for the privileges each group needs.

</details>

<details>

<summary>A Linux VM fault fails because VMware Tools is not running</summary>

Guest Operations need VMware Tools running in the guest. Check its status with `vmware-toolbox-cmd -v` inside the VM, or on the VM's **Summary** tab in vCenter, and start or install it.

</details>

***

## Next steps

* Go to [VMware fault permissions](https://developer.harness.io/resilience-testing/chaos-testing/chaos-faults/vmware/permissions.md) to set up the vCenter role.
* Go to [VMware fault authentication](https://developer.harness.io/resilience-testing/chaos-testing/chaos-faults/vmware/authentication.md) to store the credentials.
* Go to [vCenter](https://developer.harness.io/resilience-testing/chaos-testing/chaos-faults/vmware/vcenter.md) to start with VM power off.

{% @harness-feedback/feedback %}
