Home Adding iSCSI storage to Proxmox
Post
Cancel

Adding iSCSI storage to Proxmox

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

  1. Click on Datacenter and Storage.
  2. Click on Add and select iSCSI
  3. The “ID” is just a name.
  4. “Portal” is the FQDN or IP address. If you used a different port, add “:3260”.
  5. After a few second “Target” should populate with options.
  6. Press Add.

Now you can use this storage for CT or VM units.

This post is licensed under CC BY 4.0 by the author.