ISCSI Client and connecting to a target on Debian or Ubuntu

Configure Initiator (client)


Step 1 #

Please run apt-get update and install open-iscsi package:

$ apt-get update
$ apt-get install open-iscsi


Step 2 #

Assuming your server IP address is, please run:

$ iscsiadm -m discovery -t st -p


Step 3 #

Now please edit file: /etc/iscsi/nodes/client.iscsi:lun1/,3260,1/default

Now locate and change/add following values:

node.startup = automatic
node.session.auth.authmethod = CHAP
node.session.auth.username = client-scsi
node.session.auth.password = client-password
node.session.auth.username_in = server-scsi
node.session.auth.password_in = server-password


Step 4 #

Now restart open-iscsi:

$ service open-iscsi restart


Step 5 #

Please check now if your iscsi drive is visible on the client side by using lsblk