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

PXE help

Scheduled Pinned Locked Moved
General
4
11
3.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.
  • D
    DoubleD
    last edited by Jun 11, 2014, 2:43 PM

    I have an existing environment with an old Solaris DHCP server that I don’t know much about. The only thing that I have done with this server is to vi the IP segment file in /var/dhcp to add new devices that require DHCPing

    I installed FOG 1.1.0 configured pointing to my DHCP server and told FOG not to run DHCP - PXE boot does not work

    I then deleted the MySQL database, delete fog by rm -R /opt/fog I reinstalled FOG and this time I told it to run DHCP. I erroneously pointed the the DHCP ROUTER to my router instead of the DHCP server. - PXE worked but the new fog DHCP server was stepping on my old DHCP server and devices were getting the wrong IPs

    Can anyone provide any guidance on how to make FOG & PXE work with my old DHCP server - keep in mind I don’t know much about the old DHCP server or how it was configured.

    1 Reply Last reply Reply Quote 0
    • T
      Tom Elliott
      last edited by Jun 11, 2014, 2:49 PM

      My guess is the dhcp server you have in place wasn’t working because it’s not passing the next-server or boot file parameters.

      I’d make a copy of your FOG Server’s dhcpd.conf file and remove the packages for it from your FOG Server. Compare the dhcpd.conf file from your Solaris and dhcpd.conf from the fog server and find out how DIFFERENT they really are. My guess is it will actually be pretty simple.

      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
        Junkhacker Developer
        last edited by Jun 11, 2014, 3:03 PM

        what file is your option 67 pointing to? it should be undionly.kpxe

        signature:
        Junkhacker
        We are here to help you. If you are unresponsive to our questions, don't expect us to be responsive to yours.

        1 Reply Last reply Reply Quote 0
        • D
          DoubleD
          last edited by Jun 11, 2014, 3:19 PM

          [quote=“Tom Elliott, post: 29835, member: 7271”]My guess is the dhcp server you have in place wasn’t working because it’s not passing the next-server or boot file parameters.

          I’d make a copy of your FOG Server’s dhcpd.conf file and remove the packages for it from your FOG Server. Compare the dhcpd.conf file from your Solaris and dhcpd.conf from the fog server and find out how DIFFERENT they really are. My guess is it will actually be pretty simple.[/quote]

          WOW that was a quick response 😄

          I attempted to go down that path but I can’t find a dhcp.conf file on my Solaris server - I did find a dhcptab file in /var/dhcp but I’m not sure how to add PXE or next server. The dhcptab file seems to define the DHCP environment. perhaps I can add the next server there if I knew the syntax

          Locale m :UTCoffst=-14400:
          sun1234 m :Include=Locale:LeaseTim=1728000:LeaseNeg:
          172.16.0.0 m :Subnet=255.255.0.0:Router=172.16.0.1:
          :DNSserv=172.16.0.2:Broadcst=172.16.255.255:
          :MTU=1500:NetBNms=172.16.0.3 172.16.0.2:
          :DNSdmain=mydomain.com:NISdmain=xxx.mydomain.com:
          :NISservs=172.16.0.2:Timeserv=172.16.0.2:

          1 Reply Last reply Reply Quote 0
          • D
            DoubleD
            last edited by Jun 11, 2014, 3:22 PM

            P.S. DHCP seems to work - if I add new MAC addresses the server does reply with the address defined in the dhcp pool file

            1 Reply Last reply Reply Quote 0
            • D
              DoubleD
              last edited by Jun 11, 2014, 5:51 PM

              Well I’m confused

              I redid the fog server and told it to do DHCP

              This is what it BUILT

              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 172.16.50.254;

              subnet 172.16.50.0 netmask 255.255.255.0 {
              option subnet-mask 255.255.255.0;
              range dynamic-bootp 172.16.50.10 172.16.50.254;
              default-lease-time 21600;
              max-lease-time 43200;
              option domain-name-servers 172.16.0.186;
              option routers 172.16.0.1;
              filename “undionly.kpxe”;

              The wiki at [url]http://www.fogproject.org/wiki/index.php/Integrating_FOG_into_an_Existing_Network_in_non_intrusive_mode[/url]
              talks to modifying this file. Since I don’t know what the file looked like before I’m not sure I know what the differences are. Equally confusing is the machine that is receiving an IP from FOG. - In my environment all machines begin to get DHCP from FOG instead of my existing DHCP server.

              My network is 172.16.x.x 255.255.0.0 The fog server is bing placed on the same subnet

              This does mess with my existing DHCP server.

              1 Reply Last reply Reply Quote 0
              • J
                Jaymes Driver Developer
                last edited by Jun 11, 2014, 6:01 PM

                Don’t let fog be DHCP. If you already have a DHCP server it is bad to introduce another into the mix.

                If you are having trouble resolving your bootfile in your network, try using DNSMasq to help alleviate the bootfile issues.

                [url]http://fogproject.org/wiki/index.php/Using_FOG_with_an_unmodifiable_DHCP_server/_Using_FOG_with_no_DHCP_server#DNSMASQ_settings_for_iPXE[/url]

                WARNING TO USERS: My comments are written completely devoid of emotion, do not mistake my concise to the point manner as a personal insult or attack.

                1 Reply Last reply Reply Quote 0
                • D
                  DoubleD
                  last edited by Jun 11, 2014, 6:07 PM

                  [quote=“Jaymes Driver, post: 29873, member: 3582”]Don’t let fog be DHCP. If you already have a DHCP server it is bad to introduce another into the mix.

                  If you are having trouble resolving your bootfile in your network, try using DNSMasq to help alleviate the bootfile issues.

                  [url]http://fogproject.org/wiki/index.php/Using_FOG_with_an_unmodifiable_DHCP_server/_Using_FOG_with_no_DHCP_server#DNSMASQ_settings_for_iPXE[/url][/quote]

                  I’m such a noob at this

                  I’m running FOG on ubuntu server 12.04 LTS - I see in the link you provided ubuntu 12 is tested and working so I will give that a whirl.

                  Thank you

                  1 Reply Last reply Reply Quote 0
                  • J
                    Jaymes Driver Developer
                    last edited by Jun 11, 2014, 6:08 PM

                    [quote=“DoubleD, post: 29879, member: 24577”]I’m such a noob at this

                    I’m running FOG on ubuntu - I see in the link you provided ubuntu 12 is tested and working so I will give that a whirl.

                    Thank you[/quote]

                    I use this in my environment, it is reliable. I have used it on all version of Ubuntu to date.

                    WARNING TO USERS: My comments are written completely devoid of emotion, do not mistake my concise to the point manner as a personal insult or attack.

                    1 Reply Last reply Reply Quote 0
                    • D
                      DoubleD
                      last edited by Jun 11, 2014, 8:51 PM

                      This post is deleted!
                      1 Reply Last reply Reply Quote 0
                      • D
                        DoubleD
                        last edited by Jun 11, 2014, 9:21 PM

                        [quote=“Jaymes Driver, post: 29880, member: 3582”]I use this in my environment, it is reliable. I have used it on all version of Ubuntu to date.[/quote]

                        Jaymes - Thank you ever so much this worked! ! ! 😄

                        :oops: I erroneously followed the directions for FOD 0.33 and it was all messed up. After rereading the [URL=‘http://fogproject.org/wiki/index.php/Using_FOG_with_an_unmodifiable_DHCP_server/_Using_FOG_with_no_DHCP_server#DNSMASQ_settings_for_iPXE’]install instructions[/URL] I saw my error and undid all the stuff for FOG 033 and it worked like a charm - Now to try to figure out how to make images from an existing machine and then dump the image back

                        [INDENT=1]This information pertains to FOG 0.33 and the new iPXE boot method.[/INDENT]
                        [INDENT=1]In order to continue to use dnsmasq to dole out ip addresses and to help find the boot file, some changes need to be made to force the boot file to load the iPXE boot file.[/INDENT]
                        [INDENT=1][B]FIRST Update the schema by navigating to your fog management page and install the update.[/B][/INDENT]

                        1 Reply Last reply Reply Quote 0
                        • 1 / 1
                        1 / 1
                        • First post
                          4/11
                          Last post

                        158

                        Online

                        12.1k

                        Users

                        17.3k

                        Topics

                        155.3k

                        Posts
                        Copyright © 2012-2024 FOG Project