Server
- FOG Version: 1.3.0
- OS: CentOS 7
Description
I need to host a Fog and SCCM server on the same network subnet. To achieve this I went through the steps to add a PXE Boot Menu allowing a PXE chain to the FOG server. I used https://rom-o-matic.eu/ to edit the undionly.kpxe to set the fog server address using this script:
#!ipxe
set fogserver x.x.x.x
isset ${net0/mac} && dhcp net0 || goto dhcpnet1
echo Received DHCP answer on interface net0 && goto netboot
:dhcpnet1
isset ${net1/mac} && dhcp net1 || goto dhcperror
echo Received DHCP answer on interface net1 && goto netboot
:dhcperror
prompt --key s --timeout 10000 DHCP Failed, hit ‘s’ for the iPXE shell; reboot in 10 seconds && shell || reboot
:netboot
cpuid --ext 29 && set arch x86_64 || set arch i386
params
param mac0 ${net0/mac}
param arch ${arch}
param platform ${platform}
param product ${product}
param ipxever ${version}
isset ${net1/mac} && param mac1 ${net1/mac} || goto bootme
:bootme
chain http://${fogserver}/fog/service/ipxe/boot.php##params
The script was kindly provided for me by @george1421
After a few smaller errors (Read: user error) I was able to boot a client into the FOG server only to receive the error: params: command not found.
I checked to ensure that #define PARAM_CMD /* Form parameter commands */ was defined in git/fogproject/src/ipxe/src/config/general.h as shown by this post, and it is. Rebooted server to make sure none of my changed required that. Still receiving the error Command not Found. I’m not sure what the next step might be…