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

PXE boot failed 1.5.6

Scheduled Pinned Locked Moved Solved
FOG Problems
3
30
5.9k
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.
  • A
    astrugatch
    last edited by Jun 19, 2019, 12:03 PM

    On 1.5.6

    tftp://10.10.70.4/default.ipxe… ok
    https://10.10.70.4/fog/service/ipxe/boot.php… no such file or directory … (missed the rest of the line in my screen shot)
    Could not boot: No such file or directory (http://ipxe.org/2d0c613b)

    1 Reply Last reply Reply Quote 0
    • S
      Sebastian Roth Moderator
      last edited by Sebastian Roth Jun 25, 2019, 2:59 PM Jun 25, 2019, 8:20 PM

      @astrugatch Ohhh no, there is a bug in the scripts which I somehow must have overlooked. Obviously my testing has been terrible back then when I last changed that script.

      Forget what I wrote last. I even deleted the post so people don’t get confused. I will push out a fix in dev-branch in a minute. That should then be part of 1.5.7 which should come out soon.

      Edit: Fix is out: https://github.com/FOGProject/fogproject/commit/1bf321d399a3af664faab580fe81379051bf6eaf

      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 3 Replies Last reply Jun 26, 2019, 12:07 PM Reply Quote 0
      • A
        astrugatch
        last edited by Sebastian Roth Jun 24, 2019, 12:16 AM Jun 19, 2019, 12:43 PM

        I installed using force HTTPS so I tried running the buildpxe.sh and that didn’t fix the issue. I did a git pull and reran the whole installer. Still no dice.

        1 Reply Last reply Reply Quote 0
        • G
          george1421 Moderator
          last edited by Jun 19, 2019, 1:16 PM

          yeah the buildpxe.sh isn’t the issue here.

          I noticed you have https:// , do you have ssl enabled on your FOG server? The boot.php is manged by the fog installer so it should be there if the installer completed correctly.

          So if you run this command from the fog server linux console ls -la /var/www/html/fog/service/ipxe/*.php does it find boot.php? If it does then its probably the https vs http.

          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
          • A
            astrugatch
            last edited by astrugatch Jun 19, 2019, 7:43 AM Jun 19, 2019, 1:42 PM

            @george1421 said in PXE boot failed 1.5.6:

            ls -la /var/www/html/fog/service/ipxe/*.php

            I do have SSL enabled. The installer was originally run with -S
            The installer completed successfully

            root@fogimaging:~# ls -la /var/www/html/fog/service/ipxe/*.php
            -rw-r–r-- 1 fogproject www-data 1958 Jun 19 08:37 /var/www/html/fog/service/ipxe/advanced.php
            -rw-r–r-- 1 fogproject www-data 1139 Jun 19 08:37 /var/www/html/fog/service/ipxe/boot.php
            -rw-r–r-- 1 fogproject www-data 592 Jun 19 08:37 /var/www/html/fog/service/ipxe/index.php

            It does find it. What do I need to change?

            G 1 Reply Last reply Jun 19, 2019, 1:50 PM Reply Quote 0
            • G
              george1421 Moderator @astrugatch
              last edited by Jun 19, 2019, 1:50 PM

              @astrugatch OK the next step is to see if apache is listening on the https port.

              netstat -an|grep :443

              It should respond with something like this:

              tcp        0      0 0.0.0.0:443             0.0.0.0:*               LISTEN
              

              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 Jun 19, 2019, 1:55 PM Reply Quote 0
              • A
                astrugatch @george1421
                last edited by astrugatch Jun 19, 2019, 8:01 AM Jun 19, 2019, 1:55 PM

                @george1421 said in PXE boot failed 1.5.6:

                netstat -an|grep :443

                Yup. That works. I can get to the web UI over https

                root@fogimaging:~# netstat -an|grep :443
                tcp6 0 0 :::443 :::* LISTEN
                tcp6 0 0 10.10.70.4:443 10.10.10.21:63466 TIME_WAIT

                G 1 Reply Last reply Jun 19, 2019, 2:03 PM Reply Quote 0
                • G
                  george1421 Moderator @astrugatch
                  last edited by Jun 19, 2019, 2:03 PM

                  @astrugatch OK for the next test

                  From a windows browser, can you go to this web site?

                  https://10.10.70.4/fog/service/ipxe/boot.php?mac=00:00:00:00:00:00

                  This should give you a bunch of text, which is the text behind the FOG iPXE boot menu.

                  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 Jun 19, 2019, 2:04 PM Reply Quote 0
                  • A
                    astrugatch @george1421
                    last edited by Sebastian Roth Jun 24, 2019, 12:23 AM Jun 19, 2019, 2:04 PM

                    @george1421 said in PXE boot failed 1.5.6:

                    https://10.10.70.4/fog/service/ipxe/boot.php?mac=00:00:00:00:00:00

                    Yup

                    #!ipxe
                    set fog-ip 10.10.70.4
                    set fog-webroot fog
                    set boot-url https://${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 https://10.10.70.4/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=https://10.10.70.4/fog/ consoleblank=0 rootfstype=ext4 storage=10.10.70.4:/images/ storageip=10.10.70.4 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=https://10.10.70.4/fog/ consoleblank=0 rootfstype=ext4 storage=10.10.70.4:/images/ storageip=10.10.70.4 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=https://10.10.70.4/fog/ consoleblank=0 rootfstype=ext4 storage=10.10.70.4:/images/ storageip=10.10.70.4 loglevel=4 mode=sysinfo
                    imgfetch init_32.xz
                    boot || goto MENU
                    :bootme
                    chain -ar https://10.10.70.4/fog/service/ipxe/boot.php##params ||
                    goto MENU
                    autoboot
                    
                    G 1 Reply Last reply Jun 19, 2019, 2:05 PM Reply Quote 0
                    • G
                      george1421 Moderator @astrugatch
                      last edited by george1421 Jun 19, 2019, 8:08 AM Jun 19, 2019, 2:05 PM

                      @astrugatch Ok then the issue is that the iPXE boot loader doesn’t understand https or the certificate of the FOG server is not inline with the certificate used to locally compile the iPXE kernels (undionly.kpxe and ipxe.efi).

                      Unfortunately I don’t know the next steps. I know where the issue is, but not how to fix it since I hanven’t needed to setup ssl on my FOG server. You were in the right neighborhood with the buildpxe.sh command.

                      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 Jun 19, 2019, 2:20 PM Reply Quote 0
                      • A
                        astrugatch @george1421
                        last edited by Jun 19, 2019, 2:20 PM

                        @george1421

                        Thanks for the help Pinging @Sebastian-Roth

                        1 Reply Last reply Reply Quote 0
                        • A
                          astrugatch
                          last edited by Jun 19, 2019, 3:28 PM

                          @Tom-Elliott
                          Ping

                          1 Reply Last reply Reply Quote 0
                          • S
                            Sebastian Roth Moderator
                            last edited by Jun 24, 2019, 6:26 AM

                            @astrugatch said in PXE boot failed 1.5.6:

                            I tried running the buildpxe.sh and that didn’t fix the issue.

                            Hey there, back to work, can try to help you here. When running the buildipxe.sh do you get any errors at the end? It should put out quite some text output. Does it? Can you copy&paste all of that? Just after running it, can you please also run date && ls -al /tftpboot and copy&paste the output here as well?

                            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 Jun 25, 2019, 12:48 PM Reply Quote 0
                            • A
                              astrugatch @Sebastian Roth
                              last edited by Jun 25, 2019, 12:48 PM

                              @Sebastian-Roth

                              Welcome back!

                              Attaching a log file from my ssh session that should have all the info you asked for.

                              20190625_084305.SSH.w0t0p0.5D9392E8-A16D-40C6-B829-79E0F6F88A28.36728.3482263491.log

                              1 Reply Last reply Reply Quote 0
                              • S
                                Sebastian Roth Moderator
                                last edited by Jun 25, 2019, 1:00 PM

                                @astrugatch Great! Well that looks interesting. Building looks fine so far but it seems to not copy the files over to /tftpboot for some unknown reason. So far I’ve only had a quick look at the log. Maybe something I missed there.

                                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

                                1 Reply Last reply Reply Quote 0
                                • S
                                  Sebastian Roth Moderator
                                  last edited by Jun 25, 2019, 1:04 PM

                                  @astrugatch Are you sure you are on 1.5.6? From the output it looks more like you have 1.5.5 really because in ~/trunk/ directory you only have binaries...zip files up to 1.5.5…

                                  Just asking because there was an issue in the iPXE build script that I fixed between 1.5.5 and 1.5.6 if I remember correct.

                                  Please run and post output here:

                                  cd ~/trunk/
                                  git branch -v
                                  

                                  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 3 Replies Last reply Jun 25, 2019, 1:30 PM Reply Quote 0
                                  • A
                                    astrugatch @Sebastian Roth
                                    last edited by Jun 25, 2019, 1:30 PM

                                    @Sebastian-Roth

                                    root@fogimaging:~/trunk# git branch -v
                                      dev-branch 71b77da [behind 252] Release 1.5.2 to fix install bugs and new item creation bugs.
                                    * master     d75b1d3 Merge branch 'dev-branch' of github.com:FOGProject/fogproject into dev-branch
                                      working    f3fe2ce [behind 67] Add testing of Redhat < 7 for maintaining native php handling vs. FPM
                                    root@fogimaging:~/trunk#```
                                    1 Reply Last reply Reply Quote 0
                                    • A
                                      astrugatch @Sebastian Roth
                                      last edited by Jun 25, 2019, 1:31 PM

                                      @Sebastian-Roth Screen Shot 2019-06-25 at 9.31.38 AM.png

                                      1 Reply Last reply Reply Quote 0
                                      • A
                                        astrugatch @Sebastian Roth
                                        last edited by Jun 25, 2019, 1:33 PM

                                        @Sebastian-Roth

                                        Its odd because I’ve re-run the 1.5.6 installer recently too which from what I understand also runs the build.

                                        1 Reply Last reply Reply Quote 0
                                        • S
                                          Sebastian Roth Moderator
                                          last edited by Jun 25, 2019, 2:05 PM

                                          @astrugatch Strange. Please run ls -al ~/trunk/bin/error_logs/ and post output here.

                                          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 Jun 25, 2019, 2:13 PM Reply Quote 0
                                          • A
                                            astrugatch
                                            last edited by Jun 25, 2019, 2:08 PM

                                            @Sebastian-Roth said in PXE boot failed 1.5.6:

                                            ls -al ~/trunk/bin/error_logs/

                                            root@fogimaging:~/trunk# ls -al ~/trunk/bin/error_logs/
                                            total 516
                                            drwxr-xr-x 2 root root 4096 May 3 20:20 .
                                            drwxr-xr-x 5 root root 4096 May 3 20:12 …
                                            -rw-r–r-- 1 root root 45530 Mar 1 2018 fog_error_1.5.0.log
                                            -rw-r–r-- 1 root root 37941 Nov 13 2017 fog_error_1.5.0-RC-10.log
                                            -rw-r–r-- 1 root root 41473 Jan 26 2018 fog_error_1.5.0-RC-11.log
                                            -rw-r–r-- 1 root root 58 Feb 15 2018 fog_error_1.5.0-RC-12.log
                                            -rw-r–r-- 1 root root 39477 Feb 15 2018 fog_error_1.5.0-RC-13.log
                                            -rw-r–r-- 1 root root 41019 Apr 25 2018 fog_error_1.5.2.11.log
                                            -rw-r–r-- 1 root root 42209 Apr 11 2018 fog_error_1.5.2.log
                                            -rw-r–r-- 1 root root 41937 May 30 2018 fog_error_1.5.3.log
                                            -rw-r–r-- 1 root root 43541 Aug 13 2018 fog_error_1.5.4.log
                                            -rw-r–r-- 1 root root 45401 Nov 20 2018 fog_error_1.5.5.log
                                            -rw-r–r-- 1 root root 64951 Jun 19 08:40 fog_error_1.5.6.log
                                            -rw-r–r-- 1 root root 15208 Jun 19 08:32 foginstall.log
                                            root@fogimaging:~/trunk#

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

                                            147

                                            Online

                                            12.0k

                                            Users

                                            17.3k

                                            Topics

                                            155.2k

                                            Posts
                                            Copyright © 2012-2024 FOG Project