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

    ipxe boot just hangs

    Scheduled Pinned Locked Moved Solved
    General Problems
    5
    17
    2.5k
    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.
    • S
      Sebastian Roth Moderator
      last edited by

      @ayoward said in ipxe boot just hangs:

      http://10.60.16.129/fog/service/ipxe/boot.php##params

      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.

      Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

      Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

      A 1 Reply Last reply Reply Quote 0
      • A
        ayoward @Sebastian Roth
        last edited by

        @Sebastian-Roth

        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

        1 Reply Last reply Reply Quote 0
        • A
          ayoward @george1421
          last edited by

          @george1421

          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

          george1421G 1 Reply Last reply Reply Quote 0
          • george1421G
            george1421 Moderator @ayoward
            last edited by

            @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 exist ls -la /opt/fog ? Its a hidden file, if its missing then the fog installer did not complete correctly.

            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!

            A 2 Replies Last reply Reply Quote 1
            • A
              ayoward @george1421
              last edited by george1421

              @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*

              1 Reply Last reply Reply Quote 0
              • A
                ayoward @george1421
                last edited by

                @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?

                JunkhackerJ george1421G 2 Replies Last reply Reply Quote 0
                • JunkhackerJ
                  Junkhacker Developer @ayoward
                  last edited by

                  @ayoward yes

                  signature:
                  Junkhacker
                  We are here to help you. If you are unresponsive to our questions, don't expect us to be responsive to yours.

                  1 Reply Last reply Reply Quote 1
                  • george1421G
                    george1421 Moderator @ayoward
                    last edited by

                    @ayoward Yes just change the IP address to your fog server, the rest is generic.

                    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!

                    A 1 Reply Last reply Reply Quote 1
                    • A
                      ayoward @george1421
                      last edited by ayoward

                      @george1421 @Junkhacker @Sebastian-Roth That has cracked it!! Thanks so much for your help!!

                      1 Reply Last reply Reply Quote 1
                      • P
                        Pi0tR
                        last edited by

                        i have the same problem

                        george1421G 1 Reply Last reply Reply Quote 0
                        • george1421G
                          george1421 Moderator @Pi0tR
                          last edited by

                          @Pi0tR What is the output of this command? cat /tftpboot/default.ipxe keyed into the linux command prompt of your fog server.

                          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!

                          1 Reply Last reply Reply Quote 0
                          • P
                            Pi0tR
                            last edited by

                            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)

                            george1421G 1 Reply Last reply Reply Quote 0
                            • george1421G
                              george1421 Moderator @Pi0tR
                              last edited by

                              @Pi0tR Lets start a new thread since your issues are different at this point. New topic - new problem.

                              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!

                              1 Reply Last reply Reply Quote 0
                              • 1 / 1
                              • First post
                                Last post

                              160

                              Online

                              12.0k

                              Users

                              17.3k

                              Topics

                              155.2k

                              Posts
                              Copyright © 2012-2024 FOG Project