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

iPXE initialises devices ok but reboots when Configuring(net0 00:23:7d:b8:a5:54)......

Scheduled Pinned Locked Moved
FOG Problems
7
32
7.8k
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.
  • L
    luislesi
    last edited by luislesi Jul 15, 2016, 10:14 AM Jul 15, 2016, 4:12 PM

    Hi,
    I’m trying to configure fog in my school. My fog server is 10.1.8.1
    The school has a dhcp server cisco with ip 10.1.8.254 that we do not control. It´s controlled by an external company of the government. We ask them to configure the dhcp server with bootfile undionly.kpxe and next server 10.1.8.1.
    When client starts the iPXE initialises devices correctly but the computer reboots after Configuring(net0 00:23:7d:b8:a5:54)…

    Photos:
    https://goo.gl/photos/GuDGjB4GSMVvTsKq5
    https://goo.gl/photos/D5ZKvrEzFYHfHbZU6

    Can anyone help me?
    Best regards,
    Luislesi

    1 Reply Last reply Reply Quote 0
    • W
      Wayne Workman
      last edited by Jul 15, 2016, 4:58 PM

      Ask them to change the boot file to undionly.kkpxe (note the extra ‘k’). You will have better luck with this boot ROM generally.

      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!
      Daily Clean Installation Results:
      https://fogtesting.fogproject.us/
      FOG Reporting:
      https://fog-external-reporting-results.fogproject.us/

      L 2 Replies Last reply Jul 15, 2016, 11:41 PM Reply Quote 0
      • G
        george1421 Moderator
        last edited by Jul 15, 2016, 5:07 PM

        First welcome to the FOG forums.

        1. What target system are you trying to pxe boot? (mfg and model)
        2. Is the target computer in bios (legacy) or uefi mode? (a different boot file is needed for each type)
        3. What version of FOG are you running? (hint: look at the number near the cloud on the FOG management gui page)

        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!

        L 1 Reply Last reply Jul 15, 2016, 11:38 PM Reply Quote 0
        • L
          luislesi @george1421
          last edited by Jul 15, 2016, 11:38 PM

          @george1421

          Thanks for the reply.
          The computers are HP DC 7800. Bios is in legacy mode. The fog version is 1.2.0.
          First i configured fog in a separated network and fog worked just fine with dhcp service. But in this network i have to use an existing dhcp server.

          1 Reply Last reply Reply Quote 0
          • L
            luislesi @Wayne Workman
            last edited by Jul 15, 2016, 11:41 PM

            @Wayne-Workman
            Thanks i will try that.

            W 1 Reply Last reply Jul 15, 2016, 11:42 PM Reply Quote 0
            • W
              Wayne Workman @luislesi
              last edited by Wayne Workman Jul 15, 2016, 5:42 PM Jul 15, 2016, 11:42 PM

              @luislesi There’s also the option to tell those guys to just remove the next-server and filename and try to use dnsmasq in ProxyDHCP mode. This way, you’re always in control of those extra options and not them.

              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!
              Daily Clean Installation Results:
              https://fogtesting.fogproject.us/
              FOG Reporting:
              https://fog-external-reporting-results.fogproject.us/

              G 1 Reply Last reply Jul 16, 2016, 12:50 AM Reply Quote 1
              • G
                george1421 Moderator @Wayne Workman
                last edited by Jul 16, 2016, 12:50 AM

                @Wayne-Workman said in iPXE initialises devices ok but reboots when Configuring(net0 00:23:7d:b8:a5:54)......:

                @luislesi There’s also the option to tell those guys to just remove the next-server and filename and try to use dnsmasq in ProxyDHCP mode. This way, you’re always in control of those extra options and not them.

                I agree, when you have no control over the dhcp services then dhcpProxy running on a fog server is the next best thing (especially if you start having a mix of bios and uefi systems in your environment.

                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 1
                • L
                  luislesi @Wayne Workman
                  last edited by Jul 18, 2016, 1:00 PM

                  @Wayne-Workman

                  I changed the boot file to undionly.kkpxe and now it works but i have write exit in IPXE.
                  Do you know you to work around this?

                  Photo:
                  https://goo.gl/photos/a38gXYjXiNCT3oEN6

                  Thanks

                  W 1 Reply Last reply Jul 18, 2016, 1:20 PM Reply Quote 0
                  • W
                    Wayne Workman @luislesi
                    last edited by Jul 18, 2016, 1:20 PM

                    @luislesi It’s like iPXE isn’t getting any arguments, to me. I’ve not seen this one before, I’m going to need to defer to the other @Developers and @Moderators.

                    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!
                    Daily Clean Installation Results:
                    https://fogtesting.fogproject.us/
                    FOG Reporting:
                    https://fog-external-reporting-results.fogproject.us/

                    T 1 Reply Last reply Jul 18, 2016, 1:24 PM Reply Quote 0
                    • T
                      Tom Elliott @Wayne Workman
                      last edited by Tom Elliott Jul 18, 2016, 7:24 AM Jul 18, 2016, 1:24 PM

                      @Wayne-Workman This isn’t something We’re doing. Maybe we can do more with the boot.php script output.

                      http://fog-server/fog/service/boot.php

                      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! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                      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

                      L 2 Replies Last reply Jul 18, 2016, 2:17 PM Reply Quote 0
                      • L
                        luislesi @Tom Elliott
                        last edited by Jul 18, 2016, 2:17 PM

                        @Tom-Elliott

                        I Tom. I had to change the boot file again to undionly.kpxe.
                        At this time i don’t know how i solved this problem.
                        I tried two things:
                        I updated the kernel to version 3.19.3 and I changed permissions of ipxe:

                                 chmod -R 775 /var/www/html/fog/service/ipxe
                        

                        The only problem is that i have write exit in ipxe to download/upload start.

                        https://goo.gl/photos/a38gXYjXiNCT3oEN6

                        Many Thanks

                        W 1 Reply Last reply Jul 18, 2016, 2:30 PM Reply Quote 0
                        • W
                          Wayne Workman @luislesi
                          last edited by Jul 18, 2016, 2:30 PM

                          @luislesi We need the output of the link that Tom requested.

                          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!
                          Daily Clean Installation Results:
                          https://fogtesting.fogproject.us/
                          FOG Reporting:
                          https://fog-external-reporting-results.fogproject.us/

                          L 1 Reply Last reply Jul 19, 2016, 9:19 PM Reply Quote 0
                          • L
                            luislesi @Wayne Workman
                            last edited by luislesi Jul 19, 2016, 3:22 PM Jul 19, 2016, 9:19 PM

                            @Wayne-Workman

                            Today I installed another server with the same configurations and i noticed that the original problem was solved by getting another undionly.kpxe.

                            wget https://svn.code.sf.net/p/freeghost/code/trunk/packages/tftp/undionly.kpxe -O /tftpboot/undionly.kpxe
                            

                            I originally thought that the problem was solved by upgrading the Kernel and changing the permissions of ipxe, but the problem was solved by getting another undionly.kpxe. But I don´t know if this boot file is reliable.

                            The only thing i know, is that after this, if i write exit in ipxe, the fog works. But i need to solve this.

                            Photo: https://goo.gl/photos/GV6XxJUgdhqRAxgg6

                            The contents of boot.php that you asked (http://10.1.8.1/fog/service/ipxe/boot.php) are:

                            #!ipxe
                            cpuid --ext 29 && set arch x86_64 || set arch i386
                            colour --rgb 0xff6600 2
                            cpair --foreground 7 --background 2 2
                            console --picture http://10.1.8.1/fog/service/ipxe/bg.png --left 100 --right 80
                            :MENU
                            menu
                            colour --rgb 0xff0000 0
                            cpair --foreground 0 3
                            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.sysinfo Client System Information (Compatibility)
                            choose --default fog.local --timeout 3000 target && goto ${target}
                            :fog.local
                            exit || goto MENU
                            :fog.memtest
                            kernel memdisk iso raw
                            initrd memtest.bin
                            boot || goto MENU
                            :fog.reginput
                            kernel bzImage32 root=/dev/ram0 rw ramdisk_size=127000 ip=dhcp dns= keymap= web=10.1.8.1/fog/ consoleblank=0 loglevel=4 mode=manreg
                            imgfetch init_32.xz
                            boot || goto MENU
                            :fog.reg
                            kernel bzImage32 root=/dev/ram0 rw ramdisk_size=127000 ip=dhcp dns= keymap= web=10.1.8.1/fog/ consoleblank=0 loglevel=4 mode=autoreg
                            imgfetch init_32.xz
                            boot || goto MENU
                            :fog.sysinfo
                            kernel bzImage32 root=/dev/ram0 rw ramdisk_size=127000 ip=dhcp dns= keymap= web=10.1.8.1/fog/ consoleblank=0 loglevel=4 mode=sysinfo
                            imgfetch init_32.xz
                            boot || goto MENU
                            autoboot
                            
                            1 Reply Last reply Reply Quote 0
                            • S
                              Sebastian Roth Moderator
                              last edited by Jul 19, 2016, 9:48 PM

                              @luislesi Why does it fail on the first DHCP request is the main question I suppose…

                              Maybe spanning tree /port fast setting on the switch? Please search the wiki and forum for this.

                              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
                              • L
                                luislesi @Tom Elliott
                                last edited by Jul 21, 2016, 10:37 AM

                                @Tom-Elliott

                                I still don’t understand why computer reboots with the original undionly.kpxe that comes with the fog installer (1.2.0) and when i get the undionly.kpxe from https://svn.code.sf.net/p/freeghost/code/trunk/packages/tftp/undionly.kpxe
                                it works but i have to write exit in IPXE.
                                You can see it in this photo:
                                https://goo.gl/photos/GV6XxJUgdhqRAxgg6
                                I will try to do spanning tree /port fast setting on the switch like @Sebastian-Roth said but i think this is not the reason.
                                Is there any script that i can do to automatically exit from IPXE?
                                Thanks

                                T 1 Reply Last reply Jul 21, 2016, 10:40 AM Reply Quote 0
                                • T
                                  Tom Elliott @luislesi
                                  last edited by Jul 21, 2016, 10:40 AM

                                  @luislesi If I had to guess, if you go to the browser at url (Making adjustments for your environment)

                                  http://10.1.8.1/fog/service/ipxe/boot.php?mac=00:23:7d:b9:2d:f2

                                  What’s output to the browser? My guess is it’s missing a “boot” line.

                                  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! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                                  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

                                  L 1 Reply Last reply Jul 21, 2016, 10:45 AM Reply Quote 0
                                  • L
                                    luislesi @Tom Elliott
                                    last edited by Tom Elliott Jul 21, 2016, 4:47 AM Jul 21, 2016, 10:45 AM

                                    @Tom-Elliott

                                    The output of the file is:

                                    #!ipxe
                                    cpuid --ext 29 && set arch x86_64 || set arch i386
                                    colour --rgb 0xff6600 2
                                    cpair --foreground 7 --background 2 2
                                    console --picture http://10.1.8.1/fog/service/ipxe/bg.png --left 100 --right 80
                                    :MENU
                                    menu
                                    colour --rgb 0x00ff00 0
                                    cpair --foreground 0 3
                                    item --gap Host is registered as RP044390
                                    item --gap -- -------------------------------------
                                    item fog.local Boot from hard disk
                                    item fog.memtest Run Memtest86+
                                    item fog.keyreg Update Product Key
                                    item fog.quickimage Quick Image
                                    item fog.quickdel Quick Host Deletion
                                    item fog.sysinfo Client System Information (Compatibility)
                                    choose --default fog.local --timeout 3000 target && goto ${target}
                                    :fog.local
                                    exit || goto MENU
                                    :fog.memtest
                                    kernel memdisk iso raw
                                    initrd memtest.bin
                                    boot || goto MENU
                                    :fog.reginput
                                    kernel bzImage32 root=/dev/ram0 rw ramdisk_size=127000 ip=dhcp dns= keymap= web=10.1.8.1/fog/ consoleblank=0 loglevel=4 1
                                    imgfetch init_32.xz
                                    boot || goto MENU
                                    :fog.keyreg
                                    login
                                    params
                                    param mac0 ${net0/mac}
                                    param arch ${arch}
                                    param username ${username}
                                    param password ${password}
                                    param keyreg 1
                                    isset ${net1/mac} && param mac1 ${net1/mac} || goto bootme
                                    isset ${net2/mac} && param mac2 ${net2/mac} || goto bootme
                                    :bootme
                                    chain -ar http://10.1.8.1/fog/service/ipxe/boot.php##params ||
                                    goto MENU
                                    :fog.reg
                                    kernel bzImage32 root=/dev/ram0 rw ramdisk_size=127000 ip=dhcp dns= keymap= web=10.1.8.1/fog/ consoleblank=0 loglevel=4 1
                                    imgfetch init_32.xz
                                    boot || goto MENU
                                    :fog.quickimage
                                    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
                                    :bootme
                                    chain -ar http://10.1.8.1/fog/service/ipxe/boot.php##params ||
                                    goto MENU
                                    :fog.quickdel
                                    login
                                    params
                                    param mac0 ${net0/mac}
                                    param arch ${arch}
                                    param username ${username}
                                    param password ${password}
                                    param delhost 1
                                    isset ${net1/mac} && param mac1 ${net1/mac} || goto bootme
                                    isset ${net2/mac} && param mac2 ${net2/mac} || goto bootme
                                    :bootme
                                    chain -ar http://10.1.8.1/fog/service/ipxe/boot.php##params ||
                                    goto MENU
                                    :fog.sysinfo
                                    kernel bzImage32 root=/dev/ram0 rw ramdisk_size=127000 ip=dhcp dns= keymap= web=10.1.8.1/fog/ consoleblank=0 loglevel=4 mode=sysinfo
                                    imgfetch init_32.xz
                                    boot || goto MENU
                                    :fog.debug
                                    login
                                    params
                                    param mac0 ${net0/mac}
                                    param arch ${arch}
                                    param username ${username}
                                    param password ${password}
                                    param debugAccess 1
                                    isset ${net1/mac} && param mac1 ${net1/mac} || goto bootme
                                    isset ${net2/mac} && param mac2 ${net2/mac} || goto bootme
                                    :bootme
                                    chain -ar http://10.1.8.1/fog/service/ipxe/boot.php##params ||
                                    autoboot
                                    
                                    T 1 Reply Last reply Jul 21, 2016, 10:49 AM Reply Quote 0
                                    • T
                                      Tom Elliott @luislesi
                                      last edited by Jul 21, 2016, 10:49 AM

                                      @luislesi Does it only show the menu IF you type exit, or is exit needed only presented when the host is tasked? The Reason I ask: The picture from earlier shows the host was in a task.

                                      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! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                                      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

                                      L 1 Reply Last reply Jul 21, 2016, 10:57 AM Reply Quote 0
                                      • L
                                        luislesi @Tom Elliott
                                        last edited by Jul 21, 2016, 10:57 AM

                                        @Tom-Elliott

                                        Fog stops in IPXE even when i just want to get to the menu.

                                        1 Reply Last reply Reply Quote 0
                                        • T
                                          Tom Elliott
                                          last edited by Jul 21, 2016, 11:27 AM

                                          Are you using undionly.kpxe or undionly.kkpxe? Could you try ipxe.pxe?

                                          Is this on ALL machines, or just this particular model?

                                          Is it ONLY this machine itself and all others work?

                                          I’m just trying to get all the info.

                                          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! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                                          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

                                          L 2 Replies Last reply Jul 21, 2016, 11:38 AM Reply Quote 0
                                          • 1
                                          • 2
                                          • 1 / 2
                                          1 / 2
                                          • First post
                                            5/32
                                            Last post

                                          190

                                          Online

                                          12.1k

                                          Users

                                          17.3k

                                          Topics

                                          155.2k

                                          Posts
                                          Copyright © 2012-2024 FOG Project