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

    TFTP isn't working

    Scheduled Pinned Locked Moved
    FOG Problems
    7
    37
    11.4k
    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.
    • Wayne WorkmanW
      Wayne Workman
      last edited by

      Some Hyper-V screen shots for one of our servers that is running FOG…

      Bear in mind, I configured a static IP for the FOG server via the Fedora 21 OS.

      NIC Overview
      [IMG]http://s10.postimg.org/fu5oos6fd/NIC_overview.png[/IMG]

      NIC 2
      [IMG]http://s7.postimg.org/8ce5q3dnv/NIC2.png[/IMG]

      Hyper-V virtual adapter
      [IMG]http://s10.postimg.org/pisdcw4jt/Hyper_V_virtual_adapter.png[/IMG]

      Hyper-V virtual adapter IPv4 properties
      [IMG]http://s23.postimg.org/71n5syxsb/Hyper_V_Virtual_Adapter_ip4.png[/IMG]

      Hyper-V virtual adapter - IPv6 properties
      [IMG]http://s10.postimg.org/fv1w6gsnd/Hyper_V_Virtual_Adapter_ipv6_properties.png[/IMG]

      Virtual Switch - Overview
      [IMG]http://s21.postimg.org/3viul08yf/Virtual_Switch_Overview.png[/IMG]

      Virtual Switch - Extensions
      [IMG]http://s28.postimg.org/urj4bvykt/Virtual_Switch_Extensions.png[/IMG]

      Virtual Switch - MAC address range
      [IMG]http://s11.postimg.org/z0zvoujnn/Virtual_Switch_Mac_Address_Range.png[/IMG]

      FOG NIC - Overview
      [IMG]http://s17.postimg.org/dshdq4omn/FOG_NIC_Overview.png[/IMG]

      FOG NIC - Hardware Acceleration
      [IMG]http://s12.postimg.org/t2orzls7h/FOG_NIC_Hardware_Acceleration.png[/IMG]

      FOG NIC - Fail Over
      [IMG]http://s7.postimg.org/vliubq57v/FOG_NIC_Fail_over.png[/IMG]

      FOG NIC - Advanced Features
      [IMG]http://s21.postimg.org/4vrizohnb/FOG_NIC_Advanced_Features.png[/IMG]

      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/

      1 Reply Last reply Reply Quote 0
      • ?
        A Former User
        last edited by

        [quote=“Wayne Workman, post: 44960, member: 28155”]Does this file exist? What’s in it?
        [CODE]/etc/xinetd.d/tftp[/CODE]
        What value does it have for server_args ? That’s the actual location of your tftp folder.

        [B]That file does not exist.[/B]

        Can you try to change permissions on /tftpboot to 444 and try again? (Read only for everyone)
        [CODE]chmod -R 444 /tftpboot[/CODE]

        After that, try restarting the service:
        [CODE]sudo service xinetd restart[/CODE]

        [B]Done, didn’t fix it. :([/B]

        Also, how valuable is this FOG install? Did you just build it? Does it have images on it? Are other things running on it? Is it a clean install? How many times have you ran the installer for FOG?

        [B]Install isn’t valuable at all. Nothing on it. Nothing else running on it. Have only run the installer once.[/B]

        Also, when I get to work tomorrow, I’ll share my exact Hyper-V Virtual Switch settings here, along with my NIC bindings/bridging setup. I remember it being something of a headache to get working correctly…

        [B]That would be immensely helpful. I’m guessing that’s the problem.[/B]

        Resources used:
        [url]http://ubuntuforums.org/showthread.php?t=1806090[/url]
        [url]http://www.thegeekstuff.com/2010/07/tftpboot-server/[/url]
        [url]http://askubuntu.com/questions/201505/how-do-i-install-and-run-a-tftp-server[/url]

        #LetsMakeScripts[/quote]

        1 Reply Last reply Reply Quote 0
        • Wayne WorkmanW
          Wayne Workman
          last edited by

          How are you running DHCP? What is it on?

          Also, can you try making this file?

          [CODE]/etc/xinetd.d/tftp[/CODE]

          [CODE]service tftp
          {
          protocol = udp
          port = 69
          socket_type = dgram
          wait = yes
          user = nobody
          server = /usr/sbin/in.tftpd
          server_args = -s /tftpboot
          disable = no
          }[/CODE]

          restart the service
          [CODE]sudo service xinetd restart[/CODE]

          Test tftp

          Create a file named test.txt with some content in /tftpboot path of the tftp server
          [CODE]sudo echo “Is my TFTP service working?” > /tftpboot/test.txt[/CODE]

          On some other system follow the following steps.

          [CODE]tftp x.x.x.x
          tftp> get test.txt
          //Sent 159 bytes in 0.0 seconds
          tftp> quit
          cat test.txt[/CODE]

          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/

          1 Reply Last reply Reply Quote 0
          • ?
            A Former User
            last edited by

            [quote=“Uncle Frank, post: 44969, member: 28116”]@buzzzz: AFAIK these are two very different issues. Your TFTP seems to work fine. My guess is that your next-server/filename settings might be broken or an intermediate layer 3 switch is tampering with the filename (don’t laugh, seen this a couple of times!). I think you should get into wireshark/tcpdump to really see what’s going on.
            [CODE]sudo tcpdump -i eth0 -w tftp_dump.pcap udp[/CODE]
            Startup the client then, wait till it fails, stop tcpdump (ctrl+c), transfer the PCAP file to your PC and examine it using wireshark (helpful display filters are ‘bootp’ and ‘tftp’)…

            @Kyle Nash: State ‘open|filtered’ is not a great answer but actually it’s all you can ask from a normal scan. UDP protocol doesn’t have a 3-way-handshake and is therefore is not that easy to scan than TCP is. UDP scanning is more a reverse kind of thing. IF you get a closed answer you know it is closed but if you don’t get an answer it could be for several different reasons (port is open but does not answer because you send a UDP packet with empty payload, packet was lost, packet was silently dropped, ICMP rate-limiting on the server kicked in -> no ICMP answer). Making a long story short… You need to send UDP data to find out if TFTP is working via remote access. Either use a normal tftp client (I know you tried it before) or give nmap a shot:
            [CODE]sudo nmap -sU -p 69 --script tftp-enum.nse <tftp-server-ip>[/CODE]

            Could you please run tcdpump on your FOG server too (see above)? Boot up the client and examine the dump file using wireshark. My guess is that you see DHCP traffic (display filter bootp) but no tftp traffic. In case that’s true take a closer look at the DHCP packets (next-server, filename options). Are those all correct?

            What does your network setup look like? Could you connect the client to the FOG server using a hub or dump mini switch just for testing. Possibly one of your intermediate switches or routers is blocking TFTP…[/quote]

            Ran TCP dump / wireshark.

            First: DHCP isn’t being handled by the FOG server, but by our DHCP server. That all seems to be working correctly. I can’t actually access the fog server with a standalone TFTP client let alone via PXE boot or whatever.

            tcpdump/wireshark show absolutely no data from the client machine, or the machine doing the scanning. I actually even ran a scan from another virtual server on the same host/virtual switch. Looking like this may be a hyperv issue. Any ideas?

            1 Reply Last reply Reply Quote 0
            • ?
              A Former User
              last edited by

              [quote=“Wayne Workman, post: 44988, member: 28155”]Some Hyper-V screen shots for one of our servers that is running FOG…

              Bear in mind, I configured a static IP for the FOG server via the Fedora 21 OS.

              NIC Overview
              [IMG]http://s10.postimg.org/fu5oos6fd/NIC_overview.png[/IMG]

              NIC 2
              [IMG]http://s7.postimg.org/8ce5q3dnv/NIC2.png[/IMG]

              Hyper-V virtual adapter
              [IMG]http://s10.postimg.org/pisdcw4jt/Hyper_V_virtual_adapter.png[/IMG]

              Hyper-V virtual adapter IPv4 properties
              [IMG]http://s23.postimg.org/71n5syxsb/Hyper_V_Virtual_Adapter_ip4.png[/IMG]

              Hyper-V virtual adapter - IPv6 properties
              [IMG]http://s10.postimg.org/fv1w6gsnd/Hyper_V_Virtual_Adapter_ipv6_properties.png[/IMG]

              Virtual Switch - Overview
              [IMG]http://s21.postimg.org/3viul08yf/Virtual_Switch_Overview.png[/IMG]

              Virtual Switch - Extensions
              [IMG]http://s28.postimg.org/urj4bvykt/Virtual_Switch_Extensions.png[/IMG]

              Virtual Switch - MAC address range
              [IMG]http://s11.postimg.org/z0zvoujnn/Virtual_Switch_Mac_Address_Range.png[/IMG]

              FOG NIC - Overview
              [IMG]http://s17.postimg.org/dshdq4omn/FOG_NIC_Overview.png[/IMG]

              FOG NIC - Hardware Acceleration
              [IMG]http://s12.postimg.org/t2orzls7h/FOG_NIC_Hardware_Acceleration.png[/IMG]

              FOG NIC - Fail Over
              [IMG]http://s7.postimg.org/vliubq57v/FOG_NIC_Fail_over.png[/IMG]

              FOG NIC - Advanced Features
              [IMG]http://s21.postimg.org/4vrizohnb/FOG_NIC_Advanced_Features.png[/IMG][/quote]

              My environment is a little bit different than yours as I’m on 2013 using Nic Teaming… but adjusted for that, we have identical settings. Still not working. 😞

              1 Reply Last reply Reply Quote 0
              • Wayne WorkmanW
                Wayne Workman
                last edited by

                You did try recursively changing permissions on /tftpboot ?

                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/

                1 Reply Last reply Reply Quote 0
                • ?
                  A Former User
                  last edited by

                  [quote=“Wayne Workman, post: 45049, member: 28155”]You did try recursively changing permissions on /tftpboot ?[/quote]
                  Yes sir, to both 777 and 444.

                  1 Reply Last reply Reply Quote 0
                  • ?
                    A Former User
                    last edited by

                    dr–r–r-- 2 foguser root 5 mar 2 12:39 tftpboot

                    1 Reply Last reply Reply Quote 0
                    • Wayne WorkmanW
                      Wayne Workman
                      last edited by

                      Would you be up for using Fedora 21 ?

                      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/

                      1 Reply Last reply Reply Quote 0
                      • ?
                        A Former User
                        last edited by

                        check this:
                        [url]http://fogproject.org/forum/threads/fog-server-not-wokring-over-pxe.12653/[/url]

                        TL DR this magic command (maybe) fixes all: [FONT=monospace][COLOR=#000000]sudo ln -s undionly.kpxe undionly.0[/COLOR][/FONT]

                        1 Reply Last reply Reply Quote 0
                        • Wayne WorkmanW
                          Wayne Workman
                          last edited by

                          Shouldn’t keep him from pulling a file via TFTP client from some other computer though…

                          But yeah, that step is required.

                          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/

                          1 Reply Last reply Reply Quote 0
                          • ?
                            A Former User
                            last edited by

                            [quote=“Tauno Vürmer, post: 45055, member: 29182”]check this:
                            [url]http://fogproject.org/forum/threads/fog-server-not-wokring-over-pxe.12653/[/url]

                            TL DR this magic command (maybe) fixes all: [FONT=monospace][COLOR=#000000]sudo ln -s undionly.kpxe undionly.0[/COLOR][/FONT][/quote]

                            Looks like a different problem.

                            1 Reply Last reply Reply Quote 0
                            • ?
                              A Former User
                              last edited by

                              [quote=“Wayne Workman, post: 45052, member: 28155”]Would you be up for using Fedora 21 ?[/quote]

                              Eh… might as well. I’ll just build a new VM with that on there and see how it goes. In the mean time, I’ll keep working on this install too.

                              1 Reply Last reply Reply Quote 0
                              • ?
                                A Former User
                                last edited by

                                Still not able to tftp to my Ubuntu install.

                                I started installing Fedora Core 21, but the dumb install is hanging. Anyone want to help me keep troubleshooting the Ubuntu install?

                                1 Reply Last reply Reply Quote 0
                                • Wayne WorkmanW
                                  Wayne Workman
                                  last edited by

                                  In Fedora 21 Server, I’ve found it must check the validity of the installation media before proceeding. You must allow it to do this, and not skip it. It takes about 5 - 10 minutes.

                                  In Fedora 21 Workstation, it does not do this check. And I know workstation installs just fine in Hyper-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!
                                  Daily Clean Installation Results:
                                  https://fogtesting.fogproject.us/
                                  FOG Reporting:
                                  https://fog-external-reporting-results.fogproject.us/

                                  1 Reply Last reply Reply Quote 0
                                  • ?
                                    A Former User
                                    last edited by

                                    [quote=“Wayne Workman, post: 45245, member: 28155”]In Fedora 21 Server, I’ve found it must check the validity of the installation media before proceeding. You must allow it to do this, and not skip it. It takes about 5 - 10 minutes.

                                    In Fedora 21 Workstation, it does not do this check. And I know workstation installs just fine in Hyper-V.[/quote]

                                    Nah, that’s not it. Its hanging up on provisioning the HDD/Partitions.

                                    1 Reply Last reply Reply Quote 0
                                    • Wayne WorkmanW
                                      Wayne Workman
                                      last edited by

                                      Use the installer to delete all partitions, and have the installer auto-create the required ones for you.

                                      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/

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

                                      155

                                      Online

                                      12.0k

                                      Users

                                      17.3k

                                      Topics

                                      155.2k

                                      Posts
                                      Copyright © 2012-2024 FOG Project