Continuing in your SSH session with the virtual machine, launch YaST2 by entering
yast2
In YaST2, go to > .
YaST opens to the iSCSI Target Overview page with the tab selected.
Under , select .
This option is needed to automatically start the Linux iSCSI Initiator service on subsequent server restarts.
Press Alt+G to go to the section.
In the section, leave the target device open for anonymous connections by selecting .
In a production environment, you can set credentials to make the connection more secure.
Press Alt+T to go to the section.
In the section, press Alt+A to select .
An example iSCSI target device (iqn.2001-04.com.example:storage.disk2.sys1.xyz) appears in the list. This is not your device. Each iSCSI target device has a unique IQN (iSCSI qualified name).
Press Alt+A to add a new iSCSI target.
Specify the settings for the iSCSI target device:
Specify the LUN value. The default is 0.
Specify as . This is the default.
Specify the as /dev/sdf (or the path value you specified in the EBS setup).
Select to continue.
Select , select , then select when you are prompted to restart the iSCSI Target service with the following command:
rciscsitarget restart
Select to exit YaST.
Use either of the following methods to view the IQN for the iSCSI device you created:
Launch YaST2, and go to > .
View the device entry in the /etc/ietd.conf file by using the cat command.
The target device’s IQN has a fixed syntax that looks like the following:
iqn.yyyy-mm.<reversed domain name>:unique_id
(Optional) Modify the IQN by opening the /etc/ietdf.conf file in a vi text editor to specify a unique_id value that satisfies your company naming conventions. The name must be globally unique within your network.
For example:
iqn.2010-04.com.amazonaws.xxxxxx-1.ec2-xxx-xxx-xxx-xxx-xx.:storage.disk2.sys1.xyz
Record the IQN of the target device.
You need the IQN later to connect the target device to the Windows server.
Exit the SSH session.
Continue with Section A.11, Configuring the iSCSI Initiator Software on a Windows Server.