{"id":113,"date":"2011-12-05T21:25:42","date_gmt":"2011-12-05T20:25:42","guid":{"rendered":"http:\/\/labalec.fr\/erwan\/?page_id=113"},"modified":"2014-03-15T14:08:33","modified_gmt":"2014-03-15T13:08:33","slug":"113-2","status":"publish","type":"page","link":"https:\/\/labalec.fr\/erwan\/?page_id=113","title":{"rendered":"Install Windows 7 \/ 2008 (and up) directly to ISCSI with gPXE"},"content":{"rendered":"<p>Steps:<br \/>\n1.The bios Setup<br \/>\n2.The bootstrap loader<br \/>\n3.The ISCSI Target<br \/>\n4.Booting step 1<br \/>\n5.Booting step 2<br \/>\n6.Installing Windows<br \/>\n7.Completing the installation<\/p>\n<p><strong>1.The bios Setup<\/strong><br \/>\nConfigure bios in that order : network,cdrom,disk (or floppy, cdrom, disk if you go for the floppy bootstrap loader option).<br \/>\nNote :<br \/>\n-With vmware virtual server, you need to load your vmxnet driver in order to see your iscsi target.<br \/>\n-It is recommended to load also you vm scsi drivers.<\/p>\n<p><strong>2.The bootstrap loader<\/strong><br \/>\nSetup a dhcp\/pxe server with <a href=\"http:\/\/rom-o-matic.net\/gpxe\/gpxe-git\/gpxe.git\/contrib\/rom-o-matic\/\" target=\"_blank\">gpxe bootstrap loader<\/a> and keep-san vendor option and root path set to iscsi.<br \/>\n(See note at the end of this bullet to go without a dhcp\/tftp server)<\/p>\n<p>-&gt;root path in my case was iscsi:192.168.1.100:tcp:3260:0:test.<\/p>\n<p>-&gt;vendor option is 175.6.1.1.1.8.1.1 (etherboot length 6 code 1 length 1 value 1 code 8 length 1 value 1).<br \/>\n(more details here <a href=\"http:\/\/www.etherboot.org\/wiki\/dhcpd\" target=\"_blank\">http:\/\/www.etherboot.org\/wiki\/dhcpd<\/a><\/p>\n<p>-&gt;Here I use <a href=\"https:\/\/erwan.labalec.fr\/pxesrv.zip\" target=\"_blank\">Tiny PXE Server<\/a> under windows which supports the specific vendor and root-path options.<br \/>\n<img decoding=\"async\" src=\"https:\/\/labalec.fr\/erwan\/images\/pxe_setup2.png\" alt=\"\" \/><br \/>\nSee discussion about this tool <a href=\"http:\/\/reboot.pro\/topic\/18488-tiny-pxe-server\" title=\"Tiny PXE Server at reboot.pro\" target=\"_blank\">here<\/a>.<\/p>\n<p>ps : there is a bug with ms iscsi initiator and the gateway (see here http:\/\/reboot.pro\/15965\/) -> it is recommended not to fill in the router field as done in the picture above<\/p>\n<p>*********** Note *******************************************<br \/>\nAs an option, you can skip the dhcp\/tftp server by using a boot disk (floppy or cdrom) made by gpxe.<br \/>\nSee below.<br \/>\nGo to <a href=\"http:\/\/rom-o-matic.net\/gpxe\/gpxe-git\/gpxe.git\/contrib\/rom-o-matic\">http:\/\/rom-o-matic.net\/gpxe\/gpxe-git\/gpxe.git\/contrib\/rom-o-matic<\/a> ,<br \/>\nchoose floppy image as output format \/ choose \u00ab\u00a0all-drivers\u00a0\u00bb as NIC Type \/ tick time_cmd and digest_cmd, and use the following embedded script :<\/p>\n<p>#!gpxe<br \/>\necho \u00ab\u00a0Greetings! Hit Ctrl-C to bail out.\u00a0\u00bb<br \/>\nsleep 5<br \/>\necho \u00ab\u00a0Going to DHCP on primary network adapter\u00a0\u00bb<br \/>\nifopen net0<br \/>\ndhcp net0<br \/>\nclear net0.dhcp\/gateway:ipv4<br \/>\nset keep-san 1<br \/>\necho \u00ab\u00a0you may replace ${dhcp-server} by an hardcoded IP\u00a0\u00bb<br \/>\necho \u00ab\u00a0you may replace windows by a specific target name\u00a0\u00bb<br \/>\nsanboot iscsi:${dhcp-server}::::windows<br \/>\nboot<\/p>\n<p>Use this boot disk on your physical computer or in your virtual image.<br \/>\nTo make it easy on you, here are the image : <a href=\"https:\/\/erwan.labalec.fr\/iscsi\/gpxe-1.0.1+-gpxe.dsk\">floppy <\/a> <a href=\"https:\/\/erwan.labalec.fr\/iscsi\/gpxe-1.0.1+-gpxe.usb\">usb<\/a> <a href=\"https:\/\/erwan.labalec.fr\/iscsi\/gpxe-1.0.1+-gpxe.iso\">iso<\/a>.<br \/>\n********** end of note ************************************************<\/p>\n<p><strong>3.The ISCSI Target<\/strong><br \/>\nSetup an iscsi target with a blank image file (filled with zero).<\/p>\n<p>-&gt;I use <a href=\"http:\/\/www.rocketdivision.com\/wind.html\" target=\"_blank\">StarWind from RocketDivision<\/a>.<br \/>\n<img decoding=\"async\" src=\"https:\/\/labalec.fr\/erwan\/images\/starwind_setup.jpg\" alt=\"\" \/><br \/>\n<strong>4.Booting step 1<\/strong><br \/>\nLaunch computer : it will boot on network, load gpxe which in turn will try to boot on san (as defined in root path)<\/p>\n<p><strong>5.Booting step 2<\/strong><br \/>\nSanboot will fail to boot on the image file (since it is a blank one)<br \/>\n<img decoding=\"async\" src=\"https:\/\/labalec.fr\/erwan\/images\/gpxe.jpg\" alt=\"\" \/><br \/>\n-&gt;gPXE\/sanboot will then exit and computer will continue with boot from cdrom (as defined in bios)<\/p>\n<p><strong>6.Installing Windows<\/strong><br \/>\nWindows 2008 setup should now see the iscsi target as a local disk (since we use the keep-san gPXE option).<br \/>\nIf not, shift+f10 to go and command prompt and check your network with ipconfig \/all .<\/p>\n<p><strong>7.Completing the installation<\/strong><br \/>\nNext reboot will the computer boot directly on the iscsi target.<br \/>\n<img decoding=\"async\" src=\"https:\/\/labalec.fr\/erwan\/images\/w2k8_setup.jpg\" alt=\"\" \/><br \/>\nGpxe page on w2k8 iscsi install : <a href=\"http:\/\/www.etherboot.org\/wiki\/sanboot\/win2k8_iscsi_install\">http:\/\/www.etherboot.org\/wiki\/sanboot\/win2k8_iscsi_install<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Steps: 1.The bios Setup 2.The bootstrap loader 3.The ISCSI Target 4.Booting step 1 5.Booting step 2 6.Installing Windows 7.Completing the installation 1.The bios Setup Configure bios in that order : network,cdrom,disk (or floppy, cdrom, disk if you go for the floppy bootstrap loader option). Note : -With vmware virtual server, you need to load your <a href='https:\/\/labalec.fr\/erwan\/?page_id=113' class='excerpt-more'>[&#8230;]<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"open","template":"","meta":{"footnotes":""},"categories":[16,10,45],"tags":[],"class_list":["post-113","page","type-page","status-publish","hentry","category-boot","category-iscsi","category-pxe","category-16-id","category-10-id","category-45-id","post-seq-1","post-parity-odd","meta-position-corners","fix"],"_links":{"self":[{"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=\/wp\/v2\/pages\/113","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=113"}],"version-history":[{"count":26,"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=\/wp\/v2\/pages\/113\/revisions"}],"predecessor-version":[{"id":808,"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=\/wp\/v2\/pages\/113\/revisions\/808"}],"wp:attachment":[{"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=113"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=113"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=113"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}