storage_iscsi_enable
Enable the software iSCSI adapter on an ESXi host with a preview of blast radius before applying. Requires confirmation to change, non-disruptive with no reboot.
Instructions
[WRITE] Enable the software iSCSI adapter (vmhba) on an ESXi host.
Required prerequisite before storage_iscsi_add_target. Without confirm=True this only previews: it returns blast_radius (the host, its current adapters, whether the software adapter already exists) and changes nothing. Show it to the user. Do not set confirm=True on your own because the user asked earlier — they have not seen the preview yet. Already enabled returns action "noop" with the HBA device and IQN. Non-disruptive (no reboot, no impact on existing datastores). Refused when the host's storage view cannot be read. Returns a dict; check state first with storage_iscsi_status.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | No | Optional vCenter/ESXi target name from config. | |
| confirm | No | False (default) returns the blast radius and changes nothing. True applies it. | |
| dry_run | No | Deprecated alias for confirm; removed in the next minor release. dry_run=False acts, dry_run=True previews. | |
| host_name | Yes | ESXi host name exactly as shown in vCenter inventory (FQDN or IP). Errors if not found. |