• 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

      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

        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

          [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

            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

              [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

                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
                • JunkhackerJ
                  Junkhacker Developer
                  last edited by

                  [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

                    [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

                      [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
                      • JunkhackerJ
                        Junkhacker Developer
                        last edited by

                        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

                          [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
                          • JunkhackerJ
                            Junkhacker Developer
                            last edited by

                            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

                              [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
                              • Jaymes DriverJ
                                Jaymes Driver Developer
                                last edited by

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

                                1 Reply Last reply Reply Quote 0
                                • E
                                  eric0626
                                  last edited by

                                  [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
                                  • Jaymes DriverJ
                                    Jaymes Driver Developer
                                    last edited by

                                    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.

                                    1 Reply Last reply Reply Quote 0
                                    • E
                                      eric0626
                                      last edited by

                                      [quote=“Jaymes Driver, post: 42003, member: 3582”]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.[/quote]

                                      Hi Jaymes, it seems like it’s still the same. It still displays a blank page.

                                      [url=“/_imported_xf_attachments/1/1672_777 ipxe folder permission.JPG?:”]777 ipxe folder permission.JPG[/url][url=“/_imported_xf_attachments/1/1673_777 service folder permission.JPG?:”]777 service folder permission.JPG[/url]

                                      1 Reply Last reply Reply Quote 0
                                      • Jaymes DriverJ
                                        Jaymes Driver Developer
                                        last edited by

                                        At least now we know it isn’t a permission issue 😄

                                        I will see if I can get some time to set up a test server and work on this for you. I used chain loading back when 0.33b was in the works, and it worked well then, We should be able to get it going again.

                                        1 Reply Last reply Reply Quote 0
                                        • E
                                          eric0626
                                          last edited by

                                          [quote=“Jaymes Driver, post: 42013, member: 3582”]At least now we know it isn’t a permission issue :D[/quote]

                                          LOL!! I’m so tempting to re-install the whole thing because I recall it happens after I updated to a newer svn version.

                                          1 Reply Last reply Reply Quote 0
                                          • Jaymes DriverJ
                                            Jaymes Driver Developer
                                            last edited by

                                            This post is deleted!
                                            1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 1 / 2
                                            • First post
                                              Last post

                                            237

                                            Online

                                            12.0k

                                            Users

                                            17.3k

                                            Topics

                                            155.2k

                                            Posts
                                            Copyright © 2012-2024 FOG Project