For software iSCSI, you can configure different CHAP credentials for each discovery address or static target.

When configuring CHAP parameters, make sure that they match the parameters on the storage side. For software iSCSI, the CHAP name should not exceed 511 and the CHAP secret 255 alphanumeric characters.

Before setting up CHAP parameters for software iSCSI, determine whether to configure one-way or mutual CHAP.

In one-way CHAP, the target authenticates the initiator.

In mutual CHAP, both the target and initiator authenticate each other. Make sure to use different secrets for CHAP and mutual CHAP.


Log in to the vSphere Client and select a server from the inventory panel.


Click the Configuration tab and click Storage Adapters in the Hardware panel.

The list of available storage adapters appears.


Select the software iSCSI initiator to configure and click Properties.


Select either Dynamic Discovery tab or Static Discovery tab.


From the list of available targets, select a target you want to configure and click Settings > CHAP.


To configure one-way CHAP, under CHAP specify the following.


Deselect Inherit from parent.


Select one of the following options:

Do not use CHAP unless required by target

Use CHAP unless prohibited by target

Use CHAP. To be able to configure mutual CHAP, you must select this option.


Specify the CHAP name.

Make sure that the name you specify matches the name configured on the storage side.

To set the CHAP name to the iSCSI initiator name, select Use initiator name.

To set the CHAP name to anything other than the iSCSI initiator name, deselect Use initiator name and enter a name in the Name field.


Enter a one-way CHAP secret to be used as part of authentication. Make sure to use the same secret that you enter on the storage side.


To configure mutual CHAP, first configure one-way CHAP by following directions in Step 6.

Make sure to select Use CHAP as an option for one-way CHAP. Then, specify the following under Mutual CHAP:


Deselect Inherit from parent.


Select Use CHAP.


Specify the mutual CHAP name.


Enter the mutual CHAP secret. Make sure to use different secrets for the one-way CHAP and mutual CHAP.


Click OK.


Rescan the initiator.

If you change the CHAP or mutual CHAP parameters, they are used for new iSCSI sessions. For existing sessions, new settings are not used until you log out and login again.