{"id":254929,"date":"2014-10-31T17:19:52","date_gmt":"2014-10-31T09:19:52","guid":{"rendered":"http:\/\/blog.zhenglei.net\/?p=254929"},"modified":"2014-11-03T21:46:04","modified_gmt":"2014-11-03T13:46:04","slug":"setup-iscsi-target-on-ubuntu-10-10","status":"publish","type":"post","link":"https:\/\/blog.zhenglei.net\/?p=254929","title":{"rendered":"Setup iSCSI Target on Ubuntu 10.10"},"content":{"rendered":"<p>Just follow the thread of:<\/p>\n<p><a href=\"http:\/\/linhost.info\/2012\/05\/configure-ubuntu-to-serve-as-an-iscsi-target\/\">http:\/\/linhost.info\/2012\/05\/configure-ubuntu-to-serve-as-an-iscsi-target\/<\/a><\/p>\n<p>&nbsp;<\/p>\n<p>Reference:<\/p>\n<p><a href=\"http:\/\/caia.swin.edu.au\/reports\/130226A\/CAIA-TR-130226A.pdf\">http:\/\/caia.swin.edu.au\/reports\/130226A\/CAIA-TR-130226A.pdf<\/a><\/p>\n<p><a href=\"https:\/\/gist.github.com\/Informatic\/5893973\">https:\/\/gist.github.com\/Informatic\/5893973<\/a><\/p>\n<p><a href=\"http:\/\/blog.zhenglei.net\/wp-content\/uploads\/2014\/10\/CAIA-TR-130226A.pdf\">CAIA-TR-130226A<\/a><\/p>\n<pre># Install iscsi\r\n<strong>sudo apt-get update\r\nsudo apt-get upgrade<\/strong>\r\n<strong>sudo apt-get install iscsitarget<\/strong>\r\n# Squeezy\r\n# apt-get install iscsitarget-dkms\r\n\r\n# Enable iscsi\r\n<strong>sudo sed -i \"s\/false\/true\/\" \/etc\/default\/iscsitarget<\/strong>\r\n\r\n# Add two file as iSCSI storage\r\n#   File1:  \/data\/tmp\/win7_32.img\r\n#   File2:  \/data\/tmp\/win7.img\r\n\r\n# Add following line into <strong>\/etc\/iet\/ietd.conf<\/strong>\r\n<em>Target iqn.2014-10.local.zhenglei:storage.sys0<\/em>\r\n<em>    Lun 0 Path=\/data\/tmp\/win7_32.img,Type=fileio,ScsiId=lun0,ScsiSN=lun0<\/em>\r\n\r\n<em>Target iqn.2014-10.local.zhenglei:storage.sys1<\/em>\r\n<em>    Lun 0 Path=\/data\/tmp\/win7.img,Type=fileio,ScsiId=lun1,ScsiSN=lun1<\/em>\r\n\r\n# Start iSCSI service\r\n<strong>sudo service iscsitarget stop<\/strong>\r\n<strong>sudo service iscsitarget start<\/strong>\r\n\r\n# Testing on Windows7 (built in feature)\r\n# by searching iscsi keyword \r\n\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Just follow the thread of: http:\/\/linhos &hellip; <a href=\"https:\/\/blog.zhenglei.net\/?p=254929\">\u7ee7\u7eed\u9605\u8bfb <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,18,1],"tags":[175,174],"class_list":["post-254929","post","type-post","status-publish","format-standard","hentry","category-linux","category-software-download","category-uncategorized","tag-ipex","tag-iscsi"],"_links":{"self":[{"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=\/wp\/v2\/posts\/254929","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=254929"}],"version-history":[{"count":6,"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=\/wp\/v2\/posts\/254929\/revisions"}],"predecessor-version":[{"id":254936,"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=\/wp\/v2\/posts\/254929\/revisions\/254936"}],"wp:attachment":[{"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=254929"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=254929"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=254929"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}