Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ipxe iscsi boot fails, even in virtualbox
2014-01-17, 10:03
Post: #2
RE: ipxe iscsi boot fails, even in virtualbox
Where are you actually telling iPXE to boot from the root-path? Because with the information given, I don't think you are. You're close, however.

It looks like you're trying to run iPXE like syslinux. While that is a workable approach, you're going to have to embed some scripts to get it to do what you want. Without a script to run, iPXE is one sad bootloader.

To get iPXE to boot from an iSCSI target, you need:

1) A valid IP address at the initiator side:

e.g.

Code:
dhcp net0
Documentation on this is here.

2) Then you will need to "hook" the IQN which you have given as 'root-path':

e.g.

Code:
sanboot --drive 0x80 ${root-path}
Documentation is here.


What you probably want to do is embed a script into iPXE which does this for you. Better yet, embed a script which calls a script which does this for you:

e.g.
Code:
touch myscript.ipxe

And place into it something like:

Code:
#!ipxe
dhcp net0
chain http://somewebserver.on.your.network/${net0/mac:hexhyp}.ipxe


To embed a script into iPXE, use the following arguments at compile time:

Code:
make bin/undionly.kpxe EMBED=myscript.ipxe
Documentation on this is here.

And then create a file with your MAC in that directory on the server http://somewebserver.on.your.network:

e.g.

Code:
touch 08-00-27-f0-87-56.ipxe
Documentation on chainloading is here.

And place into it something like:

Code:
#!ipxe
sanboot --drive 0x80 ${root-path}

If you're going to try to iSCSI boot Windows, you might want to try reading up on some issues you may run into here.

Specifically, you may want to set in your chainloaded script (08-00-27-f0-87-56.ipxe), the following statement:

Code:
net0/gateway 0.0.0.0

For a script consisting of:

Code:
#!ipxe
net0/gateway 0.0.0.0
sanboot --drive 0x80 ${root-path}


Make sure you read the WDS page to understand what is going on (and why Microsoft is/are off their bloody rocker).

That should get you going.

Best,

M^3

"Thus far, you have been adrift within the sheltered harbor of my patience..."
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: ipxe iscsi boot fails, even in virtualbox - MultimediaMan - 2014-01-17 10:03



User(s) browsing this thread: 1 Guest(s)