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

Fresh VM and Fog 1.2.0 install having issues with iPXE boot

Scheduled Pinned Locked Moved
FOG Problems
5
62
26.2k
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 @jcook
    last edited by Sebastian Roth Apr 19, 2016, 3:41 PM Apr 19, 2016, 9:41 PM

    @jcook said:

    I have the option to make the DHCP options be given in either ASCII or as an IP address or hex for that matter. Does is make a difference what I choose?

    You can try ASCII instead of IP address but I kind of doubt this will make a difference. But please add another option (number: 60, type: String, value: PXEClient) and see if that helps.

    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
    • G
      george1421 Moderator @jcook
      last edited by Apr 19, 2016, 10:09 PM

      @jcook If you experience no joy on this we may need to get a pcap file (tcpdump) of the dhcp discovery process to see what is or isn’t being sent. As long as the pxe client and fog server are in the same subnet/vlan its pretty easy to collect.

      While this part isn’t specifically a FOG issue, it is one of the more common problems to setup. If you hang in there we can usually help you through this part. While PXE booting is not difficult to setup, there are a few parts that need to be configured in a specific order.

      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
      • J
        jcook
        last edited by Apr 20, 2016, 1:36 PM

        Fog worked great before so I’m definitely gonna get it working again one way or another. Since our school is fairly small I actually have time over the summer to image computer individual if I need too. At the moment though, I have all the computers on the campus with this Fog server network booting by default. Some of the teachers can handle pressing escape to skip it, so I have to go do it for them. But its a minor inconvenience compared to the power of Fog! I am going to call my switching support and see if they can help me see if the options are being passed. If not I can temporarily move fog to the same sub net and do the tcpdump on it again. If I have to do the capture I will post file.

        1 Reply Last reply Reply Quote 0
        • J
          jcook
          last edited by Apr 20, 2016, 2:20 PM

          I built my own iPXE kernel with this:

          #!ipxe
          
          dhcp
          set next-server 172.18.164.6
          set filename undionly.kpxe
          chain tftp://${next-server}/${filename}
          
          

          Then saved the file to my fog server and updated option 67 to the file name. Also changed owner and group. Boot client and at first it didn’t ask for the IP, but it loops and never loads the Fog menu. I think I can see why its doing it but don’t what change.

          T 1 Reply Last reply Apr 20, 2016, 2:22 PM Reply Quote 0
          • T
            Tom Elliott @jcook
            last edited by Apr 20, 2016, 2:22 PM

            @jcook That is because you have it looping itself.

            It’s ALWAYS going to be loking to get the next-server and filename which is the same you’re telling it to request.

            Your ipxe kernel file should be

            #!ipxe
            dhcp
            set next-server 172.18.164.6
            chain tftp://${next-server}/default.ipxe

            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

            1 Reply Last reply Reply Quote 1
            • J
              jcook
              last edited by Apr 20, 2016, 2:36 PM

              It still asks me for the IP of the Fog server. This stuff is mostly beyond me but maybe that will help yall out lol.

              T 1 Reply Last reply Apr 20, 2016, 2:45 PM Reply Quote 0
              • T
                Tom Elliott @jcook
                last edited by Apr 20, 2016, 2:45 PM

                @jcook What’s the contents of your /tftpboot/default.ipxe file?

                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

                1 Reply Last reply Reply Quote 0
                • J
                  jcook
                  last edited by jcook Apr 20, 2016, 8:58 AM Apr 20, 2016, 2:56 PM

                  #!ipxe
                  cpuid --ext 29 && set arch x86_64 || set arch i386
                  params
                  param mac0 ${net0/mac}
                  param arch ${arch}
                  param platform ${platform}
                  param product ${product}
                  param manufacturer ${product}
                  param ipxever ${version}
                  param filename ${filename}
                  isset ${net1/mac} && param mac1 ${net1/mac} || goto bootme
                  isset ${net2/mac} && param mac2 ${net2/mac} || goto bootme
                  :bootme
                  chain http://172.18.164.6/fog/service/ipxe/boot.php##params
                  
                  
                  
                  1 Reply Last reply Reply Quote 0
                  • J
                    jcook
                    last edited by jcook Apr 20, 2016, 9:31 AM Apr 20, 2016, 3:26 PM

                    Here is a packet capture from the router that the support team was able to set up. Maybe it will shine some light.

                    0_1461165877412_000001_FOG_1461164083.pcap

                    undionly.kpxe.new is actaully the original that came with Fog that I renamed.

                    1 Reply Last reply Reply Quote 0
                    • S
                      Sebastian Roth Moderator
                      last edited by Sebastian Roth Apr 20, 2016, 10:45 AM Apr 20, 2016, 4:44 PM

                      Have your tried my last suggestion yet?

                      But please add another option (number: 60, type: String, value: PXEClient) and see if that helps.

                      In that pcap file I see option 67 set to undionly.kpxe.new… No wonder you are back to the tftp server prompt…

                      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
                      • J
                        jcook
                        last edited by jcook Apr 20, 2016, 11:23 AM Apr 20, 2016, 4:48 PM

                        @Sebastian-Roth I added the option 60, but it didn’t seem to help, but it did give this"

                        PXE-E51:  No DHCP or proxyDHCP offers were received.
                        
                        
                        1 Reply Last reply Reply Quote 0
                        • J
                          jcook
                          last edited by Apr 20, 2016, 5:38 PM

                          How can I download/overight the files in /tftpboot/ to be the defaults? I should just given them new names but now I can’t remember what I renamed them to 100%.

                          1 Reply Last reply Reply Quote 0
                          • J
                            jcook
                            last edited by jcook Apr 20, 2016, 2:40 PM Apr 20, 2016, 8:40 PM

                            Tom, when I use that iPXE kernel you suggested i get something similar to the following (transcribed from a video i had to freeze frame to catch lol) :

                            
                            tftp://172.18.164.6/default.ipxe... ok
                            params: command not found
                            Could not boot: Exec format error (http://ipxe.org/2e022001)
                            
                            

                            Not sure if it matter, but my cell phone videos is hard to read the 0’s or 8’s in that url.

                            Tom ElliottT 1 Reply Last reply Apr 21, 2016, 12:19 AM Reply Quote 0
                            • Tom ElliottT
                              Tom Elliott @jcook
                              last edited by Apr 21, 2016, 12:19 AM

                              @jcook just guessing this is the ipxe file you created?

                              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

                              1 Reply Last reply Reply Quote 0
                              • george1421G
                                george1421 Moderator
                                last edited by george1421 Apr 20, 2016, 6:54 PM Apr 21, 2016, 12:53 AM

                                Ok, this thread has gone on for 3 pages now. I think we need to regroup and understand where things are at.

                                My first recommendation is for the OP to upgrade to the latest trunk version (if not already there). Trying to chase issues with 1.2.0 doesn’t add value since its so old. That way we will have the latest kernel and inits as well as a known configuration for ipxe. My recommendation would be to spin up a new VM and install the trunk version directly on the vm and bypass upgrading from 1.2.0 stable.

                                Secondly we need to identify the dhcp server being used here and if at all possible use either a microsoft dhcp server or a linux dhcp server. Lets try to remove any (random) dhcp server and proxy dhcp issues from the picture.

                                Third, I think we have the networking environment fixed with the portfast setting in the switch.

                                (this will sound a bit condescending but its not intended to be that way). Setting up the environment for hosting FOG is just not that difficult when we are using a consistent build and a standard pxe booting resources. Simply if your dhcp server doesn’t support pxe booting properties, then get a different one.

                                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
                                • S
                                  Sebastian Roth Moderator
                                  last edited by Apr 21, 2016, 6:21 AM

                                  @jcook You are on the right track with your self build iPXE binary (as my option 60 didn’t do what I expexted!)… I always wanted to document the options needed and so I did just now: https://wiki.fogproject.org/wiki/index.php?title=IPXE#rom-o-matic.eu

                                  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

                                  Wayne WorkmanW 1 Reply Last reply Apr 21, 2016, 11:47 PM Reply Quote 1
                                  • J
                                    jcook
                                    last edited by Apr 21, 2016, 1:41 PM

                                    Tom - Yes, I used this code in rom-o-matic:

                                    #!ipxe
                                    dhcp
                                    set next-server 172.18.164.6
                                    chain tftp://${next-server}/default.ipxe
                                    

                                    Does the file name matter? I have been make new name (ie: tom-undionly.kpxe) and not overwriting what was there any more.

                                    @george1421 I have upgraded from 1.2.0 to trunk revision 7188, but can do as you suggested and go straight to trunk on a new VM. I did use a m0n0wall router and made a test network on a unmanaged switch and 1.2.0 worked fine. I just don’t know enough to set up a new DHCP server that will work with my switches and vlan/subnets, etc. on my own. DHCP is handled by a Adtran Netvanta 3140.

                                    @Sebastian-Roth When I used the wiki article you mention, and Tom’s ipxe kernel I get something like “TFTP Error: File not found.” Just in case it matters, the filename the that rom-o-matic gives the file is “ipxe.kpxe”. Also I notice you say which options are yes and no, but some are ticked by default, if it isn’t listed either way in the wiki should I un-tick it?

                                    S 1 Reply Last reply Apr 21, 2016, 4:03 PM Reply Quote 0
                                    • S
                                      Sebastian Roth Moderator @jcook
                                      last edited by Apr 21, 2016, 4:03 PM

                                      @jcook said:

                                      Also I notice you say which options are yes and no, but some are ticked by default, if it isn’t listed either way in the wiki should I un-tick it?

                                      Follow the instructions and leave defaults if they are not mentioned in the wiki article. I hope I got it all right.

                                      If you name the file tom-undionly.kpxe or ipxe.kpxe you need to modify your DHCP option 67 to match the filename!

                                      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
                                      • J
                                        jcook
                                        last edited by Apr 21, 2016, 4:10 PM

                                        @Sebastian-Roth OK, thats what i figured but wanted to make sure. I am actaully following george1421 suggestions and setting up a fresh fog server with the trunk version. I will see what those defaults do, and then try out the custom kernel too if I need to.

                                        1 Reply Last reply Reply Quote 0
                                        • J
                                          jcook
                                          last edited by Apr 21, 2016, 8:56 PM

                                          Just wanted to update everyone on where I got today. I was unable to get the trunk version of fog install per these directions: https://wiki.fogproject.org/wiki/index.php?title=Installation#Update_to_latest

                                          So remembering that the content filter was blocking stuff and fixing that let me register clients, upload and deploy images, etc (The only issue that remains is the being prompted for the TFTP server IP), I decided to fire up my attempt at rebuilding our old 0.32 Fog server, and it is doing everything I need it to. I am able to image, upload and deploy, and I never get prompted to put in the TFTP server IP. For that install my option 66 is the server IP as expected, and I am using pxelinux.0 as my boot file for option 66.

                                          I’m hoping that might make since to yall and maybe make something click as to what my problem was with new install (which was 1.2.0->upgraded to a version of trunk that I downloaded on 4/15/2016).

                                          If that makes you think of anything, or you have other questions let me know. Since my immediate need seem to be met for now I was planning on installing 1.2.0 again and fooling with it and see if I can figure out whats going on once I have caught up on other projects.

                                          1 Reply Last reply Reply Quote 0
                                          • 1
                                          • 2
                                          • 3
                                          • 4
                                          • 3 / 4
                                          3 / 4
                                          • First post
                                            42/62
                                            Last post

                                          149

                                          Online

                                          12.0k

                                          Users

                                          17.3k

                                          Topics

                                          155.2k

                                          Posts
                                          Copyright © 2012-2024 FOG Project