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

    Fog server to serve 2 separate subnet with independant DHCP and TFTP servers

    Scheduled Pinned Locked Moved Unsolved
    FOG Problems
    2
    5
    1.6k
    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.
    • K
      kris
      last edited by

      Hello,

      I’m trying to create a storage node in order to serve 2 separate subnets with fog.
      I already have a working fog 1.2.0 installation on first subnet (eth0) with independant tftp and dhcp server.
      On second subnet(the one that should be served by storage node) there is also independant tftp and dhcp server.
      I create a storage node on subnet2.

      Here is my config:

      fog_main_server(Ubuntu 14.04):
      eth0 192.168.1.1
      eth1 192.168.2.1

      subnet1 : 192.168.1.0/24
      dhcp_and_tftp_1:
      eth0 192.168.1.2

      subnet2 : 192.168.2.0/24
      dhcp_and_tftp_2:
      eth0 192.168.2.2
      storage node(Ubuntu 14.04):
      eth0: 192.168.2.3
      client2
      eth0: 192.168.2.4

      here is ipxe script for subnet2
      #!ipxe
      menu
      item fog Launch FOG

      choose --default fog --timeout 3000 target && goto ${target}

      :fog
      cpuid --ext 29 && set arch x86_64 || set arch i386
      params
      param mac ${net0/mac}
      param arch ${arch}
      chain http://192.168.2.1/fog/service/ipxe/boot.php##params

      When I launch client2, it loads undionly.ipxe, I get my ipxe menu, then I get an error when chainloading:
      http://192.168.2.1/fog/service/ipxe/boot.php … network unreachable

      What I’m doing wrong (maybe something I misunderstand)?

      Any help would be appreciated.

      Thanks.

      Christophe

      1 Reply Last reply Reply Quote 0
      • S
        Sebastian Roth Moderator
        last edited by Sebastian Roth

        Well, iPXE does not use IP settings from previous DHCP messages. When the machine comes up it asks for an IP, loads a boot file via TFTP (if told so in the DHCP answer) and then “forgets” about the network information. iPXE has to send another DHCP request to hook up to the network itself. So your script should read like:

        ...
        dhcp && chain http://192.168.2.1/fog/service/ipxe/boot.php##params
        

        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
        • K
          kris
          last edited by

          hi Uncle Franck,

          Thanks for your answer,
          I will check this tomorrow.

          Cheers.

          1 Reply Last reply Reply Quote 0
          • K
            kris
            last edited by

            Hi Uncle franck,

            I added dhcp in my script and my client is now able to chain correctly.
            But i’m facing another problem, I try an upload from my client, it starts correctly, but it hangs at ‘clearing NTFS flag’. Something seems to be uploaded on storage node in /images/dev/. I followed some tips and check directory images rights on storage node, but it seems normal (777 , fog:root owner).
            And when I check main server web pages for tasks, the task is still in queued state.

            1 Reply Last reply Reply Quote 0
            • S
              Sebastian Roth Moderator
              last edited by

              Sounds a bit like an issue others had too. See here: https://forums.fogproject.org/topic/3072/imaging-stuck-on-upload-after-finished and here https://wiki.fogproject.org/wiki/index.php/Troubleshoot_FTP#Images_won.27t_finish_uploading.2C_won.27t_go_past_.22Clearing_ntfs_flag.22

              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

              340

              Online

              12.0k

              Users

              17.3k

              Topics

              155.2k

              Posts
              Copyright © 2012-2024 FOG Project