Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
sanboot:win2k8_iscsi_install [2009/12/28 13:38] mixi |
sanboot:win2k8_iscsi_install [2010/04/20 12:14] jrc3 |
||
---|---|---|---|
Line 12: | Line 12: | ||
- Boot from DVD-ROM. | - Boot from DVD-ROM. | ||
- | ===== Configuring gPXE for iSCSI boot ===== | + | <sub>//If you can't boot from gPXE from your BIOS read: [[/howtos#how_to_deploy_gpxe|How to Deploy gPXE]]. Specifically [[/pxechaining|Boot gPXE for your PXE enabled network card]] and [[/removable#creating_a_bootable_floppy_disk|Loading gPXE from a bootable floppy]] or the ultimate solution [[/romburning|Replace your legacy network card PXE ROM]]//</sub> |
+ | |||
+ | ===== Configure DHCP gPXE options for iSCSI boot ===== | ||
+ | |||
+ | Refer to [[/howtos#how_to_use_advanced_dhcp_options|advanced dhcp options]] | ||
+ | |||
+ | ==== ISC dhcpd ==== | ||
+ | See [[dhcpd]] for more info on the following settings | ||
Place the following lines in ///etc/dhcpd.conf//: | Place the following lines in ///etc/dhcpd.conf//: | ||
Line 29: | Line 36: | ||
root@chipmunk# /etc/init.d/dhcpd restart | root@chipmunk# /etc/init.d/dhcpd restart | ||
+ | |||
+ | ==== Microsoft DHCP Server ==== | ||
+ | See [[msdhcp]] for more info on the following settings | ||
+ | |||
+ | {{:sanboot:msdhcpiscsiwds.png|}} | ||
+ | |||
+ | <sup>NOTE: //The above picture shows settings for a specific windows deployment environment//. Configure your settings to meet your needs.</sup> | ||
+ | |||
+ | Option 17 Root Path iscsi:my.target.dns.name::::iqn.2007-08.name.dns.target.my:iscsiboot | ||
+ | Option 67 Bootfile "" | ||
+ | Option 175 gPXE_Options 08 01 01 FF | ||
+ | |||
+ | Where //freenas1.domain.local// == //my.target.dns.name// == is the DNS name (or IP address) of your iSCSI target, and //iqn.2007-09.local.domain.freenas1.target:disk1// == //iqn.2007-08.name.dns.target.my:iscsiboot// == the iSCSI target IQN that you wish to boot from.\\ | ||
+ | See [[/pxechaining#using_the_windows_dhcp_server|PXE Chaining]] for the two //Option 67// entries pictured above, if your **not** using [[/pxechaining#using_the_windows_dhcp_server|PXE Chaining]] set //Option 67// as a //blank entry//\\ | ||
+ | See [[/msdhcp#setting_up_a_gpxe_encapsulated_options_on_windows_dhcp|gPXE Encapsulated options]] for information on //Option 175//, 08 01 01 FF is the Hex entry for //keep-san 1// | ||
===== Starting the installation ===== | ===== Starting the installation ===== | ||
Line 37: | Line 59: | ||
{{ :screenshots:win2k8_iscsi_install.png?800x600 |Windows Server 2008 installation disk selection}} | {{ :screenshots:win2k8_iscsi_install.png?800x600 |Windows Server 2008 installation disk selection}} | ||
- | |||
===== Alternative Method (using WinPE) ===== | ===== Alternative Method (using WinPE) ===== | ||
- | some BIOS programs will not fall back to another boot device after loading gPXE. | + | Some BIOS programs will not fall back to another boot device after loading gPXE. |
- | in such cases, you can proceed by executing [[:winpe|pxe boot to WinPE 2.1]]. | + | In such cases, you can proceed by executing [[:winpe|pxe boot to WinPE 2.1]]. |
(make sure it's WinPE 2.1, WinPE 2.0 won't detect iSCSI drives) | (make sure it's WinPE 2.1, WinPE 2.0 won't detect iSCSI drives) | ||
- | after you've reached the WinPE command prompt, you can execute setup.exe from the installation media or network share. (this method was tested with Windows Server 2008 x86, Windows 7 x86 and Windows 7 x64) | + | After you've reached the WinPE command prompt, you can execute setup.exe from the installation media or network share. (this method was tested with Windows Server 2008 x86, Windows 7 x86 and Windows 7 x64. For installing Windows 7, you will probably want to try using WinPE 3.0 instead of 2.1) |
- | the required gPXE command sequence to achieve this should be like: | + | The required gPXE command sequence to achieve this should be like: |
<code> | <code> | ||
dhcp net0 | dhcp net0 | ||
Line 84: | Line 105: | ||
After some curious stuff enter torito and enter. Now it starts of your Windows 2008 DVD. | After some curious stuff enter torito and enter. Now it starts of your Windows 2008 DVD. | ||
- | (May hang, just try again and again by pressing enter) | + | (May show error if dvd drive is not ready yet. Just try by pressing enter again and again) |
===== Completing the installation ===== | ===== Completing the installation ===== | ||
Line 112: | Line 133: | ||
iptables -A forwarding_lan -i br-lan -o br-lan -j ACCEPT | iptables -A forwarding_lan -i br-lan -o br-lan -j ACCEPT | ||
+ | |||
+ | To avoid that behaviour, put your iSCSI into it's very own subnet and omit a gateway. Like say your LAN is 192.168.1.0, you could say target is 192.168.**2**.1 and initiator 192.168.**2**.2. Configure your DHCP server accordingly and windows won't do that curious explicit route (static route). | ||
**NOTE:** With Windows 7 the above routing problem affects normal boot as well, not just the setup. | **NOTE:** With Windows 7 the above routing problem affects normal boot as well, not just the setup. |