Izmalkov, Vladimir
2014-Jan-24 11:49 UTC
[syslinux] Need solution to use environment variable
Hello All.
I need make one configuration for many PXE servers. All of them has different
IP`s.
Will be best is somehow in menu will be possible to have environment variable
with server ip.
Example:
Pxelinux.cfg\Default
UI vesamenu.c32
MENU INCLUDE pxelinux.cfg/graphics.conf
MENU INCLUDE pxelinux.cfg/server.menu
..
Skip
..
label default
MENU LABEL ^Custom ISO
COM32 cmd.c32
APPEND KERNEL http://SName/sources/common/pxe/memdisk iso raw initrd
http://SName/sources/iso/CustomPE/Custom.iso (not working)
Pxelinux.cfg\server.menu
LABEL SName
10.55.98.127
Using pxelinux 6.02
Thanks a lot for any help !!!!
Thanks.
Vladimir Izmalkov
On Fri, Jan 24, 2014 at 6:49 AM, Izmalkov, Vladimir <vladimir.izmalkov at sap.com> wrote:> Hello All. > > I need make one configuration for many PXE servers. All of them has different IP`s. > > Will be best is somehow in menu will be possible to have environment variable with server ip.No, not directly.> Example: > > Pxelinux.cfg\Default > > UI vesamenu.c32 > MENU INCLUDE pxelinux.cfg/graphics.conf > MENU INCLUDE pxelinux.cfg/server.menu > .. > Skip > .. > label default > MENU LABEL ^Custom ISO > COM32 cmd.c32 > APPEND KERNEL http://SName/sources/common/pxe/memdisk iso raw initrd http://SName/sources/iso/CustomPE/Custom.iso (not working) > > Pxelinux.cfg\server.menu > LABEL SName > 10.55.98.127 > > Using pxelinux 6.02PXELINUX won't be able to utilize HTTP URLs UNLESS you're actually using lpxelinux.0 OR have gPXE/iPXE active. If you are able to use HTTP URLs, you should consider passing option 209 and/or option 210 to your booting systems. It may help to also encapsulate it so your DHCP server always provides it. Once you do this, several options open up. 1) just use 210 to change the working directory. 2) Let a web system take care of the content, dynamically or statically. -- -Gene