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

Storageip parameter in pxe menu

Scheduled Pinned Locked Moved Solved
FOG Problems
4
10
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.
  • M
    Mikael
    last edited by Sep 10, 2015, 1:57 PM

    Hi
    First of all THANK YOU for an exellent deployment system! it really works.

    I have a question regarding the advanced PXE Menu, I would like to boot from an DOS image located on the storage node. How can I point to the active node to which the host pc is connected to? Let’s say in the following menu item I would like a parameter named $storageip just like in the postdownloadscripts.

    :MENU
    menu
    item --gap -- ---------------- iPXE boot menu ----------------
    item bios1                    Update BIOS on E6320 to version A08
    item shell          ipxe shell
    item return        return to previous menu
    choose --default return --timeout 5000 target && goto ${target}
    
    :bios1
    initrd http://{$storageip}/fog/service/ipxe/bios/usb1.ima
    chain memdisk ||
    goto MENU
    
    1 Reply Last reply Reply Quote 0
    • W
      Wayne Workman
      last edited by Wayne Workman Sep 10, 2015, 5:37 PM Sep 10, 2015, 11:37 PM

      Glad you like fog. 🙂

      Why DOS?
      Windows PE was developed to replace DOS for troubleshooting, and there so happens to be great instructions for adding Windows PE into iPXE.
      http://ipxe.org/howto/winpe
      I am going to be creating a tutorial on this - with Win7 installation media included in the build - in the near future.

      So, unless there is a specific program you need to run via a preconfigured DOS environment, I’d really urge you to use Windows PE for troubleshooting purposes. Not saying you shouldn’t know some good’ole DOS (it’s very handy), but it’s limited in the troubleshooting tools it can run.

      Let us know your thoughts, we are here to help.

      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!
      Daily Clean Installation Results:
      https://fogtesting.fogproject.us/
      FOG Reporting:
      https://fog-external-reporting-results.fogproject.us/

      1 Reply Last reply Reply Quote 0
      • M
        Mikael
        last edited by Mikael Sep 16, 2015, 2:02 AM Sep 16, 2015, 8:02 AM

        This was originally a simple question about the presence of a parameter that point to the storage node IP. Is there any such parameter available when in the PXE Menu?

        About DOS, it is for firmware update, then it is faster better in all aspects than WinPE

        T 1 Reply Last reply Sep 16, 2015, 9:48 AM Reply Quote 0
        • T
          Tom Elliott @Mikael
          last edited by Sep 16, 2015, 9:48 AM

          @Mikael I believe the ip variable you’re looking for is: fog-ip

          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
          • T
            Tom Elliott
            last edited by Sep 16, 2015, 10:19 AM

            @Mikael said:

            initrd http://{$storageip}/fog/service/ipxe/bios/usb1.ima

            In essence, the quoted line would become:
            initrd http://${fog-ip}/fog/service/ipxe/bios/usb1.ima

            I have not created an element that gets the nodes IP address directly, fog-ip is simply the FOG_WEB_HOST parameter.

            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 1
            • M
              Mikael
              last edited by Sep 16, 2015, 11:28 AM

              So fog-ip does not work for me. Atleast I now know that the parameter does not exist.
              I am asking because it exists when the client run the postdownloadscripts!

              1 Reply Last reply Reply Quote 0
              • S
                Sebastian Roth Moderator
                last edited by Sep 16, 2015, 11:53 AM

                Make sure you got the braces right! {$fog-ip} will not work IMO. But ${fog-ip} should.

                Otherwise you could try using ipxe’s variable set, see here: http://ipxe.org/cfg

                Maybe ${next-server} is working for you?!

                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

                M 1 Reply Last reply Sep 21, 2015, 11:37 AM Reply Quote 1
                • M
                  Mikael @Sebastian Roth
                  last edited by Sep 21, 2015, 11:37 AM

                  @Uncle-Frank I mean that i know how fog-ip works, but I need a parameter that point to the current TFTP-server(could be on of five storage nodes or the master fog-server) that the PC boots from. let’s say that in my branch office in Tokyo, I want the PC to look at the local fog storage node in Tokyo rather than the master fog server located in sweden.
                  We use the same menu file for all offices.

                  1 Reply Last reply Reply Quote 0
                  • S
                    Sebastian Roth Moderator
                    last edited by Sep 21, 2015, 1:45 PM

                    Did you read the second part of my message? I just tried this: booted up one of my clients into a ipxe shell and typed:

                    iPXE> echo ${next-server}
                    141.62.66.236
                    iPXE>
                    

                    This is the IP of my TFTP server. So I guess this could also work in your way more complicated setup with different locations…

                    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

                    M 1 Reply Last reply Sep 21, 2015, 2:25 PM Reply Quote 0
                    • M
                      Mikael @Sebastian Roth
                      last edited by Sep 21, 2015, 2:25 PM

                      @Uncle-Frank Excellent! I tried that and it worked! Thanx so much.

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

                      168

                      Online

                      12.1k

                      Users

                      17.3k

                      Topics

                      155.3k

                      Posts
                      Copyright © 2012-2024 FOG Project