Simple iSCSI Lab with Linux & Windows Server 2008 Core

This is a very simple lab scenario for testing iSCSI.
In Linux iSCSI is setup in the usual way: from command line. Since Windows 2008 Core dosen’t have an interface to setup iSCSI initiator, you have to use the linux-way: command line.

iSCSI Target: Linux Box, openSuSE 11, IP address: 10.0.0.1, Name: lx-nas.example.com
iSCSI Initiator: Windows Server 2008, Core Install, IP Address: 10.0.0.2, Name: core.example.com

Target setup:
Install openSuSE 11, any installation type + iscsitarget, iscsitarget-kmp-default
Make available one additional disk, in this case sdb
Add target by editing /etc/ietd.conf:
Target iqn.2008-09.com.example:b37d1bcc-4143-4488-8946-1adeab9dc19e
Lun 0 Path=/dev/sdb, Type=fileio

Enable & satart service
#chkconfig --set iscsitarget on
#rciscsitarget start

Initiator Setup:
Install Windows Server 2008 core

Enable & satart service
sc \\core config msiSCSI start= auto
net start msiSCSI

Setup iSCSI Intiator

iscsicli AddTargetPortal 10.0.0.1 3260
iscsicli ListTargets
Targets Lists:
iqn.2008-09.com.example:b37d1bcc-4143-4488-8946-1adeab9dc19e
iscsicli QloginTarget iqn.2008-09.com.example:b37d1bcc-4143-4488-8946-1adeab9dc19e
iscsicli PersistentLoginTarget iqn.2008-09.com.example:b37d1bcc-4143-4488-8946-1adeab9dc19e T * * * * * * * * * * * * * * * 0
iscsicli ListPersistentTargets
iscsicli ReportTargetMappings

Create partition & format

diskpart
DISKPART> rescan
DISKPART> list disk
DISKPART> select disk=1
DISKPART> online
DISKPART> create partition primary
DISKPART> format quick