I spent some time getting this to work from a Unraid server to a Windows computer and thought I would type out some instructions even just for my own benefit when I go to do this again and forgot how it works.
This is for using a File IO setup.
1. From the File IO tab
- Select the path for the share to store the image file
- type a name for the file
- select size - Example 2000g being 2TB
- Select Write back as True
2. On the initiators tab
- use the Create Target -> Leave the name blank and it will auto assign a name. I could never get it to work with my own name. -> hit add target
3. On windows computer open iSCSI Initiator
- On the Configuration tab -> copy the initiator Name - Will be something like: iqn.1991-05.com.microsoft:*computername*
4. Back on unraid on the initiators tab
- for Create IQN, select the target created in setup 2.
- Enter the Initiator name copied from the windows computer
- select add IQN
5. Create LUN
- Choose the IQN created then select the fileIO created in step 1
- Select add LUN
6. Add Mapping
- Select the Target again, and the Initiator name of the Windows PC.
- For Lun Map number use "0" if there is only one Lun created, if you have more then one then use 1,2 etc.
- For Lun or Backstore name, it will be fileio;*fileioname* -> for example mine was fileio;ISCSI-2
- I leave Write protect as false, just as default.
- Select add Map
*pro tip, when selecting some of these options if I double clicked the line it would bring up some of the available name options. for example fileio;ISCSI-2 for the LUN name.
7. back on the windows computer
- On the target tab enter the IP as target and hit Quick connect.
* Note it will sometimes it will auto find the targets
- Select the name of the target from the list
- Click connect
- I leave the next window as default, and click okay.
8. Format the drive
- In disk Management, initialize the disk, create a volume and format the disk.
Feel free to add to this or change as needed.