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

iPXE open command line

Scheduled Pinned Locked Moved
General Problems
3
11
3.8k
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.
  • G
    george1421 Moderator
    last edited by Aug 10, 2020, 12:30 PM

    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 Aug 10, 2020, 12:39 PM

      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.

      G 1 Reply Last reply Aug 10, 2020, 1:42 PM Reply Quote 0
      • G
        george1421 Moderator @Oleg60
        last edited by Aug 10, 2020, 1:42 PM

        @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 Aug 10, 2020, 3:29 PM

          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.

          G 1 Reply Last reply Aug 10, 2020, 4:36 PM Reply Quote 0
          • G
            george1421 Moderator @Oleg60
            last edited by george1421 Aug 10, 2020, 10:37 AM Aug 10, 2020, 4:36 PM

            @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 Aug 11, 2020, 4:59 AM

              @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 Aug 11, 2020, 9:29 AM Reply Quote 1
              • O
                Oleg60
                last edited by Aug 11, 2020, 9:15 AM

                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.

                G 1 Reply Last reply Aug 11, 2020, 9:36 AM Reply Quote 0
                • O
                  Oleg60 @Sebastian Roth
                  last edited by Aug 11, 2020, 9:29 AM

                  @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
                  • G
                    george1421 Moderator @Oleg60
                    last edited by Aug 11, 2020, 9:36 AM

                    @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 Aug 11, 2020, 9:39 AM Reply Quote 1
                    • O
                      Oleg60 @george1421
                      last edited by Aug 11, 2020, 9:39 AM

                      @george1421 Thanks, I really appreciate your help!

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

                      274

                      Online

                      12.0k

                      Users

                      17.3k

                      Topics

                      155.2k

                      Posts
                      Copyright © 2012-2024 FOG Project