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

    iPXE open command line

    Scheduled Pinned Locked Moved
    General Problems
    3
    11
    3.7k
    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.
    • O
      Oleg60
      last edited by

      Good day to all! I tried to find any clues to open iPXE command line during booting but alas i failed. Can anybody help me with the issue. (Sorry if i made any mistakes, english is’t my native language).

      1 Reply Last reply Reply Quote 0
      • george1421G
        george1421 Moderator
        last edited by

        I’m sorry I don’t understand where/what your error is. Can you provide a screen shot of the error (so I can read it) taken with a mobile phone?

        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!

        1 Reply Last reply Reply Quote 0
        • O
          Oleg60
          last edited by

          I have Fog server installed in my environment. Client gets dhcp configuration from dhcp server and then loads file from tftp server. File name is ipxe.efi. As I understand it is bootloader and it has command line where i can change some parameters. But cannot guess how can i open it. For example to chain to different source.

          george1421G 1 Reply Last reply Reply Quote 0
          • george1421G
            george1421 Moderator @Oleg60
            last edited by

            @Oleg60 You only get the command line if there is an error. Please explain what you are trying to solve. There may be a different way to go about what you want.

            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!

            1 Reply Last reply Reply Quote 0
            • O
              Oleg60
              last edited by

              have Fog server installed in my environment. Client gets dhcp configuration from dhcp server and then loads file from tftp server. File name is ipxe.efi. As I understand it is bootloader and it has command line where i can change some parameters. But cannot guess how can i open it. For example to chain to different source.

              george1421G 1 Reply Last reply Reply Quote 0
              • george1421G
                george1421 Moderator @Oleg60
                last edited by george1421

                @Oleg60 said in iPXE open command line:

                For example to chain to different source.

                I’ll ask the question again, but in a different form. What do you want to chainload? There may be a different way to go about it. With the fog iPXE boot loaders the command shell is only presented when an error is detected. If you really want to generate an error then pull the network cable after iPXE loads but before the iPXE menu is displayed.

                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!

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

                  @Oleg60 Beside forcing an error like George said there are other ways to get to the shell. Either you edit /tftpboot/default.ipxe and make the first two lines read like this:

                  #!ipxe
                  shell
                  

                  The rest of the original script can stay as is. If you exit the shell it will execute the rest of the commands. Be aware that all your PXE booting machines will run into the shell no matter what!

                  The other simple way is to create a new iPXE menu entry (web UI -> FOG Settings) and use the shell command with that. This way you have a new menu entry that you can choose to get to the iPXE shell on PXE boot up.

                  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

                  O 1 Reply Last reply Reply Quote 1
                  • O
                    Oleg60
                    last edited by

                    iPXE.png

                    After downloading NBP file and booting it I want to stop executing script and entering command line interface to point for example to other source. OR enter command line interface on Fog Project greetings image.

                    george1421G 1 Reply Last reply Reply Quote 0
                    • O
                      Oleg60 @Sebastian Roth
                      last edited by

                      @Sebastian-Roth
                      Thank you very much. I really confused everything. Your advice helped my and now everything became clear. default.ipxe script file is what I need.

                      1 Reply Last reply Reply Quote 0
                      • george1421G
                        george1421 Moderator @Oleg60
                        last edited by

                        @Oleg60 So do I understand you are not using the FOG server for computer imaging. That is fine, you just need to say so to set our understand correctly. What you are asking is not something that people (ever) have asked for.

                        So if you want to reuse FOG for something else that is OK. To get the iPXE command prompt do as Sebastian has posted. There is a text file in /tftpboot on the FOG server. That file is called default.ipxe (you can see it load in your screen shot). rename that file and make a new one. In that new text file add the following lines.

                        #!ipxe
                        shell
                        

                        Now pxe boot the target computer. The computer will load your new default.ipxe file and drop to a iPXE command shell.

                        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!

                        O 1 Reply Last reply Reply Quote 1
                        • O
                          Oleg60 @george1421
                          last edited by

                          @george1421 Thanks, I really appreciate your help!

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

                          151

                          Online

                          12.0k

                          Users

                          17.3k

                          Topics

                          155.2k

                          Posts
                          Copyright © 2012-2024 FOG Project