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

Advanced Boot menu Help

Scheduled Pinned Locked Moved Solved
FOG Problems
3
14
5.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.
  • S
    sacha_marin
    last edited by Jun 23, 2015, 7:50 PM

    Hi.

    I am implementing FOG in my school, Everything is working for now but i would like to be able to add more iso with the advanced menu.

    i tried many way to script it but didnt found one that was working. if anyone can post an example of a script that would be amazing. i want to store the iso anywhere on the server which is ubuntu 14.04 with fog 1.2.0.

    any help would be extemly welcome.

    W A 2 Replies Last reply Jun 23, 2015, 8:11 PM Reply Quote 0
    • W
      Wayne Workman
      last edited by Jun 23, 2015, 8:11 PM

      This post is deleted!
      1 Reply Last reply Reply Quote 0
      • W
        Wayne Workman @sacha_marin
        last edited by Jun 23, 2015, 8:11 PM

        @sacha_marin said:

        Hi.

        I am implementing FOG in my school, Everything is working for now but i would like to be able to add more iso with the advanced menu.

        i tried many way to script it but didnt found one that was working. if anyone can post an example of a script that would be amazing. i want to store the iso anywhere on the server which is ubuntu 14.04 with fog 1.2.0.

        any help would be extemly welcome.

        The method you would use is dependent on what you want to add. What are you adding?

        1 Reply Last reply Reply Quote 0
        • A
          aaoyagi @sacha_marin
          last edited by Jun 23, 2015, 9:24 PM

          @sacha_marin
          This is what mine looks like now and I’ve been able to boot the Offline NT Password Reset okay.

          :MENU
          menu
          item --gap – ---------------- iPXE boot menu ----------------
          item cd140201 Boot Offline NT Password Reset
          item shell ipxe shell
          item return return to previous menu
          choose --default cd140201 --timeout 5000 target && goto ${target}
          :cd140201
          sanboot http://${fog-ip}/fog/ISO/cd140201.iso ||
          goto MENU
          :shell
          shell ||
          :return
          chain http://${fog-ip}/${fog-webroot}/service/ipxe/boot.php?mac=${net0/mac} ||
          prompt
          goto MENU
          autoboot

          Not sure what else you want to boot, but @Wayne-Workman is right about it being dependent in my experience. For instance, I tried using boot-repair-disk to fix a GRUB issue that I had and it didn’t work properly, I suspect because I’m using sanboot to load the iso. I was going to Windows 8.1 and Ubuntu 15.04 once I get my imaging working properly.

          1 Reply Last reply Reply Quote 1
          • S
            sacha_marin
            last edited by Jun 23, 2015, 11:00 PM

            Hiren boot cd, Falcon boot cd, would be a good start

            i doubt i would need a windows at all.

            A 1 Reply Last reply Jun 24, 2015, 12:15 AM Reply Quote 0
            • A
              aaoyagi @sacha_marin
              last edited by Jun 24, 2015, 12:15 AM

              @sacha_marin Should be easy enough to test then. If you haven’t already tried:

              1. Create a directory in /var/www/fog where your isos will be kept. If you want to avoid having to redo this every time you upgrade fog it would probably be worth defining another available site in Apache to host your iso files, but for the sake of easiness we can use the fog site since it’s already defined in Apache.
              2. Drop the Hiren’s.BootCD.15.2.iso into the iso Directory
              3. Assuming you put it in a directory called iso in your /var/www/fog/ folder you’d use something like this:
                :MENU
                menu
                item --gap – ---------------- iPXE boot menu ----------------
                item Hiren’s Load Hiren’s BootCD
                item shell ipxe shell
                item return return to previous menu
                choose --default cd140201 --timeout 5000 target && goto ${target}
                :Hiren’s
                sanboot http://${fog-ip}/fog/iso/Hiren’s.BootCD.15.2.iso ||
                goto MENU
                :shell
                shell ||
                :return
                chain http://${fog-ip}/${fog-webroot}/service/ipxe/boot.php?mac=${net0/mac} ||
                prompt
                goto MENU
                autoboot

              Case sensitivity counts here so check that cause I messed it up a couple of times trying to get it working. Also, the reason I like to keep the ipxe shell there is so if my iso boot fails, I can just boot the ipxe shell and test the sanboot http://whatever/path/to/iso/here.iso command and see if it boots that way so I know how to fix my menu. Good luck!

              S 1 Reply Last reply Jun 25, 2015, 12:48 PM Reply Quote 1
              • S
                sacha_marin @aaoyagi
                last edited by Jun 25, 2015, 12:48 PM

                @aaoyagi hey man thanks for the amazing answer. im currently testing it and i have some question

                • for this {fog-ip}/${fog-webroot}

                Do i have to change the fog-ip to my server’s ip or is it automatic ?
                same for {fog-webroot}, im unsure what this is and if i have to change it.

                thanks !

                W A 2 Replies Last reply Jun 25, 2015, 12:51 PM Reply Quote 0
                • W
                  Wayne Workman @sacha_marin
                  last edited by Jun 25, 2015, 12:51 PM

                  @sacha_marin said:

                  @aaoyagi hey man thanks for the amazing answer. im currently testing it and i have some question

                  • for this {fog-ip}/${fog-webroot}

                  Do i have to change the fog-ip to my server’s ip or is it automatic ?
                  same for {fog-webroot}, im unsure what this is and if i have to change it.

                  thanks !

                  I believe that’s a variable. It should be populated with the correct information without you having to change it.

                  S 1 Reply Last reply Jun 25, 2015, 12:56 PM Reply Quote 0
                  • S
                    sacha_marin @Wayne Workman
                    last edited by Jun 25, 2015, 12:56 PM

                    @Wayne-Workman ok thats good. But now when i try to load the iso i get a black screen with a flashing underscore.

                    W 1 Reply Last reply Jun 25, 2015, 12:58 PM Reply Quote 0
                    • W
                      Wayne Workman @sacha_marin
                      last edited by Jun 25, 2015, 12:58 PM

                      @sacha_marin ouch… TBH, I’m out of my element with this issue. I don’t do anything with my menu lol. I started to explore it at home but got side tracked with other things. Going to notify @aaoyagi and see if he has any ideas.

                      1 Reply Last reply Reply Quote 0
                      • A
                        aaoyagi @sacha_marin
                        last edited by Jun 25, 2015, 3:05 PM

                        @sacha_marin @Wayne-Workman is right about those being variables. Let me download a copy of Hiren’s and see if I can get it working. There was another thread where a guy was trying to integrate Hiren’s too and he used this as the entry to boot Hiren’s. You might try it. In his case he renamed the iso to hirensboot.iso I’ll give it a shot too as soon as I get a chance.

                        initrd http://${fog-ip}/fog/iso/hirensboot.iso ||
                        chain memdisk iso raw ||
                        boot ||
                        goto MENU

                        For reference here’s the thread:
                        https://forums.fogproject.org/topic/4264/integrating-hirens-boot-15-2-into-fog-1-2-0

                        His final menu is on page 2

                        S 1 Reply Last reply Jun 25, 2015, 3:58 PM Reply Quote 1
                        • S
                          sacha_marin @aaoyagi
                          last edited by Jun 25, 2015, 3:58 PM

                          @aaoyagi im using his menu from page 2 with hiren 15.2 rebuild and its working !

                          A 1 Reply Last reply Jun 25, 2015, 4:38 PM Reply Quote 1
                          • A
                            aaoyagi @sacha_marin
                            last edited by Jun 25, 2015, 4:38 PM

                            @sacha_marin Sweet! Glad you got it working. I couldn’t figure out what was going on with mine and then I realized…case sensitivity. 😓 #facepalm

                            S 1 Reply Last reply Jun 25, 2015, 6:13 PM Reply Quote 2
                            • S
                              sacha_marin @aaoyagi
                              last edited by Jun 25, 2015, 6:13 PM

                              @aaoyagi iktf

                              so far i have hiren,ultimate and falcon, all working great. im gonna try to add a chromium iso and a windows 8 live pe for fun

                              1 Reply Last reply Reply Quote 2
                              • 1 / 1
                              1 / 1
                              • First post
                                8/14
                                Last post

                              166

                              Online

                              12.0k

                              Users

                              17.3k

                              Topics

                              155.2k

                              Posts
                              Copyright © 2012-2024 FOG Project