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

DHCP server to allow clients to boot via TFTP / PXE

Scheduled Pinned Locked Moved Solved
General Problems
3
16
3.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.
  • R
    radjunior @george1421
    last edited by radjunior May 19, 2021, 11:56 AM May 19, 2021, 5:51 PM

    @george1421 I managed to solve it by changing from ipxe.efi to snponly.eficonsidering that my machines are all HP and support only UEFI boot.
    I managed to enter the FOG interface but I was unable to register the device to upload the image, I get the following error:

    WhatsApp Image 2021-05-19 at 14.48.01.jpeg

    I performed tests with the notebook connected directly to my server, I disabled the option if boot security, and even then there seems to be no solution.

    1 Reply Last reply Reply Quote 0
    • S
      Sebastian Roth Moderator
      last edited by Sebastian Roth May 19, 2021, 12:23 PM May 19, 2021, 6:22 PM

      @radjunior When it drops you to the iPXE shell please run the command imgstat there, take a picture and post here.

      As well please run the following commands on your FOG server console and post output here:

      file /var/www/html/fog/service/ipxe/bzImage*
      md5sum /var/www/html/fog/service/ipxe/bzImage*
      

      Edit: Now that I look at it again I wonder if there is still some kind of security chip enabled in the UEFI firmware. Please double check to make sure this kind of stuff is disabled. On the other hand I’d think that secure boot would even prevent iPXE from being loaded.

      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

      R 1 Reply Last reply May 19, 2021, 6:53 PM Reply Quote 0
      • R
        radjunior @Sebastian Roth
        last edited by May 19, 2021, 6:53 PM

        @Sebastian-Roth
        I ran the imgstat and ifstat :
        WhatsApp Image 2021-05-19 at 15.43.47.jpeg
        My FOG server is also my DHCP server, both operate together on Debian: 192.168.1.22
        I’m new to this area, How do I open the Fog console on it?
        I tried to execute the command in the Debian terminal and got no results

        1 Reply Last reply Reply Quote 0
        • S
          Sebastian Roth Moderator
          last edited by May 19, 2021, 7:29 PM

          @radjunior said in DHCP server to allow clients to boot via TFTP / PXE:

          I’m new to this area, How do I open the Fog console on it?
          I tried to execute the command in the Debian terminal and got no results

          The normal Linux terminal/console is exactly what I meant. What do you mean by “no results”. It would either return with output or an error message (command or file not found…).

          As we see bzImage : 6057 bytes in the picture I guess that something is really wrong with that kernel file. It’s way too small. On the other hand you say that legacy BIOS machines boot correctly, right?

          Run the following (modified) commands on the Debian terminal and post output here:

          ls -al /var/www/{html,}/fog/service/ipxe/bzImage*
          file /var/www/{html,}/fog/service/ipxe/bzImage*
          md5sum /var/www/{html,}/fog/service/ipxe/bzImage*
          

          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

          R 1 Reply Last reply May 19, 2021, 9:36 PM Reply Quote 0
          • R
            radjunior @Sebastian Roth
            last edited by radjunior May 19, 2021, 3:46 PM May 19, 2021, 9:36 PM

            @sebastian-roth Yes, it works perfectly in legacy BIOS mode.
            Commands on the console:
            Edit- I accessed via SSH and took a print, to improve the quality
            comandos console fog.png

            1 Reply Last reply Reply Quote 0
            • S
              Sebastian Roth Moderator
              last edited by May 20, 2021, 5:49 AM

              @radjunior Ok, the files look fine. Although this seems to be a dev-branch kernel that we don’t have online anymore. Not an issue but I can’t verify the checksums.

              Do you have other machines (different models) in UEFI mode that you can try PXE booting on?

              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

              R 1 Reply Last reply May 20, 2021, 11:21 AM Reply Quote 0
              • R
                radjunior @Sebastian Roth
                last edited by radjunior May 20, 2021, 5:31 AM May 20, 2021, 11:21 AM

                @sebastian-roth I managed to solve by separating the servers in separate machines and installing the FOG again. I changed the Ip, I was successful, I managed to pass the registration of the machine but in the capture
                WhatsApp Image 2021-05-20 at 08.11.21.jpeg
                ERROR:

                Could not mount '/dev/nvme0n1p3' ( remove page file) 
                Args Passed: '/dev/nvme0n1pe' 
                Reason: The disk contains an unclean file system (0,0) Metadata kept in Windows Cache, refused mount. 
                Failed to Mount '/dev/nvme0n1p3' The NTFS partition is in an unsafe state. Please resume and shutdown Windows fully (no hibernation or fast restarting)or mount the volume read-only with the 'ro' mount option
                

                Edit:
                FOG Server:
                Version: 1.5.6
                Ubuntu 10.40.0.157

                DHCP server = Windows Server 10.40.0.151

                1 Reply Last reply Reply Quote 0
                • S
                  Sebastian Roth Moderator
                  last edited by May 20, 2021, 3:27 PM

                  @radjunior Not sure I understand what you mean by separate the servers to solve the problem but good to hear it works now.

                  For the new issue please open another topic so we don’t mix things up. Helps other users to easier learn from these findings.

                  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

                  R 1 Reply Last reply May 20, 2021, 3:38 PM Reply Quote 0
                  • R
                    radjunior @Sebastian Roth
                    last edited by radjunior May 20, 2021, 9:39 AM May 20, 2021, 3:38 PM

                    @sebastian-roth Previously I had installed Debian and installed the isc-dhcp-server package and fog in it, configured both with the same IP, a dynamic scope for boot, all according to Example 1
                    From that I started to find errors as presented in this topic, It was then that I had the idea of separating a VM for each one and I opted for the windows server as a DHCP server, I only changed option 66 and 67, filename = snponly.efi to boot UEFI and it worked.

                    Edit: You can mark this topic as resolved

                    1 Reply Last reply Reply Quote 0
                    • S
                      Sebastian Roth Moderator
                      last edited by May 20, 2021, 5:00 PM

                      @radjunior Can’t believe that switching to Windows DHCP server would solve a kernel download issue. But hey, what do I know. Great you got this solved!

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

                      201

                      Online

                      12.0k

                      Users

                      17.3k

                      Topics

                      155.2k

                      Posts
                      Copyright © 2012-2024 FOG Project