Is your old account not working? Don't panic, please register again!

*New 11.4 series Release:
2020-05-29: XigmaNAS 11.4.0.4.8453 - released!

*New 12.2 series Release:
2021-05-31: XigmaNAS 12.2.0.4.8458- released!

We really need "Your" help on XigmaNAS Language https://translations.launchpad.net/xigmanas packages. Please help us today!

XigmaNAS talks on IRC https://web.libera.chat/#xigmanas, ircs://irc.libera.chat:6697 (TLS) or irc://irc.libera.chat:6667 (plain text)

[How to] SAN boot (iSCSI target direct boot) using gPXE

Only Admin's or Moderators can move thread's to this sub-forum.
Nobody should start a new thread on this sub-forum.
Anybody can reply to a thread on this sub-forum.
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
Hiji56
Advanced User
Advanced User
Posts: 170
Joined: Feb 13th, '21, 11:33
Status: Offline

[How to] SAN boot (iSCSI target direct boot) using gPXE

#1

Post by Hiji56 »

"
by alexey123»07 Oct 2012 11:51
From old forum
Postby daoyama » Wed Mar 03, 2010 4:33 pm
I tested with gPXE 1.0.0 and FreeNAS 0.7.1 5053(istgt-20100125) and physical machine.
But you can also boot virtual machine of course.
You can get own image from:
""http://rom-o-matic.net/""
Select image format. (I used Floppy and PXE)
Click ""Customize"" button.
Add SAN boot information in Embedded Script.
Click ""Get Image"".
Write the image to boot media and boot from it!
Here is a template of script.
DHCP root-path syntax:
Code: Select all

Code: Select all

 iscsi:<IP>:<PROTOCOL>:<PORT>:<LUN>:<TARGET>
You can omit a standard value.
(PROTOCOL=TCP(6), PORT=3260, LUN=0)
for example using DHCP, TARGET IP=192.168.2.222:
Code: Select all

Code: Select all

 #!gpxe
    ifopen net0
    dhcp net0
    set keep-san 1
    sanboot iscsi:192.168.2.222::::iqn.2007-09.jp.ne.peach.istgt:freenas222:disk5
for example using static IP(192.168.2.123):
Code: Select all

Code: Select all

    #!gpxe
    ifopen net0
    set net0/ip 192.168.2.123
    set net0/netmask 255.255.255.0
    set net0/gateway 192.168.2.1
    set net0/dns 192.168.2.1
    set keep-san 1
    sanboot iscsi:192.168.2.222::::iqn.2007-09.jp.ne.peach.istgt:freenas222:disk5
FreeNAS iSCSI target:
001.jpg
FreeNAS43.jpg
FreeNAS43.jpg (22.23 KiB) Viewed 4325 timesThis picture lost (restored)
Note:
If your DHCP server can be configured, put root-path of DHCP option directly instead of customize.
If you have PXE server and TFTP sevrer, you can boot gPXE from NIC BIOS directly.
Thus, you can boot from iSCSI target without any device!
I plan to make PXE/TFTP server add-on for FreeNAS for easy testing.
See the link for more detail:
""http://etherboot.org/wiki/sanboot""
""http://etherboot.org/wiki/sanboot/iscsi_install""
I hope this helps you. Enjoy it.
Daisuke Aoyama
From me.
gPXE method can boot from any media - such USB flash, floppy, TFTP and FROM Ethernet card BOOT ROM
Over http, tftp, https, ftp, aoe, iscsi..
002.jpg
Last edited by daoyama on 23 Oct 2012 13:22, edited 1 time in total.
Reason:[/b] I found the image.
"
Post Reply