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

PXE boot to FOG 1.2.0 from FOG 0.32 menu

Scheduled Pinned Locked Moved
General
4
33
15.3k
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.
  • E
    eric0626
    last edited by Feb 4, 2015, 11:53 PM

    Hello all, I wonder if anyone knows how to PXE boot to iPXE (FOG 1.2.0) menu from PXELinux (FOG 0.32) menu.
    I have modified the PXELinux menu to do a lot of different stuff, and I don’t have time to move all of them over to the new FOG server yet. Has anyone managed to do this? Thanks!

    [url=“/_imported_xf_attachments/1/1650_20140612_110726 (1).jpg?:”]20140612_110726 (1).jpg[/url]

    1 Reply Last reply Reply Quote 0
    • J
      Jaymes Driver Developer
      last edited by Feb 5, 2015, 1:55 PM

      Its called chain loading, and yes it is possible. This will cause pxelinux.0 to call undionly.kpxe.

      I am sure that with proper tweaking you can have a menu item that lead to iPXE so that you can keep your custom items in pxelinux.0

      [url]http://fogproject.org/wiki/index.php/Chainloading_PXE_to_iPXE_using_pxelinux.0[/url]

      WARNING TO USERS: My comments are written completely devoid of emotion, do not mistake my concise to the point manner as a personal insult or attack.

      1 Reply Last reply Reply Quote 0
      • J
        Junkhacker Developer
        last edited by Feb 5, 2015, 5:13 PM

        also, be sure to check out the advanced boot menu within fog. it allows you to create custom boot menu entries and supports faster file transfer protocols, like http, then pxelinux does

        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
        • E
          eric0626
          last edited by Feb 5, 2015, 8:24 PM

          [SIZE=5][B][SIZE=4][FONT=Segoe UI Light]Hi Jaymes and Junkhacker, thank you guys for pointing me the direction to chain loading.[/FONT][/SIZE][/B][/SIZE]

          [SIZE=5][B][SIZE=4][FONT=Segoe UI Light]Let me give it a try! Will report back! 🙂 [/FONT][/SIZE][/B][/SIZE]

          1 Reply Last reply Reply Quote 0
          • E
            eric0626
            last edited by Feb 6, 2015, 6:10 PM

            Hi guys, I tried to set up chain loading in the PXELinux menu, but it was not successful. I have done some researches online but I’m not able to figure it out. Could you guys please give me a hand? Thanks a lot!
            Here’s what I have done.

            1. added the pxelinux menu entry for chain loading to ipxe

            LABEL FOG-IT-120TEST
            #MENU PASSWD fjasjfskajgdfjgjdfgjdfjgsdfgafgjfd.
            kernel fog/kernel/ipxe.krn
            append dhcp && chain [url]http://10.2.6.40/fog/service/ipxe/boot.php?mac=${net0/mac}[/url]
            MENU LABEL FOG 1.2.0 iPXE
            TEXT HELP
            FOG 1.2.0 iPXE chainload TEST.
            ENDTEXT
            \n

            1. copied “ipxe.krn” from FOG 1.2.0 server to FOG 0.32 server /tftpboot/fog/kernel/ipxe.krn
            2. copied “default.ipxe” from FOG 1.2.0 server to FOG 0.32 server /tftpboot/default.ipxe
              Here’s the config in “default.ipxe”

            #!ipxe
            cpuid --ext 29 && set arch x86_64 || set arch i386
            params
            param mac0 ${net0/mac}
            param arch ${arch}
            param product ${product}
            param manufacturer ${product}
            param ipxever ${version}
            param filename ${filename}
            isset ${net1/mac} && param mac1 ${net1/mac} || goto bootme
            isset ${net2/mac} && param mac2 ${net2/mac} || goto bootme
            :bootme
            chain [url]http://10.2.6.40/fog/service/ipxe/boot.php##params[/url]

            1. I’ve got the error saying “Could not boot: Input/output error ([url]http://ipxe.org/1d0c6139[/url])”. Please see attached image.

            I looked it up on ipxe.org, but there’s not really a solution. Hope you guys can give me some help. Thanks a lot!! 🙂

            [url=“/_imported_xf_attachments/1/1662_Photo Feb 06, 12 32 25 PM.jpg?:”]Photo Feb 06, 12 32 25 PM.jpg[/url]

            1 Reply Last reply Reply Quote 0
            • J
              jbsclm Developer
              last edited by Feb 6, 2015, 6:28 PM

              Here is what I did to get 0.33 to boot from a 0.32 menu item.
              [url]http://fogproject.org/forum/threads/chain-booting-0-33-beta-from-0-32.10156/[/url]
              Worth a try.

              1 Reply Last reply Reply Quote 0
              • E
                eric0626
                last edited by Feb 6, 2015, 7:28 PM

                [quote=“jbsclm, post: 41855, member: 3158”]Here is what I did to get 0.33 to boot from a 0.32 menu item.
                [url]http://fogproject.org/forum/threads/chain-booting-0-33-beta-from-0-32.10156/[/url]
                Worth a try.[/quote]

                Hi jbsclm, thanks for your suggestion.
                That’s basically what I have done so far, except “[B]Disable[/B] the dhcp service on the 0.33 server, you will need to consult the O/S documentation for details on how to do that.” If I don’t use FOG as a DHCP server, do I still have to disable DHCP service on the server? Thanks!

                1 Reply Last reply Reply Quote 0
                • J
                  jbsclm Developer
                  last edited by Feb 6, 2015, 8:30 PM

                  No, the reason i said to disable it as you shouldn’t have 2 dhcp servers on the same network.if neither of your fog servers provide dhcp then the comment doesn’t apply.
                  I suspect having a seperate dhcp server may be the problem, ipxe will be getting an address from that, which will point to the 0.32 server, i don’t know whether that would affect it.

                  I’ll have a think.

                  there is a recent thread on booting from a cd or pendrive, you could try that, not what you asked i know, but it may achieve what you want to do.

                  1 Reply Last reply Reply Quote 0
                  • E
                    eric0626
                    last edited by Feb 6, 2015, 9:50 PM

                    [quote=“jbsclm, post: 41874, member: 3158”]No, the reason i said to disable it as you shouldn’t have 2 dhcp servers on the same network.if neither of your fog servers provide dhcp then the comment doesn’t apply.
                    I suspect having a seperate dhcp server may be the problem, ipxe will be getting an address from that, which will point to the 0.32 server, i don’t know whether that would affect it.

                    I’ll have a think.

                    there is a recent thread on booting from a cd or pendrive, you could try that, not what you asked i know, but it may achieve what you want to do.[/quote]

                    I thought of that too, but I have modified “default.ipxe” and pointed it directly to the FOG 1.2.0 ipxe server already. I’m still getting the same error message, unless I did it wrong. I got the instructions from [url]http://ipxe.org/embed[/url]

                    1 Reply Last reply Reply Quote 0
                    • J
                      jbsclm Developer
                      last edited by Feb 9, 2015, 6:17 PM

                      I apologise in advance if you have tried some of the following.
                      This may be a basic question but, if you put your 1.2.0 server on its own isolated LAN and enable DHCP does it work.
                      We need to prove your 1.2.0 is good.
                      I’m not sure what tells it to load default.ipxe, presumably the dhcp server.
                      is there anything in the apache log on 10.2.6.40 for boot.php

                      What happens if you build a boot CD or pendrive as per the following.
                      [url]http://fogproject.org/forum/threads/physical-boot-disk-for-imaging.12142/#post-40540[/url]
                      just burn the iso to disk or pendrive and try booting from it.

                      1 Reply Last reply Reply Quote 0
                      • J
                        Junkhacker Developer
                        last edited by Feb 9, 2015, 6:31 PM

                        [quote=“jbsclm, post: 41936, member: 3158”]
                        I’m not sure what tells it to load default.ipxe, presumably the dhcp server.
                        [/quote]

                        the command to load default.ipxe is embedded in all of the fog ipxe boot files, i believe with the exception of ipxe.krn
                        the command [CODE]append dhcp && chain http://10.2.6.40/fog/service/ipxe/boot.php?mac=${net0/mac}[/CODE] is doing the basics of what the default.ipxe file is for, and is bypassing it.
                        when chainloading ipxe from pxelinux.0, there is no need to make any modifications to existing dhcp services. in fact, that is the main reason people chainload from it in the first place. because in their environment, they can’t modify their dhcp services.

                        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
                        • E
                          eric0626
                          last edited by Feb 9, 2015, 7:07 PM

                          [quote=“jbsclm, post: 41936, member: 3158”]I apologise in advance if you have tried some of the following.
                          This may be a basic question but, if you put your 1.2.0 server on its own isolated LAN and enable DHCP does it work.
                          We need to prove your 1.2.0 is good.
                          I’m not sure what tells it to load default.ipxe, presumably the dhcp server.
                          is there anything in the apache log on 10.2.6.40 for boot.php

                          What happens if you build a boot CD or pendrive as per the following.
                          [url]http://fogproject.org/forum/threads/physical-boot-disk-for-imaging.12142/#post-40540[/url]
                          just burn the iso to disk or pendrive and try booting from it.[/quote]

                          No need to apologize. I appreciate your help. Will give it a try.

                          1 Reply Last reply Reply Quote 0
                          • E
                            eric0626
                            last edited by Feb 9, 2015, 7:08 PM

                            [quote=“Junkhacker, post: 41940, member: 21583”]the command to load default.ipxe is embedded in all of the fog ipxe boot files, i believe with the exception of ipxe.krn
                            the command [CODE]append dhcp && chain http://10.2.6.40/fog/service/ipxe/boot.php?mac=${net0/mac}[/CODE] is doing the basics of what the default.ipxe file is for, and is bypassing it.
                            when chainloading ipxe from pxelinux.0, there is no need to make any modifications to existing dhcp services. in fact, that is the main reason people chainload from it in the first place. because in their environment, they can’t modify their dhcp services.[/quote]

                            Hi Junkhacker, what do you think I should try in this case? Could you please give me some suggestions? Thanks a lot!

                            1 Reply Last reply Reply Quote 0
                            • J
                              Junkhacker Developer
                              last edited by Feb 9, 2015, 7:40 PM

                              well, what do you get if you enter this in a web browser? [url]http://10.2.6.40/fog/service/ipxe/boot.php[/url]

                              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
                              • E
                                eric0626
                                last edited by Feb 9, 2015, 8:40 PM

                                [quote=“Junkhacker, post: 41943, member: 21583”]well, what do you get if you enter this in a web browser? [url]http://10.2.6.40/fog/service/ipxe/boot.php[/url][/quote]

                                When i enter the link in a web browser, i get a blank page. Even if I do it from the FOG server (10.2.6.40), I still get a blank page.
                                I have attached screenshots. Is there anything wrong?

                                [url=“/_imported_xf_attachments/1/1665_ipxe boot php.JPG?:”]ipxe boot php.JPG[/url][url=“/_imported_xf_attachments/1/1666_bootphp.JPG?:”]bootphp.JPG[/url]

                                1 Reply Last reply Reply Quote 0
                                • J
                                  Junkhacker Developer
                                  last edited by Feb 9, 2015, 10:14 PM

                                  yes, that should return the text for the ipxe boot menu. do you have any problems logging into the server through your browser?

                                  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
                                  • E
                                    eric0626
                                    last edited by Feb 9, 2015, 10:41 PM

                                    [quote=“Junkhacker, post: 41953, member: 21583”]yes, that should return the text for the ipxe boot menu. do you have any problems logging into the server through your browser?[/quote]

                                    I have no problem logging into the server. I’m running svn 2979.

                                    [url=“/_imported_xf_attachments/1/1667_FOG.JPG?:”]FOG.JPG[/url]

                                    1 Reply Last reply Reply Quote 0
                                    • J
                                      Jaymes Driver Developer
                                      last edited by Feb 10, 2015, 12:32 PM

                                      What are the permissions on the folder, do you have rights to view the content and execute it?

                                      WARNING TO USERS: My comments are written completely devoid of emotion, do not mistake my concise to the point manner as a personal insult or attack.

                                      1 Reply Last reply Reply Quote 0
                                      • E
                                        eric0626
                                        last edited by Feb 10, 2015, 5:25 PM

                                        [quote=“Jaymes Driver, post: 41983, member: 3582”]What are the permissions on the folder, do you have rights to view the content and execute it?[/quote]

                                        Hi Jaymes, I just check the permissions, and look like no one has execute permission. I’m not sure if I’m correct.
                                        I have attached a screenshot.

                                        [url=“/_imported_xf_attachments/1/1671_ipxe folder permissions.JPG?:”]ipxe folder permissions.JPG[/url]

                                        1 Reply Last reply Reply Quote 0
                                        • J
                                          Jaymes Driver Developer
                                          last edited by Feb 10, 2015, 5:54 PM

                                          try [code]sudo chmod -R 0777 /var/www/fog/service[/code]
                                          this will give global read/write permissions just to verify we can get the page to display, we can adjust settings later for 755 or 644.

                                          WARNING TO USERS: My comments are written completely devoid of emotion, do not mistake my concise to the point manner as a personal insult or attack.

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

                                          171

                                          Online

                                          12.0k

                                          Users

                                          17.3k

                                          Topics

                                          155.2k

                                          Posts
                                          Copyright © 2012-2024 FOG Project