Advertisement
Guest User

Untitled

a guest
Oct 7th, 2017
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.61 KB | None | 0 0
  1. <root>
  2. <!-- configure target console -->
  3. <console ip="" port="3260" debug_level="6" />
  4.  
  5. <!-- configure the first target -->
  6. <target name="iscsi" ip="192.168.1.10" port="3260" portal="1">
  7. <!-- the first iqn of this target configured for disk array -->
  8. <host name="iqn.2006-11.1" target_pwd="" initiator_pwd="">
  9. <lun id="0" type="0" path="E:pyTargetubuntu16.ima" capacity="81943040" />
  10. </host>
  11. </target>
  12. </root>
  13.  
  14. INFO: pyTarget 1.5.7.1 2010-12-26
  15. INFO: start iSCSI Service ...
  16. INFO: start iSNS Service ...
  17. INFO: initialize virtual device, please wait...
  18. INFO: start Http Service ...
  19. DEBUG: create target iscsi 192.168.1.10 3260 1
  20. DEBUG: create host iqn.2006-11.1
  21. DEBUG: target iscsi add host iqn.2006-11.1
  22. DEBUG: Disk(E:pyTargetubuntu16.ima) : initialize finish!
  23. DEBUG: host iqn.2006-11.1 add lun 0.
  24. DEBUG: configure target done
  25. INFO: initialize finish, start to run ...
  26.  
  27. DEBUG: create connect
  28. INFO: initiator 192.168.1.15:38822 connect.
  29. NEGOTIATION: SessionType = Discovery
  30. NEGOTIATION: TargetName = iscsi
  31. NEGOTIATION: InitiatorName = iqn.2006-11.1
  32. DEBUG: create session 00023d000000-0001.
  33. DEBUG: host iqn.2006-11.1 add session 00023d000000-0001.
  34. INFO: SessionID: 00023d000000-0001
  35. DEBUG: session 00023d000000-0001 add connect 0.
  36. INFO: ConnectID: 0
  37. NEGOTIATION: TargetPortalGroupTag = 1
  38. NEGOTIATION: HeaderDigest = None
  39. NEGOTIATION: DataDigest = None
  40. NEGOTIATION: MaxRecvDataSegmentLength = 32768
  41. NEGOTIATION: TargetMaxRecvdataLength = 65536
  42. NEGOTIATION: ErrorRecoveryLevel = 0
  43. NEGOTIATION: DefaultTime2Retain = 0
  44. NEGOTIATION: DefaultTime2Wait = 2
  45. NEGOTIATION: OFMarker = No
  46. NEGOTIATION: IFMarker = No
  47. DEBUG: connect 0 login finish
  48. COMMAND: Text Request
  49. DEBUG: session 00023d000000-0001 add connect 0.
  50. DEBUG: host iqn.2006-11.1 remove session 00023d000000-0001.
  51. DEBUG: destroy session 00023d000000-0001.
  52. DEBUG: connect 0 finish.
  53. DEBUG: create connect
  54. DEBUG: destroy connect 0
  55. INFO: initiator 192.168.1.15:38824 connect.
  56. NEGOTIATION: SessionType = Discovery
  57. NEGOTIATION: TargetName = iscsi
  58. NEGOTIATION: InitiatorName = iqn.2006-11.1
  59. DEBUG: create session 00023d000000-0002.
  60. DEBUG: host iqn.2006-11.1 add session 00023d000000-0002.
  61. INFO: SessionID: 00023d000000-0002
  62. DEBUG: session 00023d000000-0002 add connect 0.
  63. INFO: ConnectID: 0
  64. NEGOTIATION: TargetPortalGroupTag = 1
  65. NEGOTIATION: HeaderDigest = None
  66. NEGOTIATION: DataDigest = None
  67. NEGOTIATION: MaxRecvDataSegmentLength = 32768
  68. NEGOTIATION: TargetMaxRecvdataLength = 65536
  69. NEGOTIATION: ErrorRecoveryLevel = 0
  70. NEGOTIATION: DefaultTime2Retain = 0
  71. NEGOTIATION: DefaultTime2Wait = 2
  72. NEGOTIATION: OFMarker = No
  73. NEGOTIATION: IFMarker = No
  74. DEBUG: connect 0 login finish
  75. COMMAND: Text Request
  76. DEBUG: session 00023d000000-0002 add connect 0.
  77. DEBUG: host iqn.2006-11.1 remove session 00023d000000-0002.
  78. DEBUG: destroy session 00023d000000-0002.
  79. DEBUG: connect 0 finish.
  80. DEBUG: create connect
  81. DEBUG: destroy connect 0
  82. INFO: initiator 192.168.1.15:38826 connect.
  83. NEGOTIATION: SessionType = Normal
  84. NEGOTIATION: TargetName = iscsi
  85. NEGOTIATION: InitiatorName = iqn.2006-11.1
  86. DEBUG: create session 00023d010000-0003.
  87. DEBUG: host iqn.2006-11.1 add session 00023d010000-0003.
  88. INFO: SessionID: 00023d010000-0003
  89. DEBUG: session 00023d010000-0003 add connect 0.
  90. INFO: ConnectID: 0
  91. NEGOTIATION: TargetPortalGroupTag = 1
  92. NEGOTIATION: TargetAlias = DESKTOP-54T1C9D
  93. NEGOTIATION: HeaderDigest = None
  94. NEGOTIATION: DataDigest = None
  95. NEGOTIATION: MaxRecvDataSegmentLength = 65536
  96. NEGOTIATION: TargetMaxRecvdataLength = 65536
  97. NEGOTIATION: ErrorRecoveryLevel = 0
  98. NEGOTIATION: DefaultTime2Retain = 0
  99. NEGOTIATION: DefaultTime2Wait = 2
  100. NEGOTIATION: OFMarker = No
  101. NEGOTIATION: IFMarker = No
  102. NEGOTIATION: MaxConnections = 1
  103. NEGOTIATION: InitialR2T = Yes
  104. NEGOTIATION: ImmediateData = Yes
  105. NEGOTIATION: DataPDUInOrder = Yes
  106. NEGOTIATION: DataSequenceInOrder = Yes
  107. NEGOTIATION: MaxOutstandingR2T = 1
  108. NEGOTIATION: MaxBurstLength = 262144
  109. NEGOTIATION: FirstBurstLength = 65536
  110. DEBUG: connect 0 login finish
  111. COMMAND: SCSI Request
  112. COMMAND: Inquiry LUN:0
  113. COMMAND: SCSI Request
  114. COMMAND: Inquiry LUN:0
  115. COMMAND: SCSI Request
  116.  
  117. COMMAND: SCSI Request
  118. COMMAND: Write(10) LBA:0x1c40800 LEN:0x8 LUN:0
  119. COMMAND: SCSI Request
  120. COMMAND: Write(10) LBA:0x1c40800 LEN:0x8 LUN:0
  121. COMMAND: SCSI Request
  122. COMMAND: Write(10) LBA:0x1c40800 LEN:0x8 LUN:0
  123. COMMAND: SCSI Request
  124. COMMAND: Write(10) LBA:0x1c40800 LEN:0x8 LUN:0
  125. COMMAND: SCSI Request
  126. COMMAND: Write(10) LBA:0x800 LEN:0x8 LUN:0
  127. COMMAND: SCSI Request
  128. COMMAND: Test Unit Ready LUN:0
  129. COMMAND: SCSI Request
  130. COMMAND: Test Unit Ready LUN:0
  131. # Install ends here
  132. # Client restarts, attempts to boot to the new install:
  133. DEBUG: create connect
  134. INFO: initiator 192.168.1.15:30733 connect.
  135. NEGOTIATION: SessionType = Normal
  136. WARNING: initiator name or target name is INVAILD iqn.2006-11.1
  137. DEBUG: connect 0 finish.
  138.  
  139. (Error code 3c0d61)
  140. This error originated from one of the following locations within the iPXE source code:
  141. net/tcp/iscsi.c (line 1226)
  142. This error indicates an unexpected status received from the iSCSI target.
  143.  
  144. Key/Value Pairs
  145. KeyValue: InitiatorName=iqn.2006-11.1
  146. KeyValue: TargetName=iqn.2006-11.1
  147. KeyValue: SessionType=Normal
  148. KeyValue: AuthMethod=CHAP,None
  149.  
  150. Status: Missing parameter (0x0207)
  151.  
  152. #!ipxe
  153. set iscsi-target iscsi:192.168.1.10::::iqn.2006-11.1
  154. set gateway 0.0.0.0
  155. set initiator-iqn iqn.2007-11.1
  156. set keep-san 1
  157. sanboot ${iscsi-target}
  158. boot
  159.  
  160. <!-- configure the first target -->
  161. <target name="iscsi" ip="192.168.1.10" port="3260" portal="1">
  162. <!-- the first iqn of this target configured for disk array -->
  163. <host name="iqn.2006-11.1" target_pwd="1" initiator_pwd="1"> # <-- Set passwords to avoid NULL problem, this comment was not part of the actual config
  164. <lun id="0" type="0" path="E:pyTargetubuntu16.ima" capacity="81943040" />
  165. </host>
  166. </target>
  167.  
  168. 1. dhcp
  169. 2. login
  170. username: iscsi
  171. password: 1
  172. 3. sanboot iscsi:192.168.1.10::::iqn.2006-11.1
  173.  
  174. iSCSI (Login Command)
  175. Opcode: Login Command (0x03)
  176. 1... .... = T: Transit to next login stage
  177. .0.. .... = C: Text is complete
  178. .... 00.. = CSG: Security negotiation (0x0)
  179. .... ..01 = NSG: Operational negotiation (0x1)
  180. VersionMax: 0x00
  181. VersionMin: 0x00
  182. TotalAHSLength: 0x00
  183. DataSegmentLength: 93 (0x0000005d)
  184. ISID: 40002723b2f3
  185. TSIH: 0x0000
  186. InitiatorTaskTag: 0x18ae0002
  187. CID: 0x0000
  188. CmdSN: 0x00000000
  189. ExpStatSN: 0x00000001
  190. Key/Value Pairs
  191. KeyValue: InitiatorName=iqn.2007-11.1
  192. KeyValue: TargetName=iqn.2006-11.1
  193. KeyValue: SessionType=Normal
  194. KeyValue: AuthMethod=CHAP,None
  195. Padding: 000000
  196.  
  197. iSCSI (Login Response)
  198. Opcode: Login Response (0x23)
  199. 0... .... = T: Stay in current login stage
  200. .0.. .... = C: Text is complete
  201. .... 00.. = CSG: Security negotiation (0x0)
  202. VersionMax: 0x00
  203. VersionActive: 0x00
  204. TotalAHSLength: 0x00
  205. DataSegmentLength: 0 (0x00000000)
  206. ISID: 40002723b2f3
  207. TSIH: 0x0000
  208. InitiatorTaskTag: 0x18ae0002
  209. StatSN: 0x00000001
  210. ExpCmdSN: 0x00000000
  211. MaxCmdSN: 0x00000000
  212. Status: Missing parameter (0x0207)
  213.  
  214. DEBUG: create connect
  215. DEBUG: destroy connect 0
  216. INFO: initiator 192.168.1.15:1552 connect.
  217. NEGOTIATION: SessionType = Normal
  218. NEGOTIATION: TargetName = iscsi
  219. WARNING: InitiatorName %s do not exist. iqn.2007-11.1
  220. DEBUG: connect 0 finish.
  221.  
  222. set initiator-iqn iqn.2006-11.1
  223. sanboot iscsi:192.168.1.10::::iscsi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement