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

2 Error in iPXE (time out and sand device)

Scheduled Pinned Locked Moved Unsolved
FOG Problems
2
28
5.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.
  • F
    FrancoDin @george1421
    last edited by Oct 30, 2018, 2:05 PM

    @george1421

    0_1540908314508_ram.png

    The target computer is in the same subnet as the dhcp server, and yes the mikrotik is the normal dhcp server.

    G 2 Replies Last reply Oct 30, 2018, 2:07 PM Reply Quote 0
    • G
      george1421 Moderator @FrancoDin
      last edited by Oct 30, 2018, 2:07 PM

      @FrancoDin well from the screen shot I don’t see dnsmasq running.

      sudo systemctl start dnsmasq

      then make sure it starts every reboot
      sudo systemctl enable dnsmasq

      Also lets capture the version of dnsmasq to make sure its 2.76 or newer
      sudo dnsmasq -v

      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
      • G
        george1421 Moderator @FrancoDin
        last edited by george1421 Oct 30, 2018, 8:11 AM Oct 30, 2018, 2:09 PM

        @FrancoDin I also see from the screen shot you are editing the /etc/dnsmasq.conf file. This file should not be adjusted. It should have a reference to load any files in the /etc/dnsmasq.d directory. The dnsmasq.d directory is where the ltsp.conf file goes.

        Also, is your FOG server running on virtual box? If so, you need to ensure you are using a bridged network adapter for both the fog server and pxe booting client. Using a nat network adapter will cause you pains trying to get things to pxe boot.

        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!

        F 1 Reply Last reply Oct 30, 2018, 2:20 PM Reply Quote 0
        • F
          FrancoDin @george1421
          last edited by FrancoDin Oct 30, 2018, 8:26 AM Oct 30, 2018, 2:20 PM

          @george1421

          0_1540909005732_jobdns.png

          So its fail at running, and the version of dnsmasq is 2.75
          I am editing that file whit nano, because I am using Putty, and I cant coppy paste files in the ubuntu server at the moment. The fog isent runing in virtual box.

          I just realized the error is in spanish, sorry my bad, that red line says:
          Rank of dhcp not valid, in line 26 of lstp.conf
          Fail at the start

          0_1540909587748_dpfconfig.png

          G 1 Reply Last reply Oct 30, 2018, 2:36 PM Reply Quote 0
          • G
            george1421 Moderator @FrancoDin
            last edited by Oct 30, 2018, 2:36 PM

            @FrancoDin well I can see from your screen shot that you have extra text in the config file. <10.0.0.2> should be 10.0.0.2 (assuming that 10.0.0.2 is your FOG server’s IP)

            PS: Look at the FOG Forum chat bubble for additional hits

            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!

            F 1 Reply Last reply Oct 30, 2018, 2:53 PM Reply Quote 0
            • F
              FrancoDin @george1421
              last edited by Oct 30, 2018, 2:53 PM

              @george1421

              Now it works, but when I go to the PC and boot:

              Auto-Select:
              Boot to FOG

              BOOT Server ip:10.0.0.2
              TFTP.
              PXE-T01: File not Found
              Pxe-E3B: TFTP Error - File not found
              PXE-M0F: Exiting intel PXE ROm.
              Fatal: Could not read from the boot medium

              Also I see that maybe there is a problem in the IP, because there is another device whit the ip 10.0.0.2 so I will fix that tomorrow and tell you what happen

              G 1 Reply Last reply Oct 30, 2018, 6:55 PM Reply Quote 1
              • G
                george1421 Moderator @FrancoDin
                last edited by Oct 30, 2018, 6:55 PM

                @FrancoDin said in 2 Error in iPXE (time out and sand device):

                BOOT Server ip:10.0.0.2

                fwiw: In a previous post you had the fog server at 10.0.0.27

                Also the fog server must have a static IP address or one created via dhcp reservation. FOG does not fog support servers that are configured to use dhcp. Your fog deployment will break if the IP address of your fog server changes after FOG is installed.

                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!

                F 1 Reply Last reply Oct 31, 2018, 12:35 PM Reply Quote 0
                • F
                  FrancoDin @george1421
                  last edited by Oct 31, 2018, 12:35 PM

                  @george1421

                  Yhep, that broke the fog.
                  But I managed it, to update the dnsmasq, after manually instaling 80 packes from https://www.debian.org/distrib/packages , that seems to work for the pxe boot error, but it direct me to my previous IP, so I will reinstall ubuntu server, and try all again, because I try to reinstall fog, but have a problem deleting it and when try to reinstall its gets an error instalin packges,(maybe I broke that aswell).

                  G 1 Reply Last reply Oct 31, 2018, 12:46 PM Reply Quote 0
                  • G
                    george1421 Moderator @FrancoDin
                    last edited by Oct 31, 2018, 12:46 PM

                    @FrancoDin Well if you want to go through the process again, just make sure that the FOG server has a static IP address before you install FOG. Just install a normal FOG server without dhcp services.

                    Then install dnsmasq and use the config file I provided. (hint: if you are using putty to connect to your fog server, you can use copy and paste to copy the text file into nano and ltsp.conf easily).

                    Once dnsmasq is setup correctly using my config file it should work. If not then we will use the fog server and tcpdump to capture what is going wrong with the pxe booting process. We are far from just giving up. This WILL work.

                    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!

                    F 1 Reply Last reply Oct 31, 2018, 2:14 PM Reply Quote 0
                    • F
                      FrancoDin @george1421
                      last edited by FrancoDin Oct 31, 2018, 8:24 AM Oct 31, 2018, 2:14 PM

                      @george1421

                      Thank you a Lot, all working now.
                      Just one think, I follow this guide (https://forums.fogproject.org/topic/10944/using-fog-to-pxe-boot-into-your-favorite-installer-images/9) to add Linux Mint, to the fog menu. But when I boot from there Its says “Connection time out”, its has anything to deal whit dnsmasq?

                      Also, in the parameters:
                      kernel tftp://${fog-ip}/mint/18.1/vmlinu
                      Should go like this
                      kernel tftp://${10.0.0.7}/mint/18.1/vmlinuz
                      or
                      kernel tftp://$10.0.0.7/mint/18.1/vmlinuz
                      in the 3 different times its appears.

                      G F 3 Replies Last reply Oct 31, 2018, 2:31 PM Reply Quote 0
                      • G
                        george1421 Moderator @FrancoDin
                        last edited by Oct 31, 2018, 2:31 PM

                        @FrancoDin said in 2 Error in iPXE (time out and sand device):

                        kernel tftp://${fog-ip}/mint/18.1/vmlinu

                        If you use the fog parameter ${fog-ip} that will be replaced by the actual IP address of the fog server. That makes the fog menu entry portable between different fog servers.

                        Also be aware that you typed in your post
                        kernel tftp://${fog-ip}/mint/18.1/vmlinu

                        I hope its just a type-o but you missed the z on the end
                        kernel tftp://${fog-ip}/mint/18.1/vmlinuz

                        Back to your question you can also enter it as this:
                        kernel tftp://10.0.0.7/mint/18.1/vmlinuz

                        In programming terms the ${ } denote a variable used in the iPXE menu. Where the variable name is between the curly braces.

                        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
                        • F
                          FrancoDin @FrancoDin
                          last edited by Oct 31, 2018, 2:31 PM

                          @FrancoDin
                          Also… why the route is
                          kernel tftp://${fog-ip}/mint/18.1/vmlinuz
                          when actually the vmlinuz is in /tftpboot/mint/18.1

                          G 1 Reply Last reply Oct 31, 2018, 2:36 PM Reply Quote 0
                          • G
                            george1421 Moderator @FrancoDin
                            last edited by Oct 31, 2018, 2:33 PM

                            @FrancoDin said in 2 Error in iPXE (time out and sand device):

                            But when I boot from there Its says “Connection time out”, its has anything to deal whit dnsmasq?

                            If you are seeing the FOG iPXE menu then the issue is beyond dnsmasq. If you didn’t see the FOG iPXE menu then we would focus on the dnsmasq settings.

                            I’m suspecting that there is something wrong with the custom iPXE menu you created or the needed files are missing.

                            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
                            • G
                              george1421 Moderator @FrancoDin
                              last edited by Oct 31, 2018, 2:36 PM

                              @FrancoDin said in 2 Error in iPXE (time out and sand device):

                              @FrancoDin
                              Also… why the route is
                              kernel tftp://${fog-ip}/mint/18.1/vmlinuz
                              when actually the vmlinuz is in /tftpboot/mint/18.1

                              well this will become clear when you know that the tftp server’s base directory is /tftpboot. Just like the http server’s base directory is /var/www/html/. And the nfs servers base export directory is /images on the fog server. So knowing what tranfer protocol you want use, you would place the files in the correct base file directory.

                              Your menu entry is using the tftp protocol so your base directory is /tftpboot. I can tell you that tftp is the slowest protocol of the three. Depending on how you want to use this configuration you might want to change some things. If its just a test or something you use once a month its fine. But for now get it working then improve on what you have once its works.

                              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!

                              F 1 Reply Last reply Oct 31, 2018, 2:41 PM Reply Quote 0
                              • F
                                FrancoDin @george1421
                                last edited by FrancoDin Oct 31, 2018, 8:49 AM Oct 31, 2018, 2:41 PM

                                @george1421
                                ahh ok.
                                I get to here:
                                0_1540996794778_Captura de pantalla de 2018-10-31 11:37:08.png
                                When I enter Linux MInt 17.3 It first load 100%, then ok.
                                and I get to this
                                0_1540996858296_Captura de pantalla de 2018-10-31 11:40:44.png

                                0_1540997393216_Captura de pantalla de 2018-10-31 11:49:28.png

                                G 1 Reply Last reply Oct 31, 2018, 2:46 PM Reply Quote 0
                                • G
                                  george1421 Moderator @FrancoDin
                                  last edited by Oct 31, 2018, 2:46 PM

                                  @FrancoDin I don’t have this configuration setup any more, but from the error message tells me the fog bits are working correctly (even if FOG was not designed to do what you are doing). You are at the point of netbooting linux mint.

                                  Did you remember to add the kernel argument line after the initrd line?
                                  imgargs vmlinuz root=/dev/nfs boot=casper netboot=nfs nfsroot=${fog-ip}:/images/os/mint/18.1/ locale=en_US.UTF-8 keyboard-configuration/layoutcode=us quiet splash

                                  (also make sure your paths are correct)

                                  What I’m doing in this configuration its loading the linux mint kernel and inital virtual drive using the tftp protocol then by using the kernel arguments (imgargs) I’m telling the kernel to get the rest of the files via the nfs protocol (hint: nfs base directory is /images) in the path provided. From your error message I would say that linux mint has started but can’t get the rest of the files over nfs.

                                  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!

                                  F 1 Reply Last reply Oct 31, 2018, 3:32 PM Reply Quote 1
                                  • F
                                    FrancoDin @george1421
                                    last edited by Oct 31, 2018, 3:32 PM

                                    @george1421
                                    Ok, you are my new god.
                                    It was an extra character in that line, a type-o.
                                    Now all is working perfectly.
                                    Just one final doubt, what does dnsmasq do to the dhcp?, I am worry that maybe an error in the net and the DHCP failed for the server whit dnsmasq, when I put the server whit DHCP at the start, I lost connection in some devices because the two DHCP overwrite eachother. I am sure this not happen whit dnsmasq but, just wanna be sure.
                                    And sorry for the bad english.

                                    G 1 Reply Last reply Oct 31, 2018, 6:25 PM Reply Quote 0
                                    • G
                                      george1421 Moderator @FrancoDin
                                      last edited by george1421 Oct 31, 2018, 12:26 PM Oct 31, 2018, 6:25 PM

                                      @FrancoDin said in 2 Error in iPXE (time out and sand device):

                                      Just one final doubt, what does dnsmasq do to the dhcp?

                                      We have dnsmasq only configured for proxy dhcp mode. In this configuration dnsmasq will only provide pxe boot information to override dhcp options 67 and 68. You MUST have a functional dhcp server on your network too. This configuration is used when people can change the settings in their dhcp server, we just override them with dnsmasq. If you turn off dnsmasq then the only thing that falls down is pxe booting. No other services are impacted.

                                      If you are getting unexpected results from your dhcp server, then its your dhcp server not dnsmasq doing this to you.

                                      If you want me to provide that dnsmasq is not messing up your dhcp process we can do that too. We’ll just capture a typical pxe booting process using tcpdump (or wireshark) to see exactly what is going down your network wire. I can show you how.

                                      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
                                      • 2
                                      • 1 / 2
                                      1 / 2
                                      • First post
                                        20/28
                                        Last post

                                      261

                                      Online

                                      12.0k

                                      Users

                                      17.3k

                                      Topics

                                      155.2k

                                      Posts
                                      Copyright © 2012-2024 FOG Project