{"id":423,"date":"2013-08-29T19:12:13","date_gmt":"2013-08-29T17:12:13","guid":{"rendered":"http:\/\/labalec.fr\/erwan\/?p=423"},"modified":"2014-03-01T15:18:00","modified_gmt":"2014-03-01T14:18:00","slug":"how-to-install-windows-7-or-8-thru-winpe-via-pxe-onto-iscsi","status":"publish","type":"post","link":"https:\/\/labalec.fr\/erwan\/?p=423","title":{"rendered":"How to install Windows (7 or 8) thru WINPE, via PXE, onto ISCSI"},"content":{"rendered":"<p><span style=\"text-decoration: underline;\">Agenda<\/span><\/p>\n<ul>\n<li>Prepare winpe (3 or 4) with <a href=\"http:\/\/reboot.pro\/topic\/18744-quickpe\/\" target=\"_blank\">QuickPE<\/a><\/li>\n<li>Prepare the <a href=\"http:\/\/ipxe.org\/\" target=\"_blank\">ipxe<\/a> script<\/li>\n<li>Prepare the PXE server with <a href=\"http:\/\/reboot.pro\/topic\/18488-tiny-pxe-server\/\" target=\"_blank\">TinyPxe Server<\/a><\/li>\n<li>Prepare the ISCSI target<\/li>\n<li>Boot to winpe, prepare the drive, and Install windows<\/li>\n<li>Reboot to your target !<\/li>\n<\/ul>\n<p>Note that we have already covered installing win7 (or win8) directly to an ISCSI target : <a href=\"https:\/\/labalec.fr\/erwan\/?page_id=113\" target=\"_blank\">here<\/a>.<\/p>\n<p>However, there are times where yoy may not have a dvd drive or media available, or else, you may also want to perform some tasks before triggering the windows setup.<\/p>\n<p><strong>Prepare winpe (3 or 4) with QuickPE<\/strong><br \/>\nYou can either use MS WAIK (winpe3), or MS ADK (winpe4) or an existing windows setup DVD or ISO file.<br \/>\nLaunch _run_me.cmd and make your choice.<\/p>\n<p><a href=\"https:\/\/labalec.fr\/erwan\/wp-content\/uploads\/2013\/08\/quickpe_menu.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-438\" alt=\"quickpe_menu\" src=\"https:\/\/labalec.fr\/erwan\/wp-content\/uploads\/2013\/08\/quickpe_menu-300x151.png\" width=\"300\" height=\"151\" srcset=\"https:\/\/labalec.fr\/erwan\/wp-content\/uploads\/2013\/08\/quickpe_menu-300x151.png 300w, https:\/\/labalec.fr\/erwan\/wp-content\/uploads\/2013\/08\/quickpe_menu.png 684w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p><strong>Prepare the ipxe script<\/strong><br \/>\nThe following will attach an iscsi drive and will boot your winpe<\/p>\n<p><code><br \/>\n#!ipxe<br \/>\ndhcp net0<br \/>\nset gateway 0.0.0.0<br \/>\nset keep-san 1<br \/>\nsanhook iscsi:192.168.1.248:tcp:3260:0:iqn.2000-01.com.synology:test<br \/>\nset boot-url http:\/\/${dhcp-server}<br \/>\ninitrd ${boot-url}\/images\/winre.iso<br \/>\nkernel ${boot-url}\/memdisk iso raw<br \/>\nboot<br \/>\n<\/code><\/p>\n<p><strong>Prepare the PXE server with TinyPxe Server<\/strong><br \/>\nUse ipxe-undionly.kpxe as \u00ab\u00a0boot file name\u00a0\u00bb and the above script (name it install.ipxe) as \u00ab\u00a0filename if user-class=iPXE\u00a0\u00bb<\/p>\n<p><a href=\"https:\/\/labalec.fr\/erwan\/wp-content\/uploads\/2013\/08\/tinypxeserver.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-440\" alt=\"tinypxeserver\" src=\"https:\/\/labalec.fr\/erwan\/wp-content\/uploads\/2013\/08\/tinypxeserver-260x300.png\" width=\"260\" height=\"300\" srcset=\"https:\/\/labalec.fr\/erwan\/wp-content\/uploads\/2013\/08\/tinypxeserver-260x300.png 260w, https:\/\/labalec.fr\/erwan\/wp-content\/uploads\/2013\/08\/tinypxeserver.png 480w\" sizes=\"auto, (max-width: 260px) 100vw, 260px\" \/><\/a><\/p>\n<p><strong>Prepare the ISCSI target<\/strong><br \/>\nThere you can either use <a href=\"http:\/\/www.starwindsoftware.com\/starwind-free\" target=\"_blank\">starwind target free edition<\/a> or any other target (many home nas device do have that feature also).<br \/>\nThe target should be at least 8GB.<\/p>\n<p><a href=\"https:\/\/labalec.fr\/erwan\/wp-content\/uploads\/2013\/08\/starwind_setup.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-452\" alt=\"starwind_setup\" src=\"https:\/\/labalec.fr\/erwan\/wp-content\/uploads\/2013\/08\/starwind_setup-300x98.jpg\" width=\"300\" height=\"98\" srcset=\"https:\/\/labalec.fr\/erwan\/wp-content\/uploads\/2013\/08\/starwind_setup-300x98.jpg 300w, https:\/\/labalec.fr\/erwan\/wp-content\/uploads\/2013\/08\/starwind_setup-1024x336.jpg 1024w, https:\/\/labalec.fr\/erwan\/wp-content\/uploads\/2013\/08\/starwind_setup.jpg 1050w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p><strong>Boot to Winpe, prepare the drive<\/strong><br \/>\nNow lets network boot (pxe as first device in the bios).<br \/>\nComputer will pxe boot, load ipxe, then load your script.<br \/>\nThe script will atatch your iscsi target and boot into winpe.<br \/>\nNote : you need one physical disk in your computer or else winpe might reboot in a loop. Also the windows setup will not go pass the disk selection if not physical disk is present.<\/p>\n<p>Once in Winpe you should see your iscsi target listed as a physical drive : to check this, launch <a href=\"http:\/\/reboot.pro\/topic\/8480-clonedisk\/\" target=\"_blank\">CloneDisk<\/a> or <a href=\"http:\/\/support.microsoft.com\/kb\/300415\/en-us\" target=\"_blank\">diskpart<\/a>.<\/p>\n<p>Fist, lets create a disk, then lets create a (active) partition and finally lets format it : you can do all this with CloneDisk or diskpart.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-447\" alt=\"clonedisk_iscsi\" src=\"https:\/\/labalec.fr\/erwan\/wp-content\/uploads\/2013\/08\/clonedisk_iscsi-300x206.png\" width=\"300\" height=\"206\" srcset=\"https:\/\/labalec.fr\/erwan\/wp-content\/uploads\/2013\/08\/clonedisk_iscsi-300x206.png 300w, https:\/\/labalec.fr\/erwan\/wp-content\/uploads\/2013\/08\/clonedisk_iscsi.png 648w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><br \/>\nThen Lets also take care of the MBR and BS either with \u00ab\u00a0<a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/cc749177(v=ws.10).aspx\" target=\"_blank\">bootsect.exe<\/a> \/nt60 c: \/MBR\u00a0\u00bb or with bootice or with CloneDisk.<\/p>\n<p>Finally lets also create the bcd store with the following \u00ab\u00a0bcdboot x:\\windows \/s c:\u00a0\u00bb.\u00a0C: is your iscsi disk, X: is your winpe disk.<br \/>\nAnother alternative is to copy the bcd folder and the bootmgr file from your dvd to your target drive.<br \/>\nThen edit c:\\boot\\bcd with <a href=\"http:\/\/reboot.pro\/topic\/8986-bootice-a-boot-sector-manipulation-utility-v078-released\/\" target=\"_blank\">bootice <\/a>or <a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/cc709667(v=ws.10).aspx\" target=\"_blank\">bcdedit <\/a>and add a default win7 entry.<\/p>\n<p>Now we are ready to perform the installation : map a drive thanks to PeNetwork (in the tinyshell launchbar) and either map a dvd shared over the network or an iso found in a network share.<br \/>\nNote : CloneDisk can also mount a virtual dvd driver from an iso file (only in winpe4).<\/p>\n<p>Launch the windows setup and let it run : you should find your iscsi drive there.<\/p>\n<p><a href=\"https:\/\/labalec.fr\/erwan\/wp-content\/uploads\/2013\/08\/screenshot.7.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-454\" alt=\"screenshot.7\" src=\"https:\/\/labalec.fr\/erwan\/wp-content\/uploads\/2013\/08\/screenshot.7-300x225.jpg\" width=\"300\" height=\"225\" srcset=\"https:\/\/labalec.fr\/erwan\/wp-content\/uploads\/2013\/08\/screenshot.7-300x225.jpg 300w, https:\/\/labalec.fr\/erwan\/wp-content\/uploads\/2013\/08\/screenshot.7.jpg 1024w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p><strong>Boot to your ISCSI target via PXE<\/strong><br \/>\nHere comes your second ipxe script, name it boot.ipxe and use it within Tiny PXE Server :<br \/>\n<code>#!ipxe<br \/>\ndhcp net0<br \/>\nset gateway 0.0.0.0<br \/>\nset keep-san 1<br \/>\nsanboot iscsi:192.168.1.248:tcp:3260:0:iqn.2000-01.com.synology:test<br \/>\n<\/code><br \/>\nWindows should the complete the installation, and reboot one last to your windows desktop.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Agenda Prepare winpe (3 or 4) with QuickPE Prepare the ipxe script Prepare the PXE server with TinyPxe Server Prepare the ISCSI target Boot to winpe, prepare the drive, and Install windows Reboot to your target ! Note that we have already covered installing win7 (or win8) directly to an ISCSI target : here. However, <a href='https:\/\/labalec.fr\/erwan\/?p=423' class='excerpt-more'>[&#8230;]<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16,10,45,28,21],"tags":[],"class_list":["post-423","post","type-post","status-publish","format-standard","hentry","category-boot","category-iscsi","category-pxe","category-tinypxe-server","category-winpe","category-16-id","category-10-id","category-45-id","category-28-id","category-21-id","post-seq-1","post-parity-odd","meta-position-corners","fix"],"_links":{"self":[{"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=\/wp\/v2\/posts\/423","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=\/wp\/v2\/types\/post"}],"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=423"}],"version-history":[{"count":27,"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=\/wp\/v2\/posts\/423\/revisions"}],"predecessor-version":[{"id":455,"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=\/wp\/v2\/posts\/423\/revisions\/455"}],"wp:attachment":[{"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=423"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=423"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=423"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}