ipxe boot just hangs
-
It looks like you are using dnsmasq running on your fog server here??
Is your fog server at 10.60.16.129?
On your fog server key in this command and post the results here:
cat /tftpboot/default.ipxe
-
@ayoward said in ipxe boot just hangs:
As well, open that URL http://10.60.16.129/fog/service/ipxe/boot.php manually in your browser from a Windows/Linux client that is normally booted to see if you get any (text) output. Please copy and paste that output here so we can have a look.
-
Thanks for you help. Looking at the output here I can already see a problem, but which file do I edit?
#!ipxe
set fog-ip 10.60.16.129
set fog-webroot fog
set boot-url http://${fog-ip}/${fog-webroot}
cpuid --ext 29 && set arch x86_64 || set arch i386
goto get_console
:console_set
colour --rgb 0x00567a 1 ||
colour --rgb 0x00567a 2 ||
colour --rgb 0x00567a 4 ||
cpair --foreground 7 --background 2 2 ||
goto MENU
:alt_console
cpair --background 0 1 ||
cpair --background 1 2 ||
goto MENU
:get_console
console --picture http://10.60.16.129/fog/service/ipxe/bg.png --left 100 --right 80 && goto console_set || goto alt_console
:MENU
menu
colour --rgb 0xff0000 0 ||
cpair --foreground 1 1 ||
cpair --foreground 0 3 ||
cpair --foreground 4 4 ||
item --gap Host is NOT registered!
item --gap – -------------------------------------
item fog.local Boot from hard disk
item fog.memtest Run Memtest86+
item fog.reginput Perform Full Host Registration and Inventory
item fog.reg Quick Registration and Inventory
item fog.deployimage Deploy Image
item fog.multijoin Join Multicast Session
item fog.sysinfo Client System Information (Compatibility)
choose --default fog.local --timeout 3000 target && goto ${target}
:fog.local
sanboot --no-describe --drive 0x80 || goto MENU
:fog.memtest
kernel memdisk initrd=memtest.bin iso raw
initrd memtest.bin
boot || goto MENU
:fog.reginput
kernel bzImage32 loglevel=4 initrd=init_32.xz root=/dev/ram0 rw ramdisk_size=127000 web=http://10.60.16.129/fog/ consoleblank=0 rootfstype=ext4 storage=10.60.16.129:/images/ storageip=10.60.16.129 loglevel=4 mode=manreg
imgfetch init_32.xz
boot || goto MENU
:fog.reg
kernel bzImage32 loglevel=4 initrd=init_32.xz root=/dev/ram0 rw ramdisk_size=127000 web=http://10.60.16.129/fog/ consoleblank=0 rootfstype=ext4 storage=10.60.16.129:/images/ storageip=10.60.16.129 loglevel=4 mode=autoreg
imgfetch init_32.xz
boot || goto MENU
:fog.deployimage
login
params
param mac0 ${net0/mac}
param arch ${arch}
param username ${username}
param password ${password}
param qihost 1
isset ${net1/mac} && param mac1 ${net1/mac} || goto bootme
isset ${net2/mac} && param mac2 ${net2/mac} || goto bootme
param sysuuid ${uuid}
:fog.multijoin
login
params
param mac0 ${net0/mac}
param arch ${arch}
param username ${username}
param password ${password}
param sessionJoin 1
isset ${net1/mac} && param mac1 ${net1/mac} || goto bootme
isset ${net2/mac} && param mac2 ${net2/mac} || goto bootme
param sysuuid ${uuid}
:fog.sysinfo
kernel bzImage32 loglevel=4 initrd=init_32.xz root=/dev/ram0 rw ramdisk_size=127000 web=http://10.60.16.129/fog/ consoleblank=0 rootfstype=ext4 storage=10.60.16.129:/images/ storageip=10.60.16.129 loglevel=4 mode=sysinfo
imgfetch init_32.xz
boot || goto MENU
:bootme
chain -ar http://10.60.16.129/fog/service/ipxe/boot.php##params ||
goto MENU
autoboot -
Yes, the Fog server is at 10.60.16.129
The result of the command is chain http://10.60.16.129/fog/service/ipxe/boot.php##params
-
@ayoward Interesting because my default.ipxe file contains a bit more.
#!ipxe cpuid --ext 29 && set arch x86_64 || set arch ${buildarch} params param mac0 ${net0/mac} param arch ${arch} param platform ${platform} param product ${product} param manufacturer ${product} param ipxever ${version} param filename ${filename} param sysuuid ${uuid} isset ${net1/mac} && param mac1 ${net1/mac} || goto bootme isset ${net2/mac} && param mac2 ${net2/mac} || goto bootme :bootme chain http://192.168.1.53/fog/service/ipxe/boot.php##params
Your fog boot.php page looks good and expected. I’m not sure I understand why your default.ipxe file only contains the chain command though.
Does the file
/opt/fog/.fogsettings
existls -la /opt/fog
? Its a hidden file, if its missing then the fog installer did not complete correctly. -
@george1421 the file is definitely there.
## Start of FOG Settings ## Created by the FOG Installer ## Find more information about this file in the FOG Project wiki: ## https://wiki.fogproject.org/wiki/index.php?title=.fogsettings ## Version: 1.5.5 ## Install time: Mon 29 Apr 2019 05:41:48 PM EDT ipaddress='10.60.16.129' copybackold='0' interface='ens32' submask='255.255.255.0' routeraddress='# No router address added' plainrouter='' dnsaddress='127.0.0.53' username='fog' password='***********' osid='2' osname='Debian' dodhcp='N' bldhcp='0' dhcpd='' blexports='1' installtype='N' snmysqluser='root' snmysqlpass='' snmysqlhost='localhost' installlang='0' storageLocation='/images' fogupdateloaded=1 docroot='/var/www/html/' webroot='/fog/' caCreated='yes' httpproto='http' startrange='' endrange='' bootfilename='undionly.kpxe' packages='apache2 bc build-essential cpp curl g++ gawk gcc genisoimage gzip htmldoc isolinux lftp libapache2-mod-php7.1 libc6 libcurl4 liblzma-dev m4 mysql-client mysql-server net-tools nfs-kernel-server openssh-server php7.1 php7.1-bcmath php7.1-cli php7.1-curl php7.1-fpm php7.1-gd php7.1-json php7.1-ldap php7.1-mbstring php7.1-mysql php-gettext tar tftpd-hpa tftp-hpa unzip vsftpd wget xinetd zlib1g ' noTftpBuild='' notpxedefaultfile='' sslpath='/opt/fog/snapins/ssl/' backupPath='/home/' php_ver='7.1' php_verAdds='-7.1' sslprivkey='/opt/fog/snapins/ssl//.srvprivate.key' ## End of FOG Settings
Mod Note: Fixed post formating-Geo*
-
@george1421 and before I added that line into default.ipxe, there was nothing in there. Should I copy what you have in yours into mine?
-
@ayoward yes
-
@ayoward Yes just change the IP address to your fog server, the rest is generic.
-
@george1421 @Junkhacker @Sebastian-Roth That has cracked it!! Thanks so much for your help!!
-
i have the same problem
-
@Pi0tR What is the output of this command?
cat /tftpboot/default.ipxe
keyed into the linux command prompt of your fog server. -
cat /tftpboot/default.ipxe
give me
#!ipxe cpuid --ext 29 && set arch x86_64 || set arch ${buildarch} params param mac0 ${net0/mac} param arch ${arch} param platform ${platform} param product ${product} param manufacturer ${product} param ipxever ${version} param filename ${filename} param sysuuid ${uuid} isset ${net1/mac} && param mac1 ${net1/mac} || goto bootme isset ${net2/mac} && param mac2 ${net2/mac} || goto bootme :bootme chain http://172.16.2.50/fog/service/ipxe/boot.php##params
but im trying to get this file from another vlan with 172.16.3.0/24 subnet (TFTP work fine)
-
@Pi0tR Lets start a new thread since your issues are different at this point. New topic - new problem.