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

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

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

We really need "Your" help on XigmaNAS Language packages. Please help us today!

XigmaNAS talks on IRC, ircs:// (TLS) or irc:// (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
Advanced User
Advanced User
Posts: 170
Joined: Feb 13th, '21, 11:33
Status: Offline

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


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:
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

You can omit a standard value.
for example using DHCP, TARGET IP=
Code: Select all

Code: Select all

    ifopen net0
    dhcp net0
    set keep-san 1
for example using static IP(
Code: Select all

Code: Select all

    ifopen net0
    set net0/ip
    set net0/netmask
    set net0/gateway
    set net0/dns
    set keep-san 1
FreeNAS iSCSI target:
FreeNAS43.jpg (22.23 KiB) Viewed 4325 timesThis picture lost (restored)
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:
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..
Last edited by daoyama on 23 Oct 2012 13:22, edited 1 time in total.
Reason:[/b] I found the image.
Post Reply