The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 807 - File: showthread.php PHP 7.3.15 (Linux)
File Line Function
/showthread.php 807 errorHandler->error





Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Server Variables Not Resolving Reliably
2017-11-13, 12:05
Post: #1
Server Variables Not Resolving Reliably
I am booting a Hyper-V guest using Tiny PXE Server.

My iPXE script starts

Code:
#!ipxe
set BootServer http://${dhcp-server}

However, BootServer and dhcp-server do not working later in the script, I always receive could not boot image, file not found.

Code:
initrd ${BootServer}/boot/BCD
initrd ${BootServer}/boot/boot.sdi
initrd ${BootServer}/sources/boot.wim

If i hard code the ip in the following then it boots fine.

Code:
initrd http://10.0.1.62/boot/BCD
initrd http://10.0.1.62/boot/boot.sdi
initrd http://10.0.1.62/sources/boot.wim

I am using a menu, and so to check the variable I use it in the Menu Title and it displays the correct http://10.0.1.62

Why are these variables not working??

iPXE 1.0.0+ (30f9)
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Server Variables Not Resolving Reliably - MikhailCompo - 2017-11-13 12:05



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