iSCSI storage is a block storage method. Generally, only one initiator at a time can access the storage. This allows network storage (SAN or NAS) to store VMs.
Enabling CHAP
To enable CHAP in Proxmox, the following lines have to be uncommented out and filled in (/etc/iscsi/iscsid.conf).
If you enable CHAP in the iscsid.conf file, your non-CHAP targets will still work.
1
2
3
4
5
6
7
8
9
node.session.auth.authmethod = CHAP
node.session.auth.chap_algs = SHA3-256,SHA256,SHA1,MD5
node.session.auth.username = iscsichap
node.session.auth.password = secretpassword
discovery.sendtargets.auth.authmethod = CHAP
discovery.sendtargets.auth.username = iscsichap
discovery.sendtargets.auth.password = secretpassword
The Proxmox server now needs to be rebooted.
I have not been able to make multiple targets work with different CHAP credentials.
Adding iSCSI storage
- Click on Datacenter and Storage.
- Click on Add and select iSCSI
- The “ID” is just a name.
- “Portal” is the FQDN or IP address. If you used a different port, add “:3260”.
- After a few second “Target” should populate with options.
- Press Add.
Now you can use this storage for CT or VM units.