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

Unable to get DHCP server to restart after restart - Ubuntu 12.04

Scheduled Pinned Locked Moved
FOG Problems
4
25
17.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.
  • P
    PageTown
    last edited by Apr 28, 2015, 1:34 PM

    [FONT=Tahoma]I am running Fog 1.2.0 on Ubuntu 12.04[/FONT]. I am running Fog locally, not over a network. When I shut the Fog server machine down and restarted it, I lost my DHCP service and the machine I am trying to image is not making a PXE connection and tells me there is no DHCP service running. After Googling and trying some potential solutions I found, I am still not having any luck getting the server to start.

    [FONT=Tahoma]Here’s what I have tried so far:[/FONT]

    [FONT=Tahoma]I went into /etc/dhcp/dhcpd.conf and changed the subnet mask to what I set it as when I originally installed Fog and its DHCP service.[/FONT]

    [FONT=Tahoma]I have tried typing “sudo service isc-dhcp-server start” and I get:

    stop: Unknown Instance:
    isc-dhcp-server start/running, process 6852[/FONT]

    [FONT=Tahoma]s[/FONT][FONT=Tahoma]o I tried “sudo netstat –ump” to check and see if DHCP was running and I got:[/FONT]
    [FONT=Tahoma]netstat: invalid option – ‘m’ and a usage menu.[/FONT]

    [FONT=Tahoma]I also tried “sudo /etc/init.d/dhcp-server start” , response was “command not found”[/FONT]

    [FONT=Tahoma]Also tried “systemctl start dhcpd.service ”, response was “command not found”[/FONT]
    [FONT=Tahoma] [/FONT]

    [FONT=Tahoma]Any help would be greatly appreciated![/FONT]

    1 Reply Last reply Reply Quote 0
    • W
      Wayne Workman
      last edited by Apr 28, 2015, 1:53 PM

      What you’ve tried is correct. Below is the commands for Ubuntu DHCP start/stop/restart

      [CODE]sudo service isc-dhcp-server restart
      sudo service isc-dhcp-server start
      sudo service isc-dhcp-server stop[/CODE]

      There must be something else going on…

      I assume you were able to get to the FOG menu from the target-host before? If so, then your configuration is correct.
      It’s probably something simple… Check your patch cables to the target-host, the server, etc. Ensure they are snug.

      Did you set a static IP for the FOG server? I know that in Fedora 21 server, it’s like impossible to get DHCP/dnsmasq to work without a static IP set prior.

      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
      • P
        PageTown
        last edited by Apr 28, 2015, 2:40 PM

        [quote=“Wayne Workman, post: 46383, member: 28155”]
        [CODE]sudo service isc-dhcp-server restart
        sudo service isc-dhcp-server start
        sudo service isc-dhcp-server stop[/CODE][/quote]

        Typed the “sudo service-irc-dhcp-server start” and got “isc-dhcp-server start/running, process 7890”. Am I correct to assume that this message means my DHCP server IS running?

        [quote=“Wayne Workman, post: 46383, member: 28155”]
        I assume you were able to get to the FOG menu from the target-host before? If so, then your configuration is correct.
        It’s probably something simple… Check your patch cables to the target-host, the server, etc. Ensure they are snug.[/quote]

        Yes. I had Fog up and running. I successfully uploaded three images and deployed those images out without any problems. Checked cables, tried different cables just to make sure. They’re good and Ubuntu machine acknowledges the wired connection.

        [quote=“Wayne Workman, post: 46383, member: 28155”]Did you set a static IP for the FOG server? I know that in Fedora 21 server, it’s like impossible to get DHCP/dnsmasq to work without a static IP set prior.[/quote]

        Yes. I set a static IP for Fog and used that IP for the DHCP service also.

        I was reading on these forums that there’s a bug on Ubuntu 12.04 (Which I am using) that resets some of the IP info when the machine gets powered off? I wasn’t sure if maybe that was my issue or not.

        1 Reply Last reply Reply Quote 0
        • J
          Joseph Hales Testers
          last edited by Apr 28, 2015, 2:53 PM

          Maybe check and make sure firewall is disabled?
          sudo ufw disable

          RTFM

          1 Reply Last reply Reply Quote 0
          • W
            Wayne Workman
            last edited by Apr 28, 2015, 2:53 PM

            +1 about the firewall^^^. Make sure that’s off for troubleshooting purposes.

            You could use TCPDump to see EXACTLY what is going on…

            This should be very simple because your setup is offline and disconnected from the rest of your network.
            Check out this article, and then post a PCAP file (and hopefully look at it yourself, too).

            [url]http://fogproject.org/wiki/index.php/TCPDump[/url]

            With this, we will be able to determine exactly what’s happening/not happening.

            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
            • P
              PageTown
              last edited by Apr 28, 2015, 4:11 PM

              Here’s a txt file I saved using Wireshark of the PCAP file. Let me know if this doesn’t work. The board won’t let me upload the original PCAP file.

              [url=“/_imported_xf_attachments/1/1932_PageTownPCAPData.txt?:”]PageTownPCAPData.txt[/url]

              1 Reply Last reply Reply Quote 0
              • W
                Wayne Workman
                last edited by Apr 28, 2015, 4:14 PM

                you can compress the file as a .zip and upload…

                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
                • P
                  PageTown
                  last edited by Apr 28, 2015, 4:14 PM

                  It kind of looks like my DHCP might be giving out the wrong Netmask.
                  On my Ubuntu wired connection and when I set up Fog, I used the following info:
                  Static IP:10.1.0.185
                  Netmask: 255.255.254.0
                  Gateway: 10.1.0.1
                  DNS: 12.127.16.67

                  1 Reply Last reply Reply Quote 0
                  • P
                    PageTown
                    last edited by Apr 28, 2015, 4:20 PM

                    Excellent. Here it is.

                    [url=“/_imported_xf_attachments/1/1933_PageTownPCAPFile.zip?:”]PageTownPCAPFile.zip[/url]

                    1 Reply Last reply Reply Quote 0
                    • W
                      Wayne Workman
                      last edited by Apr 28, 2015, 4:39 PM

                      Well if you’re running on an isolated network and are handling DHCP, then you dictate what subnet to use.

                      However, this subnet must match the subnet mask that is assigned to the interface that’s handling DHCP.

                      Since this machine is on an isolated network, gateway and DNS are not required.
                      I see the FOG server AND what appears to be a client asking who has 10.1.0.1

                      Also, the FOG server is trying to send traffic to 224.0.0.251 and 224.0.0.22. If this is an isolated network, those requests shouldn’t exist, and FOG shouldn’t be trying to communicate with anything in that range.

                      Also, I see lots of DHCP discover requests, but zero responses.

                      I’d say DHCP is misconfigured. Look through your config again. There’s some examples on various sites for setup. I think there are some examples in the WiKi too.

                      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
                      • W
                        Wayne Workman
                        last edited by Apr 28, 2015, 4:42 PM

                        Are you using a crossover cable? if not, what device are you using to connect the fog server and the client?

                        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
                        • P
                          PageTown
                          last edited by Apr 28, 2015, 6:23 PM

                          I am using a standard Cat5e cable. I used the same cable to upload and deploy images before the restart so I don’t think it’s the issue.

                          Here’s what’s in my etc/dhcp/dhcpd.conf file:

                          DHCP Server Configuration file.

                          see /usr/share/doc/dhcp*/dhcpd.conf.sample

                          This file was created by FOG

                          use-host-decl-names on;
                          ddns-update-style interim;
                          ignore client-updates;
                          next-server 10.1.0.185;

                          subnet 10.1.0.0 netmask 255.255.254.0 {
                          option subnet-mask 255.255.254.0;
                          range dynamic-bootp 10.1.0.10 10.1.0.254;
                          default-lease-time 21600;
                          max-lease-time 43200;
                          option domain-name-servers 127.0.0.1;
                          option routers 10.1.0.185;
                          filename “undionly.kpxe”;
                          }

                          1 Reply Last reply Reply Quote 0
                          • W
                            Wayne Workman
                            last edited by Apr 28, 2015, 8:01 PM

                            [quote=“PageTown, post: 46443, member: 29454”]I am using a standard Cat5e cable. I used the same cable to upload and deploy images before the restart so I don’t think it’s the issue.
                            [/quote]

                            What is the standard Cat5e cable connected to? one end goes to the target-machine… the other end goes to what? What device?

                            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
                            • P
                              PageTown
                              last edited by Apr 28, 2015, 8:08 PM

                              I am running Fog on an Asus K50I laptop. One end of my cable is plugged into its ethernet port. The other, the target computer.

                              1 Reply Last reply Reply Quote 0
                              • W
                                Wayne Workman
                                last edited by Apr 28, 2015, 8:10 PM

                                Then you need a cross over cable, sir. [url]http://en.wikipedia.org/wiki/Ethernet_crossover_cable[/url]

                                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
                                • P
                                  PageTown
                                  last edited by Apr 28, 2015, 8:15 PM

                                  I didn’t need one before. Everything worked fine until I powered the server off. What’s changed?

                                  1 Reply Last reply Reply Quote 0
                                  • W
                                    Wayne Workman
                                    last edited by Apr 28, 2015, 8:30 PM

                                    [quote=“PageTown, post: 46457, member: 29454”]I didn’t need one before. Everything worked fine until I powered the server off. What’s changed?[/quote]

                                    The [U]only[/U] way that setup would have worked before is if you were using a crossover cable.

                                    So, assuming this is a cross over cable, and after the reboot, then some service must not have started up, or some other service that you don’t want DID start up… like firewall.

                                    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
                                    • P
                                      PageTown
                                      last edited by Apr 28, 2015, 8:35 PM

                                      I disabled the firewall per Joseph Hale’s suggestion. I’ll go ahead and try a crossover cable.

                                      1 Reply Last reply Reply Quote 0
                                      • P
                                        PageTown
                                        last edited by Apr 28, 2015, 8:42 PM

                                        Using a crossover cable didn’t make any difference. I’m still getting the “No DHCP or ProxyDHCP offers were received” on the PXE boot screen.

                                        Any other ideas?

                                        1 Reply Last reply Reply Quote 0
                                        • Tom ElliottT
                                          Tom Elliott
                                          last edited by Apr 28, 2015, 8:47 PM

                                          My guess is tftp isn’t running. Try [code]sudo service tftpd-hpa restart[/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! 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
                                          • 1
                                          • 2
                                          • 1 / 2
                                          1 / 2
                                          • First post
                                            2/25
                                            Last post

                                          197

                                          Online

                                          12.0k

                                          Users

                                          17.3k

                                          Topics

                                          155.2k

                                          Posts
                                          Copyright © 2012-2024 FOG Project