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

Imaging issue, dhcp server?

Scheduled Pinned Locked Moved Solved
FOG Problems
6
18
6.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.
  • M
    mitzayapa
    last edited by Jan 6, 2016, 12:38 PM

    First of all: Happy New Year guys 🙂 , now i have a problem you guys might give me a hint how to solve.

    I´m now testing trunk version , 5704 , every i want to image a client , i choose the image through quick image , select the image , then it gives me a black screen and freezes.This has to do with an external router that i have , because if i disable dhcp on that router works like charm.

    The thing is i need that routers dhcp enabled, please point me in the right direction how to solve this.

    thank you in advance

    1 Reply Last reply Reply Quote 0
    • T
      Tom Elliott
      last edited by Jan 6, 2016, 12:39 PM

      I don’t know what the router is. If turning off dhcp fixes it, do you have a secondary dhcp server running?

      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
      • M
        mitzayapa
        last edited by mitzayapa Jan 6, 2016, 6:45 AM Jan 6, 2016, 12:44 PM

        its a Thomson TWG870 cable-router that provides internet connection, i would disable the dhcp but i really can’t.It has to be enabled.

        T 1 Reply Last reply Jan 6, 2016, 12:45 PM Reply Quote 0
        • T
          Tom Elliott @mitzayapa
          last edited by Jan 6, 2016, 12:45 PM

          @mitzayapa I’m not asking if it can or can’t be disabled, you’ve already established that.

          Do you have another DHCP Server?

          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
          • M
            mitzayapa
            last edited by Jan 6, 2016, 12:46 PM

            I only have the cable-router and the fog server that provide dhcp service.

            T G 2 Replies Last reply Jan 6, 2016, 12:49 PM Reply Quote 0
            • T
              Tom Elliott @mitzayapa
              last edited by Jan 6, 2016, 12:49 PM

              @mitzayapa So you have 2 dhcp servers in the same network?

              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
              • T
                Tom Elliott
                last edited by Jan 6, 2016, 12:51 PM

                For further clarification, are both dhcp server’s trying to issue ip addresses within the same scope?

                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
                • E
                  EAHarvey
                  last edited by Jan 6, 2016, 7:46 PM

                  Sounds like you have your Fog Network on the same as your normal router that provides your internet. I would just use an extra NIC in your machine and set it to another IP Scheme. Then just use the one Gateway from your main router in order to access the internet on your server.

                  Just a thought.

                  1 Reply Last reply Reply Quote 0
                  • G
                    george1421 Moderator @mitzayapa
                    last edited by george1421 Jan 6, 2016, 1:55 PM Jan 6, 2016, 7:52 PM

                    @mitzayapa said:

                    I only have the cable-router and the fog server that provide dhcp service.

                    IF these two dhcp servers are in the same broadcast domain (L2 network) you WILL have an issue. My recommendation is to disable the dhcp server in the FOG server. If your cable-router doesn’t support pxe booting (most don’t) then setup dnsmasq on your FOG server to fill in the missing bits.

                    Here is something I put together for centos 7, if you are running ubuntu this can still get you started. https://forums.fogproject.org/topic/6376/install-dnsmasq-on-centos-7

                    I was able to supply dhcp pxe boot information on my home kit using a linksys WRT54 internet router using the stock firmware and a fog server with dnsmasq enabled.

                    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!

                    W 1 Reply Last reply Jan 6, 2016, 8:18 PM Reply Quote 0
                    • W
                      Wayne Workman @george1421
                      last edited by Wayne Workman Jan 6, 2016, 2:18 PM Jan 6, 2016, 8:18 PM

                      @george1421 There is also this: http://sourceforge.net/projects/fogupdateip/?source=directory

                      It will configure dnsmasq for you.

                      And you could let your server receive DHCP for it’s address as well.

                      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 1
                      • E
                        EAHarvey
                        last edited by Jan 8, 2016, 2:29 PM

                        Any update on this @mitzayapa ?

                        1 Reply Last reply Reply Quote 0
                        • M
                          mitzayapa
                          last edited by mitzayapa Jan 10, 2016, 3:29 AM Jan 10, 2016, 9:23 AM

                          hey guys ,
                          so i’ve disabled fog’s DHCP , installed dnsmasq as instructed , but now i clients get can´t reach default.ipxe; for some reason it points at the dhcp cable-router.This is what i get:

                          0_1452417566842_Sin título.jpg

                          192.168.137.51 is the fog server (it has dhcp disabled)
                          192.168.137.1 is the cable-router

                          Will dnsmasq affect the imaging speed?(the cable-router is a 10/100)

                          Sorry for replying so late , thanks for the enormous help provided.

                          here’s what i have in /etc/dnsmasq.d/fog.conf :

                          # Don't function as a DNS server:
                          port=0
                          
                          # Log lots of extra information about DHCP transactions.
                          log-dhcp
                          
                          # Set the root directory for files available via FTP.
                          tftp-root=/tftpboot
                          
                          # The boot filename, Server name, Server Ip Address
                          dhcp-boot=undionly.kpxe,,192.168.137.51
                          
                          # Disable re-use of the DHCP servername and filename fields as extra
                          # option space. That's to avoid confusing some old or broken DHCP clients.
                          dhcp-no-override
                          
                          # PXE menu.  The first part is the text displayed to the user.  The second is the timeout, in seconds.
                          pxe-prompt="Booting FOG Client", 1
                          
                          # The known types are x86PC, PC98, IA64_EFI, Alpha, Arc_x86,
                          # Intel_Lean_Client, IA32_EFI, BC_EFI, Xscale_EFI and X86-64_EFI
                          # This option is first and will be the default if there is no input from the user.
                          pxe-service=X86PC, "Boot to FOG", undionly
                          pxe-service=X86-64_EFI, "Boot to FOG UEFI", ipxe
                          
                          dhcp-range=192.168.137.51,proxy
                          
                          T 1 Reply Last reply Jan 10, 2016, 11:38 AM Reply Quote 0
                          • T
                            Tom Elliott @mitzayapa
                            last edited by Tom Elliott Jan 10, 2016, 5:41 AM Jan 10, 2016, 11:38 AM

                            @mitzayapa edit the file /tftp boot/default.ipxe and change the IP address to match your fog server. If it already matches then I don’t know how much further I can try to help. The router, at that point, is looking at itself for next-server.

                            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
                            • M
                              mitzayapa
                              last edited by Jan 10, 2016, 12:07 PM

                              The ip was ok.This is what it contains:

                              
                              #!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://192.168.137.51/fog/service/ipxe/boot.php##params
                              
                              W 1 Reply Last reply Jan 10, 2016, 5:31 PM Reply Quote 0
                              • W
                                Wayne Workman @mitzayapa
                                last edited by Wayne Workman Jan 10, 2016, 11:42 AM Jan 10, 2016, 5:31 PM

                                @mitzayapa What OS are you running FOG on?

                                Did you know you have to restart dnsmasq after every config change for those changes to take effect ?

                                Ubuntu/Debian:
                                service dnsmasq status
                                service dnsmasq stop
                                service dnsmasq start

                                Fedora/CentOS/RHEL:
                                systemctl status dnsmasq
                                systemctl restart dnsmasq

                                @mitzayapa said:

                                Will dnsmasq affect the imaging speed?

                                No, not at all.

                                @mitzayapa said:

                                This has to do with an external router that i have , because if i disable dhcp on that router works like charm.

                                The thing is i need that routers dhcp enabled,

                                Why? Just leave your FOG server on all the time and let it do DHCP. If you’re bothered by the power consumption, go get a $40 Raspberry Pi and setup DHCP on that, set it and forget it. Or go get an old flashable router at a yard sale or at the store for 30 bucks and flash it with DD-WRT and put that imediately behind your cable modem device, this will allow you control over DHCP. Or just a old computer always-on running Fedora or CentOS in the basement with just DHCP setup on it would do the job too.

                                There are lots of options you can pursue.

                                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
                                • S
                                  Sebastian Roth Moderator
                                  last edited by Sebastian Roth Jan 10, 2016, 12:30 PM Jan 10, 2016, 6:29 PM

                                  @mitzayapa Looks like PXE information is being sent by your cable modem as well as dnsmasq. Please read through this post - from start to end (!): https://forums.fogproject.org/topic/6355/dnsmasq-proxydhcp-tries-to-pull-ipxe-default-from-wrong-ip

                                  We’ve been working on updating the embedded iPXE script and I thought we’ve got this solved by some checks. By the looks of your screenshot I guess that you don’t have the latest iPXE binaries installed. Just try downloading the latest undionly.kpxe on your FOG server:

                                  cd /tftpboot
                                  sudo mv undionly.kpxe undionly.kpxe.orig
                                  sudo wget -O undionly.kpxe "http://sourceforge.net/p/freeghost/code/HEAD/tree/trunk/packages/tftp/undionly.kpxe?format=raw"
                                  

                                  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
                                  • M
                                    mitzayapa
                                    last edited by mitzayapa Jan 24, 2016, 3:17 AM Jan 24, 2016, 8:31 AM

                                    did that , nothing chages , it tries to pull default.ipxe from router 192.168.137.1

                                    what can i do ?

                                    here’s the tcpdump file if it helps.

                                    0_1453625717390_pxeboot.pcap

                                    nevermind, it works after

                                    cp /tftpboot/undionly.kpxe /tftpboot/undionly.0

                                    thread solved, thank you all for the help provided.

                                    1 Reply Last reply Reply Quote 0
                                    • S
                                      Sebastian Roth Moderator
                                      last edited by Jan 24, 2016, 4:14 PM

                                      @mitzayapa Great to see that you were able to fix this yourself. Looking at the packet dump helps quite often!

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

                                      209

                                      Online

                                      12.0k

                                      Users

                                      17.3k

                                      Topics

                                      155.2k

                                      Posts
                                      Copyright © 2012-2024 FOG Project