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

IPXE Menus for Booting Live OS

Scheduled Pinned Locked Moved
General
4
23
7.9k
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.
  • N
    need2 Moderator
    last edited by Jun 11, 2014, 10:34 PM

    FOG 1.1.0 SVN 1800
    Debian 7.5

    And as per the prompt, I can believe I did something wrong, but what is the correct placement?

    1 Reply Last reply Reply Quote 0
    • T
      Tom Elliott
      last edited by Jun 11, 2014, 10:44 PM

      I’d think:
      [code]:return
      chain http://${fog-ip}/${fog-webroot}/service/ipxe/boot.php?mac=${net0/mac} || prompt && goto MENU
      [/code]

      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
      • J
        Junkhacker Developer
        last edited by Jun 11, 2014, 10:56 PM

        the prompt placement doesn’t look wrong to me
        the prompt command just waits to proceed to the next line until a key has been pressed.

        signature:
        Junkhacker
        We are here to help you. If you are unresponsive to our questions, don't expect us to be responsive to yours.

        1 Reply Last reply Reply Quote 0
        • N
          need2 Moderator
          last edited by Jun 11, 2014, 10:57 PM

          Alright, progress. I got it to go to shell and give me the following error when trying to access the kernel:

          [url]http://ipxe.org/err/410c61[/url]

          Which means its a 403, or forbidden. Apparently I didn’t get the permissions correct. I will have to give it another run. What permissions would you suggest for this?

          1 Reply Last reply Reply Quote 0
          • J
            Junkhacker Developer
            last edited by Jun 11, 2014, 11:01 PM

            [quote=“need2, post: 29941, member: 21891”]Sadly still the same result. I have tried putting some options in for it to fail out to a shell, but iPXE never goes to the shell. If for some reason iPXE could not see the kernel or initrd, would it just crash out to the previous menu?[/quote]

            that depends on what you mean by “previous menu”
            the
            [CODE]<attempt a boot command> ||
            goto MENU[/CODE]
            is there specifically to make it go back to the top of the advanced menu

            signature:
            Junkhacker
            We are here to help you. If you are unresponsive to our questions, don't expect us to be responsive to yours.

            1 Reply Last reply Reply Quote 0
            • N
              need2 Moderator
              last edited by Jun 11, 2014, 11:11 PM

              By previous menu, I meant the default FOG menu. It would step me back out of the Advanced Menu and back to the Default FOG Menu. I think that part is fixed now, and it looks like my problems are all permissions now. I’m still a bit linux-tarded, so that might take me a bit to get right.

              1 Reply Last reply Reply Quote 0
              • T
                Tom Elliott
                last edited by Jun 11, 2014, 11:17 PM

                Probably try:
                [code]chown -R www-data:www-data /var/www/fog/service/ipxe[/code]

                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
                • J
                  Junkhacker Developer
                  last edited by Jun 11, 2014, 11:18 PM

                  a troubleshooting techniquie that i’ve used for ipxe menus is going line-by-line in this format
                  [CODE]:SEATOOLS
                  initrd ${boot-url}/service/ipxe/seatoolsdos223all.iso || prompt
                  chain ${boot-url}/service/ipxe/memdisk iso raw || prompt
                  boot || prompt
                  other command that might fail || prompt
                  goto MENU[/CODE]

                  this will prompt you to hit a key on any line that it fails

                  signature:
                  Junkhacker
                  We are here to help you. If you are unresponsive to our questions, don't expect us to be responsive to yours.

                  1 Reply Last reply Reply Quote 0
                  • J
                    Junkhacker Developer
                    last edited by Jun 11, 2014, 11:20 PM

                    i mention this, because that would have shown you why it was failing to the previous menu
                    one of your lines was failing, and crashing to previous menu, due to a failure to execute a line, because of a permissions problem

                    signature:
                    Junkhacker
                    We are here to help you. If you are unresponsive to our questions, don't expect us to be responsive to yours.

                    1 Reply Last reply Reply Quote 0
                    • N
                      need2 Moderator
                      last edited by Jun 11, 2014, 11:27 PM

                      I needed to do:

                      [CODE]chmod -R 755 /var/www/fog/service/ipxe/trk[/CODE]

                      I’m getting an access issue now within the TRK kernel. That is probable an issue with my NFS share… either I didn’t mount it right or there are some other places that permissions reside for NFS shares. Doing some digging of my own, but I always appreciate freebies.

                      1 Reply Last reply Reply Quote 0
                      • T
                        Tom Elliott
                        last edited by Jun 12, 2014, 2:54 AM

                        [S]Are you sure it’s not just a ramdisk size limitation? Right now it’s set to 127MB, maybe up the value if you have spare ram and all have the same amount?[/S]

                        Nevermind, I’m an idiot…

                        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
                        • N
                          need2 Moderator
                          last edited by Jun 13, 2014, 9:07 PM

                          Just touching base on this one. I continued to have difficulties with the NFS share, so I just cheated and used the Windows Server NFS share I used way back when I was using a hijacked WDS server for my PXE server. Its working like that, but I would like to be able to stop relying on that server before it goes end-of-life. So any suggestions on what permissions and such I should have on the NFS share for the TRK boot folder would be appreciated.

                          1 Reply Last reply Reply Quote 0
                          • T
                            Tom Elliott
                            last edited by Jun 13, 2014, 9:47 PM

                            is /trk (or the location referring to it) on the exports file? Just a thought.

                            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
                            • W
                              Wolfbane8653 Developer
                              last edited by Jun 14, 2014, 12:32 AM

                              Is the NFS share on a Windows server or your fog server?

                              1 Reply Last reply Reply Quote 0
                              • N
                                need2 Moderator
                                last edited by Jun 14, 2014, 9:23 PM

                                The NFS that works is on a Windows server, and the one I haven’t gotten working yet is on the FOG server. And I do have it in the exports file, but come to think of it I should take another look at the settings it has.

                                1 Reply Last reply Reply Quote 0
                                • 1
                                • 2
                                • 1 / 2
                                1 / 2
                                • First post
                                  18/23
                                  Last post

                                151

                                Online

                                12.1k

                                Users

                                17.3k

                                Topics

                                155.3k

                                Posts
                                Copyright © 2012-2024 FOG Project