• Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
  • Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

invalid integer value and chainloading failed

Scheduled Pinned Locked Moved Solved
FOG Problems
2
9
444
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K
    krokodeilakias
    last edited by Aug 29, 2023, 9:52 AM

    Hi all,
    I am trying to migrate from fog 1.5.7 (running on CentOS 7) to the latest stable 1.5.10 on another hardware running Rocky 9.2 with the same IP. What differs from the old server is that during the fresh installation I chose to use HTTPS support. At the end I transfered the database to the new server.
    Image deployment works as expected, but I can’t access Advanced Menu (not hidden) which after successfully loading advanced.php and bg.png returns an error:

    "" :invalid integer value
    Could not boot: Invalid argument (https://ipxe.org/1c162102)
    Chainloading failed,...
    

    Find below what I receive when I visit
    https://${fog-ip}/fog/service/ipxe/boot.php?mac=00:50:56:92:c7:c5

    Any suggestions on what I might be missing?
    Thanks in advance.

    ###################################################################

    #!ipxe
    set fog-ip 192.168.61.38
    set fog-webroot fog
    set boot-url https://${fog-ip}/${fog-webroot}
    set storage-ip 192.168.61.38
    set keymap us
    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 https://192.168.61.38/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)
    item fog.advanced Advanced Menu
    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=275000 web=https://192.168.61.38/fog/ consoleblank=0 rootfstype=ext4 storage=192.168.61
    .38:/images/ storageip=192.168.61.38 nvme_core.default_ps_max_latency_us=0 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=275000 web=https://192.168.61.38/fog/ consoleblank=0 rootfstype=ext4 storage=192.168.61
    .38:/images/ storageip=192.168.61.38 nvme_core.default_ps_max_latency_us=0 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=275000 web=https://192.168.61.38/fog/ consoleblank=0 rootfstype=ext4 storage=192.168.61
    .38:/images/ storageip=192.168.61.38 nvme_core.default_ps_max_latency_us=0 loglevel=4 mode=sysinfo
    imgfetch init_32.xz
    boot || goto MENU
    :fog.advanced
    chain -ar https://192.168.61.38/fog/service/ipxe/advanced.php || goto MENU
    :bootme
    chain -ar https://192.168.61.38/fog/service/ipxe/boot.php##params ||
    goto MENU
    autoboot
    
    G 2 Replies Last reply Aug 29, 2023, 11:44 AM Reply Quote 0
    • K
      krokodeilakias @george1421
      last edited by Aug 30, 2023, 8:50 AM

      @george1421
      Finally the problem lies within the next lines of the script:

      choose --timeout ${menu-timeout} --default ${menu-default} selected
      set menu-timeout 0

      Or to be more precise, the problem is their order. ${menu-timeout} is used before it is defined and therefore, the choose command fails since it received an empty string instead of an integer.
      Thanks a lot @george1421 for your support, I really appreciate it.

      1 Reply Last reply Reply Quote 1
      • G
        george1421 Moderator @krokodeilakias
        last edited by george1421 Aug 29, 2023, 5:44 AM Aug 29, 2023, 11:44 AM

        @krokodeilakias I don’t have a clue what’s wrong here because your code look right.

        If we look at the error message it give me a few clues.

        Chainloading failed…

        In your script there are only 2 chain commands.

        Image deployment works as expected

        That would kind of indicate chain -ar https://192.168.61.38/fog/service/ipxe/boot.php##params || chain command is working as intended

        but I can’t access Advanced Menu
        Indicates that there is a problem with this line: chain -ar https://192.168.61.38/fog/service/ipxe/advanced.php || goto MENU The structure of the line seems OK, I can’t tell at the moment if there are any strange white space characters in there messing us up though.

        Lets start out by calling that url directly from your browser, there might be something in the advanced.php program that is having a hard time causing the chain load to fail.

        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

        K 1 Reply Last reply Aug 29, 2023, 11:53 AM Reply Quote 0
        • K
          krokodeilakias @george1421
          last edited by Aug 29, 2023, 11:53 AM

          Thanks a lot for your prompt answer @george1421
          Below is what I get after visiting https://192.168.61.38/fog/service/ipxe/advanced.php
          The only difference compared to the old functional server is the “s” following “http”

          ###################################################################

          #!ipxe
          #!ipxe
          cpuid --ext 29 && set arch x86_64 || set arch i386
          colour --rgb 0xff6600 2
          cpair --foreground 7 --background 2 2
          console --picture https://${fog-ip}/fog/service/ipxe/bg.png --left 180 --right 80
          isset ${menu-default} || set menu-default exit
          :MENU
          menu Advanced Menu
          colour --rgb 0xff0000 0
          cpair --foreground 0 3
          item --gap -- -------------------------------------
          item --key 0 fog.local 0) Boot from hard disk
          item --key 1 recoverysub 1) Recovery Tools
          item --key 2 clonesub 2) Cloning Tools
          item --key 3 diagsub 3) Diagnostic Tools
          item --key 4 centossub 4) Linux Installers
          item --key 5 winsub 5) Windows Installers
          item --key 6 esxi 6) VMWare ESXi 6.7 Installer
          item --key s shell s) Start iPXE shell
          item
          item --key 0x08 return Return to previous Menu
          #choose target && goto ${target}
          choose --timeout ${menu-timeout} --default ${menu-default} selected
          set menu-timeout 0
          set submenu-timeout 0
          set menu-default return
          goto ${selected}
          :fog.local
          sanboot --no-describe --drive 0x80 || goto MENU
          :sysrescue
          set root-path systemrescuecd
          kernel ${root-path}/rescue${arch} scandelay=1 docache netboot=${boot-url}/service/ipxe/${root-path}/sysrcd.dat setkmap=us dostartx
          initrd ${root-path}/initram.igz
          boot || goto MENU
          #:sysrescue32
          #set root-path sysrcd-4.4.1_x86
          #kernel ${root-path}/rescue32 scandelay=1 docache #netboot=https://${fog-ip}/fog/service/ipxe/sysrcd-4.4.1_x86/sysrcd.dat
          #initrd ${root-path}/initram.igz
          #boot || goto MENU
          #:clonezillaiso
          #set root-path clonezilla
          #initrd ${base-url}/fog/service/ipxe/${root-path}/clonezilla.iso
          #chain memdisk
          :clonezillalive
          set root-path clonezilla/live
          kernel ${root-path}/vmlinuz-${arch} boot=live union=overlay username=user config components quiet noswap edd=on nomodeset noeject locales=en_US.UTF-8 keyboard-layouts=us ocs_live_run="ocs-live-general" ocs_live_extra_param="" ocs_live_batch="no" vga=791 ip= net.ifnames=0 nosplash i915.blacklist=yes radeonhd.blacklist=yes nouveau.blacklist=yes vmwgfx.enable_fbdev=1 fetch=${boot-url}/service/ipxe/${root-path}/filesystem-${arch}.squashfs
          initrd ${root-path}/initrd-${arch}.img
          boot || goto MENU
          :gpartedlive
          set root-path gparted/live
          kernel ${root-path}/vmlinuz-${arch} boot=live union=overlay username=user config components quiet noswap locales=en_US.UTF-8 keyboard-layouts=us gl_batch fetch=${boot-url}/service/ipxe/${root-path}/filesystem-${arch}.squashfs
          initrd ${root-path}/initrd-${arch}.img
          boot || goto MENU
          #:acronisiso
          #set root-path acronis/build8072
          #kernel memdisk iso raw
          #initrd ${root-path}/acronis_media.iso
          #boot || goto MENU
          :acronis2018
          set root-path acronis/2018b9202
          kernel ${root-path}/kernel64.dat quiet vga=791 ramdisk_size=32768 acpi=off noapic
          initrd ${root-path}/ramdisk_merged64.dat
          boot || goto MENU
          :acronis201832
          set root-path acronis/2018b9202
          kernel ${root-path}/kernel.dat quiet vga=791 ramdisk_size=32768 acpi=off noapic
          initrd ${root-path}/ramdisk_merged.dat
          boot || goto MENU
          :acronis38573
          set root-path acronis/build38573
          kernel ${root-path}/kernel64.dat quiet vga=791 ramdisk_size=32768 acpi=off noapic
          initrd ${root-path}/agent_ramdisk64.dat
          boot || goto MENU
          :acronis
          set root-path acronis/build8072
          kernel ${root-path}/kernel.dat quiet vga=791 ramdisk_size=32768 acpi=off noapic
          initrd ${root-path}/ramdisk.dat
          boot || goto MENU
          :acronis2010
          set root-path acronis/home2010
          kernel ${root-path}/kernel.dat quiet vga=791 ramdisk_size=32768 acpi=off noapic
          initrd ${root-path}/ramdisk.dat
          boot || goto MENU
          :macrium
          set root-path macrium
          sanboot --no-describe ${root-path}/macrium.iso
          boot || goto MENU
          :aomei
          set root-path aomei
          sanboot --no-describe ${root-path}/aomei.iso
          boot || goto MENU
          :ghost10
          set root-path ghost
          initrd ${root-path}/nortonghost10.iso
          boot memdisk iso raw || goto MENU
          :clonesub
          menu Cloning Tools
          item --gap -- ================== Cloning Tools ==================
          item
          #item clonezillaiso Clonezilla Live iso
          item --key 1 clonezillalive 1) Clonezilla Live (${arch})
          item --key 2 aomei 2) AOMEI Backupper 4.1
          item --key 3 macrium 3) Macrium Reflect Server Plus 7.1.3480 (64bit)
          item --key 4 acronis2018 4) Acronis True Image 2018 (b.9202)
          item --key 5 acronis201832 5) Acronis True Image 2018 32bit (b.9202)
          item --key 6 acronis38573 6) Acronis Wkstn 11.5 64bit (b.38573)
          item --key 7 acronis 7) Acronis True Image Wkstn (build 8,072)
          item --key 8 acronis2010 8) Acronis True Img Home 2010 (build 7,046)
          item --key 9 ghost10 9) Norton Ghost 10.0
          item
          item --key 0x08 back Back to previous menu...
          iseq ${menu-default} menu-tools || choose --timeout ${submenu-timeout} --default clonezillalive selected && goto ${selected} || goto MENU
          :recoverysub
          menu Recovery Tools
          item --gap -- ================== Recovery Tools ==================
          item
          item --key 1 sysrescue 1) Run SystemRescue (${arch})
          item --key 2 macrium 2) Macrium Reflect Server Plus 7.1.3480 (64bit)
          item --key 3 win7pe 3) Windows 7 PE
          item --key 4 gpartedlive 4) GParted Live (${arch})
          item --key 5 fedora8rescue 5) Fedora 8 Rescue (${arch})
          item --key 6 centos7rescue 6) CentOS 7.7.1908 Rescue (${arch})
          item --key 7 rocky8rescue 7) Rocky Linux 8.6 Rescue (${arch})
          item --key 8 alma9rescue 8) Alma Linux 9.0 Rescue (${arch})
          item --key 9 rocky9rescue 9) Rocky Linux 9.2 Rescue (${arch})
          item
          item --key 0x08 back Back to previous menu...
          iseq ${menu-default} menu-tools || choose --timeout ${submenu-timeout} --default sysrescue selected && goto ${selected} || goto MENU
          :winsub
          menu Windows Installers
          item --gap -- ================== Windows Installers ==================
          item
          item --key 1 win7x64 1) Windows 7 (64 bit) Install
          item --key 2 win10aio 2) Windows 10 AIO Install
          item --key 3 win2008R2 3) Windows 2008R2
          item --key 4 win2012R2 4) Windows 2012R2
          item --key 5 win7pe 5) Windows 7 PE
          item --key 6 hirenspe 6) Hirens BootCD PE
          item
          item --key 0x08 back Back to previous menu...
          iseq ${menu-default} menu-tools || choose --timeout ${submenu-timeout} --default win10aio selected && goto ${selected} || goto MENU
          :diagsub
          menu Diagnostic Tools
          item --gap -- ==================== Diagnostic Tools ===================
          item
          item --key 1 erd7 1) ERD Commander Win7 (${arch})
          item --key 2 erdvista 2) ERD Commander Vista SP2 (${arch})
          item --key 3 erdxp 3) ERD Commander WinXP SP3
          item --key 4 hirens 4) Hirens BootCD 15.2
          item --key 5 hirenspe 5) Hirens BootCD PE
          item --key 6 dell 6) Dell Support Live Image (DSLI)
          item
          item --key 0x08 back Back to previous menu...
          iseq ${menu-default} menu-tools || choose --timeout ${submenu-timeout} --default hirenspe selected && goto ${selected} || goto MENU
          :centossub
          menu CentOS Linux
          item --gap -- ==================== Linux installers ===================
          item
          item --key 1 centos7auto 1) CentOS 7.7.1908 (${arch}) Install (kickstart)
          item --key 2 centos7wiz 2) CentOS 7.7.1908 (${arch}) Install (wizard)
          item --key 3 centos7live 3) CentOS 7.7.1908 Live (needs >=3GB RAM)
          item --key 4 centos7rescue 4) CentOS 7.7.1908 Rescue (${arch})
          item --key 5 rocky8auto 5) Rocky Linux 8.6 (${arch}) Install (kickstart)
          item --key 6 rocky8wiz 6) Rocky Linux 8.6 (${arch}) Install (wizard)
          item --key 7 rocky8live 7) Rocky Linux 8.6 Live (needs >=3GB RAM)
          item --key 8 rocky8rescue 8) Rocky Linux 8.6 Rescue (${arch})
          item --key 9 rocky9auto 9) Rocky Linux 9.2 (${arch}) Install (kickstart)
          item --key a rocky9wiz a) Rocky Linux 9.2 (${arch}) Install (wizard)
          item --key b rocky9live b) Rocky Linux 9.2 Gnome Live (needs >=3GB RAM)
          item --key c rocky9rescue c) Rocky Linux 9.2 Rescue (${arch})
          item --key d alma9auto d) Alma Linux 9.0 (${arch}) Install (kickstart)
          item --key e alma9wiz e) Alma Linux 9.0 (${arch}) Install (wizard)
          item --key f alma9live f) Alma Linux 9.0 Gnome Live (needs >=3GB RAM)
          item --key g alma9rescue g) Alma Linux 9.0 Rescue (${arch})
          item
          item --key 0x08 back Back to previous menu...
          iseq ${menu-default} menu-tools || choose --timeout ${submenu-timeout} --default centos8wiz selected && goto ${selected} || goto MENU
          :centos7auto
          set root-path centos/7/${arch}/images/pxeboot
          set ksftppath ${boot-url}/service/ipxe/${root-path}
          kernel ${root-path}/vmlinuz ks=${ksftppath}/centos7${arch}.ks ksdevice=bootif ramdisk_size=100000
          initrd ${root-path}/initrd.img
          boot || goto MENU
          :centos7wiz
          set root-path centos/7/${arch}
          kernel ${root-path}/isolinux/vmlinuz ramdisk_size=100000 method=${boot-url}/service/ipxe/${root-path}
          initrd ${root-path}/isolinux/initrd.img
          boot || goto MENU
          :centos7rescue
          set root-path centos/7/${arch}
          kernel ${root-path}/isolinux/vmlinuz ramdisk_size=100000 rescue method=${boot-url}/service/ipxe/${root-path}
          initrd ${root-path}/isolinux/initrd.img
          boot || goto MENU
          :centos7live
          set root-path centos/7/live
          kernel ${root-path}/vmlinuz0 rootflags=loop root=live:/CentOS-7-x86_64-LiveGNOME-1908.iso rootfstype=auto ro rd.live.image quiet vga=791 rhgb rd.luks=0 rd.md=0 rd.dm=0 nomodeset
          initrd ${root-path}/initrd0.img
          boot || goto MENU
          :fedora8rescue
          set root-path fedora/8/${arch}
          kernel ${root-path}/isolinux/vmlinuz ramdisk_size=100000 rescue method=${boot-url}/service/ipxe/${root-path}
          initrd ${root-path}/isolinux/initrd.img
          boot || goto MENU
          :rocky8auto
          set root-path rocky/8/${arch}
          set pxe-path ${root-path}/images/pxeboot
          set ksftppath ${boot-url}/service/ipxe/${root-path}
          kernel ${pxe-path}/vmlinuz inst.ks=${ksftppath}/rocky8${arch}.ks ksdevice=bootif ramdisk_size=100000
          initrd ${pxe-path}/initrd.img
          boot || goto MENU
          :rocky8wiz
          set root-path rocky/8/${arch}
          kernel ${root-path}/isolinux/vmlinuz ramdisk_size=100000 inst.repo=${boot-url}/service/ipxe/${root-path}
          initrd ${root-path}/isolinux/initrd.img
          boot || goto MENU
          :rocky8live
          set root-path rocky/8/live
          kernel ${root-path}/vmlinuz rootflags=loop root=live:/Rocky-Workstation-Lite-8-x86_64-20220515.1.iso rootfstype=auto ro rd.live.image quiet vga=791 rhgb rd.luks=0 rd.md=0 rd.dm=0 nomodeset
          initrd ${root-path}/initrd.img
          boot || goto MENU
          :rocky8rescue
          set root-path rocky/8/${arch}
          kernel ${root-path}/isolinux/vmlinuz ramdisk_size=100000 inst.rescue inst.repo=${boot-url}/service/ipxe/${root-path}
          initrd ${root-path}/isolinux/initrd.img
          boot || goto MENU
          :rocky9auto
          set root-path rocky/9/${arch}
          set pxe-path ${root-path}/images/pxeboot
          set ksftppath ${boot-url}/service/ipxe/${root-path}
          kernel ${pxe-path}/vmlinuz inst.ks=${ksftppath}/rocky9${arch}.ks ksdevice=bootif ramdisk_size=100000
          initrd ${pxe-path}/initrd.img
          boot || goto MENU
          :rocky9wiz
          set root-path rocky/9/${arch}
          kernel ${root-path}/isolinux/vmlinuz ramdisk_size=100000 inst.repo=${boot-url}/service/ipxe/${root-path}
          initrd ${root-path}/isolinux/initrd.img
          boot || goto MENU
          :rocky9live
          set root-path rocky/9/live
          kernel ${root-path}/vmlinuz rootflags=loop root=live:/Rocky-9.2-Workstation-Lite-x86_64-20230513.0.iso rootfstype=auto ro rd.live.image quiet vga=791 rhgb rd.luks=0 rd.md=0 rd.dm=0 nomodeset
          initrd ${root-path}/initrd.img
          boot || goto MENU
          :rocky9rescue
          set root-path rocky/9/${arch}
          kernel ${root-path}/isolinux/vmlinuz ramdisk_size=100000 inst.rescue inst.repo=${boot-url}/service/ipxe/${root-path}
          initrd ${root-path}/isolinux/initrd.img
          boot || goto MENU
          :alma9auto
          set root-path alma/9/${arch}
          set pxe-path ${root-path}/images/pxeboot
          set ksftppath ${boot-url}/service/ipxe/${root-path}
          kernel ${pxe-path}/vmlinuz inst.ks=${ksftppath}/alma9${arch}.ks ksdevice=bootif ramdisk_size=100000
          initrd ${pxe-path}/initrd.img
          boot || goto MENU
          :alma9wiz
          set root-path alma/9/${arch}
          kernel ${root-path}/isolinux/vmlinuz ramdisk_size=100000 inst.repo=${boot-url}/service/ipxe/${root-path}
          initrd ${root-path}/isolinux/initrd.img
          boot || goto MENU
          :alma9live
          set root-path alma/9/live
          kernel ${root-path}/vmlinuz rootflags=loop root=live:/AlmaLinux-9.0-x86_64-Live-GNOME.iso rootfstype=auto ro rd.live.image quiet rhgb rd.luks=0 rd.md=0 rd.dm=0 nomodeset
          initrd ${root-path}/initrd.img
          boot || goto MENU
          :alma9rescue
          set root-path alma/9/${arch}
          kernel ${root-path}/isolinux/vmlinuz ramdisk_size=100000 inst.rescue inst.repo=${boot-url}/service/ipxe/${root-path}
          initrd ${root-path}/isolinux/initrd.img
          boot || goto MENU
          :win7pe
          set root-path windows/7/PE
          #imgfetch ${root-path}/Windows_7_PE.iso
          imgfetch ${root-path}/7pe_x86_M.iso
          boot memdisk iso raw || goto MENU
          :win7x64
          set root-path windows/7/install/${arch}
          kernel ${root-path}/wimboot
          initrd ${root-path}/BCD BCD
          initrd ${root-path}/boot.sdi boot.sdi
          initrd ${root-path}/winpe.wim boot.wim
          #imgstat
          #prompt
          boot || goto MENU
          :win10aio
          set root-path windows/10
          #sanboot --no-describe --drive 0x81 ${root-path}/win10aio.iso
          #boot || goto MENU
          initrd ${root-path}/win10aio.iso
          chain memdisk iso || goto MENU
          :win2008R2
          set root-path windows/2008R2/install
          kernel ${root-path}/wimboot
          initrd ${root-path}/BCD BCD
          initrd ${root-path}/boot.sdi boot.sdi
          initrd ${root-path}/boot.wim boot.wim
          boot || goto MENU
          :win2012R2
          set root-path windows/2012R2/install
          kernel ${root-path}/wimboot
          initrd ${root-path}/BCD BCD
          initrd ${root-path}/boot.sdi boot.sdi
          initrd ${root-path}/boot.wim boot.wim
          boot || goto MENU
          :erd7
          set root-path erd/7/${arch}
          kernel ${root-path}/wimboot
          initrd ${root-path}/bootmgr bootmgr
          initrd ${root-path}/boot/bcd BCD
          initrd ${root-path}/boot/fonts/wgl4_boot.ttf wgl4_boot.ttf
          initrd ${root-path}/boot/boot.sdi boot.sdi
          initrd ${root-path}/sources/boot.wim boot.wim
          #imgstat
          #prompt
          boot || goto MENU
          :erdvista
          set root-path erd/Vista/${arch}
          kernel ${root-path}/wimboot
          initrd ${root-path}/bootmgr bootmgr
          initrd ${root-path}/boot/bcd BCD
          initrd ${root-path}/boot/fonts/wgl4_boot.ttf wgl4_boot.ttf
          initrd ${root-path}/boot/boot.sdi boot.sdi
          initrd ${root-path}/sources/boot.wim boot.wim
          #imgstat
          #prompt
          boot || goto MENU
          :erdxp
          set root-path erd
          initrd ${root-path}/ERD50_x86_WinXP_SP3_blueforce.iso
          boot memdisk iso raw || goto MENU
          #:hirens
          #set root-path hirens/15.2
          #initrd ${root-path}/Hirens.BootCD.15.2.iso
          #boot memdisk iso raw || goto MENU
          :hirens
          set root-path hirens/15.2
          initrd ${root-path}/Hirens.BootCD.15.2.iso
          kernel memdisk iso raw|| goto MENU
          boot || goto MENU
          :hirenspe
          set root-path https://${fog-ip}/fog/service/ipxe/hirens/15.2/HBCDPE
          kernel ${root-path}/wimboot gui
          imgfetch --name bootmgr.exe ${root-path}/bootmgr.exe bootmgr.exe
          imgfetch --name bootx64.efi ${root-path}/bootx64.efi bootx64.efi
          imgfetch --name BCD ${root-path}/bcd BCD
          imgfetch --name boot.sdi ${root-path}/boot.sdi boot.sdi
          imgfetch --name boot.wim ${root-path}/boot.wim boot.wim
          boot || goto MENU
          :esxi
          set root-path vmware
          initrd ${root-path}/ESXi.iso
          chain memdisk iso || goto MENU
          :dell
          set root-path dell/sli
          kernel ${root-path}/vmlinuz0 rootflags=loop initrd=initrd0.img root=live:/SLI_3.0.0_A00.iso rootfstype=auto ro rd.live.image quiet rhgb vga=791 rd.luks=0 rd.md=0 rd.dm=0 nomodeset
          initrd ${root-path}/initrd0.img
          boot || goto MENU
          #initrd ${root-path}/DSLI.iso
          #chain ${root-path}/memdisk iso || goto MENU
          :shell
          echo Type 'exit' to get the back to the menu
          shell ||
          goto MENU
          :return
          chain ${boot-url}/service/ipxe/boot.php?mac=${net0/mac} || prompt
          goto MENU
          autoboot
          
          1 Reply Last reply Reply Quote 0
          • G
            george1421 Moderator @krokodeilakias
            last edited by Aug 29, 2023, 4:03 PM

            @krokodeilakias said in invalid integer value and chainloading failed:

            which after successfully loading advanced.php and bg.png returns an error:

            OK more clues. This one jumps out at me. In your advanced.php script it references
            console --picture https://${fog-ip}/fog/service/ipxe/bg.png

            The variable ${fog-ip} doesn’t seem to be set in the advanced.php output. So this might cause an invalid URL. I don’t know if the values fall forward from boot.php or not. If no, then this seems to be an uninitialized variable.

            I also noted two invocation lines #!ipxe in the output. That shouldn’t cause a problem because it just resets everything a second time.

            Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

            K 1 Reply Last reply Aug 29, 2023, 5:19 PM Reply Quote 0
            • K
              krokodeilakias @george1421
              last edited by Aug 29, 2023, 5:19 PM

              The variable ${fog-ip} doesn’t seem to be set in the advanced.php output. So this might cause an invalid URL. I don’t know if the values fall forward from boot.php or not. If no, then this seems to be an uninitialized variable.

              It seems that ${fog-ip} is passed through boot.php where it is initially defined. That’s why it successfully loads bg.png. The error comes right after.
              However, I explicitly replaced ${fog-ip} with the real IP, but the error remains.

              I also noted two invocation lines #!ipxe in the output. That shouldn’t cause a problem because it just resets everything a second time.

              Indeed, it doesn’t cause problem. I removed it and the error is still there.

              I don’t want to play it smart, but something similar I saw in another post, gives me the hint that an integer valued variable in globalSettings table is wrongly empty. This might have been caused due to the transfer of DB from the old server, which could be more forgiving or even missing that key at all. Has any relevant change since 1.5.7 taken place, that could justify this?

              G 1 Reply Last reply Aug 29, 2023, 6:17 PM Reply Quote 0
              • G
                george1421 Moderator @krokodeilakias
                last edited by Aug 29, 2023, 6:17 PM

                @krokodeilakias So lets walk that path then.

                You installed FOG 1.5.10 onto your new server, then migrated your database over. So your 1.5.10 version of fog is running on 1.5.7 version of the database? If yes, rerun the fog installer, it will remember all of your previous settings. Half way through the install it will ask you go open a web browser and upgrade the database. That should force the DB to be upgraded to 1.5.10, there has been about 5 years between 1.5.7 and 1.5.10 so there has been database changes and fields added/moved.

                Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

                K 1 Reply Last reply Aug 29, 2023, 10:33 PM Reply Quote 0
                • K
                  krokodeilakias @george1421
                  last edited by Aug 29, 2023, 10:33 PM

                  @george1421 Still no luck.
                  In one of my attempts in order to avoid such kind of discrepancies, I had transferred the database in the first place and then run the installer. Still the same error.
                  Anyway, now I rerun the installer but the error persists.
                  Maybe the problem is in my script. I’ ll try to strip it down in case I hit on a conflicting command.

                  G 1 Reply Last reply Aug 30, 2023, 1:42 AM Reply Quote 0
                  • G
                    george1421 Moderator @krokodeilakias
                    last edited by Aug 30, 2023, 1:42 AM

                    @krokodeilakias said in invalid integer value and chainloading failed:

                    I’ ll try to strip it down in case I hit on a conflicting command.

                    This was going to be my next suggestion. Your script is very advanced and I was having a hard time following it just reading through it. As a test discard everything except the first level menu. The error kind of indicates a problem around a colon, but I’m not sure.

                    Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

                    K 1 Reply Last reply Aug 30, 2023, 8:50 AM Reply Quote 0
                    • K
                      krokodeilakias @george1421
                      last edited by Aug 30, 2023, 8:50 AM

                      @george1421
                      Finally the problem lies within the next lines of the script:

                      choose --timeout ${menu-timeout} --default ${menu-default} selected
                      set menu-timeout 0

                      Or to be more precise, the problem is their order. ${menu-timeout} is used before it is defined and therefore, the choose command fails since it received an empty string instead of an integer.
                      Thanks a lot @george1421 for your support, I really appreciate it.

                      1 Reply Last reply Reply Quote 1
                      • [[undefined-on, K krokodeilakias, Aug 30, 2023, 8:52 AM]]
                      • 1 / 1
                      1 / 1
                      • First post
                        8/9
                        Last post

                      220

                      Online

                      12.0k

                      Users

                      17.3k

                      Topics

                      155.2k

                      Posts
                      Copyright © 2012-2024 FOG Project