{"id":1864,"date":"2018-11-02T14:33:31","date_gmt":"2018-11-02T13:33:31","guid":{"rendered":"http:\/\/labalec.fr\/erwan\/?p=1864"},"modified":"2018-11-02T15:02:30","modified_gmt":"2018-11-02T14:02:30","slug":"having-fun-with-starwind-virtual-san-free-and-differencing-virtual-disks-article-1","status":"publish","type":"post","link":"https:\/\/labalec.fr\/erwan\/?p=1864","title":{"rendered":"Having fun with StarWind Virtual SAN Free and differencing virtual disks : article #1"},"content":{"rendered":"<p>See previous <a href=\"https:\/\/labalec.fr\/erwan\/?p=1862\" target=\"_blank\" rel=\"noopener\">article <\/a>to understand why and what.<\/p>\n<p>In this article, we will see how to create our master \/ parent VHD and how to install windows onto this disk.<\/p>\n<p>To manipulate virtual hard disks on the command line, i use <a href=\"https:\/\/labalec.fr\/erwan\/?p=922\" target=\"_blank\" rel=\"noopener\">vmount<\/a>.<\/p>\n<p>Create parent vhd<br \/>\n<strong>vmount createdynamic e:\\_images\\iscsi.vhd 102400<\/strong><br \/>\nAttach vhd as physical disk without a drive letter<br \/>\n<strong>vmount attach e:\\_images\\iscsi.vhd NOLETTER<\/strong><br \/>\nCheck it out<br \/>\n<strong>vmount disks<\/strong><\/p>\n<p><a href=\"https:\/\/i.imgur.com\/wPBlfgO.png\" target=\"_blank\"><img decoding=\"async\" src=\"https:\/\/i.imgur.com\/wPBlfgO.png\" alt=\"\" \/><\/a><\/p>\n<p>At this stage, we have a new \\\\.\\physicaldriveX on your host which we can use within our iscsi target (using <a href=\"https:\/\/www.starwindsoftware.com\/download-starwind-products#free-products\" rel=\"noopener\" target=\"_blank\">Starwind San Free<\/a>).<\/p>\n<p><a href=\"https:\/\/imgur.com\/C4eh8Rk.png\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"\" src=\"https:\/\/imgur.com\/C4eh8Rk.png\" alt=\"\" width=\"540\" height=\"271\" \/><\/a><\/p>\n<p><a href=\"https:\/\/imgur.com\/KCFg6wx.png\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"\" src=\"https:\/\/imgur.com\/KCFg6wx.png\" alt=\"\" width=\"539\" height=\"269\" \/><\/a><\/p>\n<p>Last step, lets boot our diskless computer to install windows.<br \/>\nTo do this, I will use <a href=\"http:\/\/reboot.pro\/topic\/18488-tiny-pxe-server\/\" rel=\"noopener\" target=\"_blank\">TinyPXE <\/a>Server and iPxe.<br \/>\nI also use <a href=\"http:\/\/reboot.pro\/topic\/18744-quickpe\/\" rel=\"noopener\" target=\"_blank\">QuickPE <\/a>to customize my winpe (but default ms waik or adk will do as well).<\/p>\n<p><strong>First boot : we will attach our iscsi disk then boot our WinPE from where we will launch windows setup (over a network share)<\/strong><\/p>\n<p><code><br \/>\n #!ipxe<br \/>\n #dhcp net0<br \/>\n  clear net0.dhcp\/gateway:ipv4<br \/>\n set keep-san 1<br \/>\n sanhook iscsi:${next-server}:tcp:3260:0:iqn.2008-08.com.starwindsoftware:erwan-pc2-master<br \/>\n set boot-url http:\/\/${dhcp-server}<br \/>\n echo ${platform}_${buildarch}<br \/>\n  kernel ${boot-url}\/wimboot<br \/>\n  iseq ${platform} pcbios && initrd -n bootmgr.exe  ${boot-url}\/BOOTMGR.EXE  bootmgr.exe ||<br \/>\n  iseq ${platform} efi    && initrd -n bootmgfw.efi  ${boot-url}\/bootmgfw.EFI  bootmgfw.efi ||<br \/>\n  iseq ${platform} pcbios && initrd -n bcd  ${boot-url}\/BOOT\/BCD  bcd ||<br \/>\n  iseq ${platform} efi    && initrd -n bcd  ${boot-url}\/EFI\/MICROSOFT\/BOOT\/BCD  bcd ||<br \/>\n  initrd ${boot-url}\/BOOT\/BOOT.SDI    BOOT.SDI<br \/>\n  iseq ${platform} pcbios && initrd -n boot.wim  ${boot-url}\/SOURCES\/x86\/BOOT.WIM BOOT.WIM ||<br \/>\n  iseq ${platform} efi    && initrd -n boot.wim  ${boot-url}\/SOURCES\/x64\/BOOT.WIM BOOT.WIM ||<br \/>\n  boot<br \/>\n<\/code><\/p>\n<p><strong>Second boot : lets boot to complete the windows installation<\/strong><\/p>\n<p><code><br \/>\n#!ipxe<br \/>\n#dhcp<br \/>\nclear net0.dhcp\/gateway:ipv4<br \/>\nset initiator-iqn iqn.2006-11.1<br \/>\nset keep-san 1<br \/>\nsanboot --keep iscsi:${next-server}:tcp:3260:0:iqn.2008-08.com.starwindsoftware:erwan-pc2-master<br \/>\n<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>See previous article to understand why and what. In this article, we will see how to create our master \/ parent VHD and how to install windows onto this disk. To manipulate virtual hard disks on the command line, i use vmount. Create parent vhd vmount createdynamic e:\\_images\\iscsi.vhd 102400 Attach vhd as physical disk without <a href='https:\/\/labalec.fr\/erwan\/?p=1864' 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,28,21],"tags":[],"class_list":["post-1864","post","type-post","status-publish","format-standard","hentry","category-boot","category-iscsi","category-tinypxe-server","category-winpe","category-16-id","category-10-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\/1864","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=1864"}],"version-history":[{"count":15,"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=\/wp\/v2\/posts\/1864\/revisions"}],"predecessor-version":[{"id":1882,"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=\/wp\/v2\/posts\/1864\/revisions\/1882"}],"wp:attachment":[{"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1864"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1864"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1864"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}