Install TGT iSCSI target sudo apt install -y tgt sudo nano /etc/tgt/conf.d/TecMint_iscsi.conf Write the config file (can be any.conf) <target qwq.cszombie.net:lun0> # Provided device as an iSCSI target #direct-store /dev/sdb1 backing-store /dev/sdc #initiator-address 192.168.0.10 #incominguser tecmint-iscsi-user password #outgoinguser debian-iscsi-target secretpass </target> Restart the service and check the exposed luns sudo service tgt restart sudo tgtadm --lld iscsi --op show --mode target Create an ext4 partition image dd if=/dev/zero of=myimg.ext4 bs=1M count=20480 mkfs.ext4 myimg.ext4 mount -o loop myimg.ext4 /mnt/tmp/ References: https://www.tecmint.com/setup-iscsi-target-and-initiator-on-debian-9/ https://www.cyberciti.biz/tips/howto-setup-linux-iscsi-target-sanwith-tgt.html