storage_iscsi_enable
Enable the software iSCSI adapter on an ESXi host to allow subsequent iSCSI target additions. Supports idempotent execution and dry-run preview.
Instructions
[WRITE] Enable the software iSCSI adapter (vmhba) on an ESXi host.
Required prerequisite before storage_iscsi_add_target. Idempotent: if the adapter is already enabled, returns its HBA device and IQN without making changes. Modifies host storage configuration but is non-disruptive (no reboot, no impact on existing datastores). Audit-logged to ~/.vmware/audit.db. Check current state first with storage_iscsi_status. Returns a confirmation string; errors include remediation hints.
Args: host_name: ESXi host name exactly as shown in vCenter inventory (FQDN or IP). Errors if not found. dry_run: If true, return a preview of the change without executing it. target: Optional vCenter/ESXi target name from config; omit to use the default target.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | No | ||
| dry_run | No | ||
| host_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |