[ipxe-devel] iPXE looping when gPXE does not

Joshua Oreman oremanj at MIT.EDU
Wed Jan 26 18:08:40 UTC 2011


On Wed, Jan 26, 2011 at 1:03 PM, James A. Peltier <jpeltier at sfu.ca> wrote:
> Didn't work.  There must be something else going on here.

If your DHCP server is configured to send something different on
user-class "gPXE", you should be aware that iPXE sends user-class
"iPXE" instead.

Josh

>
> ----- Original Message -----
> | Thanks, I'll give that a try today. ;)
> |
> | ----- Original Message -----
> | | On Wednesday 26 Jan 2011 07:08:21 James A. Peltier wrote:
> | | > I'm trying to move from gPXE to iPXE and I seem to be having
> | | > difficulty.
> | | >  In gPXE the following script works and does not get into a
> | | >  constant
> | | >  loop,
> | | >  however, with iPXE it goes into a never ending loop. Am I missing
> | | >  something here??
> | | >
> | | > #!ipxe
> | | >
> | | > echo "Hi There! We will be booting from http://mirror.its.sfu.ca/
> | | > today."
> | | > echo "It is assumed that you have dhcp networking."
> | | >
> | | > autoboot
> | |
> | | Are you sure you want "autoboot" in here? The script should never
> | | continue
> | | beyond this point, in either gPXE or iPXE, since autoboot will
> | | either
> | | fail or
> | | never return.
> | |
> | | I assume you're trying to acquire an address via DHCP, in which case
> | | maybe
> | | something like:
> | |
> | | #!ipxe
> | | echo "Hi There! We will be booting from http://mirror.its.sfu.ca/
> | | today."
> | | echo "It is assumed that you have dhcp networking."
> | | dhcp
> | | set 209:string pxelinux.cfg/default
> | | set 210:string http://mirror.its.sfu.ca/tftpboot/
> | | echo "Here we go!"
> | | chain http://mirror.its.sfu.ca/tftpboot/pxelinux.0
> | |
> | | might work for you?
> | |
> | | Also, with iPXE you could look into making the script more robust by
> | | handling
> | | DHCP errors etc. For example:
> | |
> | | #!ipxe
> | | echo "Hi There! We will be booting from http://mirror.its.sfu.ca/
> | | today."
> | | echo "It is assumed that you have dhcp networking."
> | | :retry
> | | dhcp || goto retry
> | | set 209:string pxelinux.cfg/default
> | | set 210:string http://mirror.its.sfu.ca/tftpboot/
> | | echo "Here we go!"
> | | chain http://mirror.its.sfu.ca/tftpboot/pxelinux.0 || goto retry
> | |
> | | which would cause both DHCP and the HTTP download to be retried
> | | indefinitely if
> | | e.g. the server were to be temporarily offline.
> | |
> | | Michael
> |
> | --
> | James A. Peltier
> | Research Computing Group
> | Simon Fraser University - Burnaby Campus
> | Phone : 778-782-6573
> | Fax : 778-782-3045
> | E-Mail : jpeltier at sfu.ca
> | Website : http://www.sfu.ca/itservices
> | http://blogs.sfu.ca/people/jpeltier
> |
> |
> | _______________________________________________
> | ipxe-devel mailing list
> | ipxe-devel at lists.ipxe.org
> | https://lists.ipxe.org/mailman/listinfo/ipxe-devel
>
> --
> James A. Peltier
> Research Computing Group
> Simon Fraser University - Burnaby Campus
> Phone   : 778-782-6573
> Fax     : 778-782-3045
> E-Mail  : jpeltier at sfu.ca
> Website : http://www.sfu.ca/itservices
>          http://blogs.sfu.ca/people/jpeltier
>
>
> _______________________________________________
> ipxe-devel mailing list
> ipxe-devel at lists.ipxe.org
> https://lists.ipxe.org/mailman/listinfo/ipxe-devel
>



More information about the ipxe-devel mailing list