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

    Custom ISO (centos 6/7 ) installation issues.

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    4
    17
    5.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.
    • C
      csa
      last edited by

      Hi ,
      I was able to create a custom boot menu for any ubuntu distribution ( sample trusty menu )

      :fog.trusty
      set path /fog/OS_IMAGES/ubuntu-14.04.3-DVD
      set nfs_path /images/OS_IMAGES/ubuntu-14.04.3-DVD
      kernel http://fogsrv/fog/OS_IMAGES/ubuntu-14.04.3-DVD/install/netboot/ubuntu-installer/amd64/linux || read void
      initrd http://fogsrv/fog/OS_IMAGES/ubuntu-14.04.3-DVD/install/netboot/ubuntu-installer/amd64/initrd.gz || read void
      imgargs linux root=/dev/nfs boot=casper live-installer/net-image=http://fogsrv/fog/OS_IMAGES/ubuntu-14.04.3-DVD/install/filesystem.squashfs ks=http://fogsrv/fog/OS_IMAGES/kickstarts/precise_ks.cfg ip=dhcp splash quiet – || read void
      boot || read void
      goto start
      

      Now I am trying to create the same type for centos

      :fog.centos
      set path /fog/OS_IMAGES/CENTOS-6.8-DVD
      set nfs_path /images/OS_IMAGES/CENTOS-6.8-DVD
      kernel http://fogsrv/fog/OS_IMAGES/CENTOS-6.8-DVD/images/pxeboot/vmlinuz || read void
      initrd http://fogsrv/fog/OS_IMAGES/CENTOS-6.8-DVD/images/pxeboot/initrd.img || read void
      append ks=http://fogsrv/fog/kickstarts/centos6.cfg ramdisk_size=100000 ksdevice=eth0 root=/dev/rd/0 ip=dhcp url --url http://10.0.28.24/fog/OS_IMAGES/CENTOS-6.8-DVD  || read void
      boot || read void
      goto start
      

      When trying to boot the client through centos. It boots and complains on “append” option.
      “APPEND options not recognized”

      Did anyone create a centos iso installation menu with kickstart?

      Thank you
      Chakri

      1 Reply Last reply Reply Quote 0
      • george1421G
        george1421 Moderator
        last edited by george1421

        If you open a browser to http://<fog_server_ip>/fog/service/ipxe/boot.php?mac=00:00:00:00:00:00 You can see how the fog developers solved that issue. FOG passes a number of kernel parameters to the FOS client engine. You can also use that method to ensure what you are entering in the webgui ends up correctly in the assembled iPXE menu.

        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!

        C 1 Reply Last reply Reply Quote 0
        • george1421G
          george1421 Moderator
          last edited by george1421

          Oops I missed that at first glance, append is not a supported iPXE statement. You do need to use the imgargs statement instead.

          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!

          1 Reply Last reply Reply Quote 1
          • Q
            Quazz Moderator
            last edited by

            APPEND is a PXELinux option, not an iPXE option.

            Use the imgargs argument instead.

            C 1 Reply Last reply Reply Quote 0
            • C
              csa @george1421
              last edited by

              @george1421 said in Custom ISO (centos 6/7 ) installation issues.:

              at issue. FOG passes a number of kernel parameters to the FOS client engine. You can also use that method to ensure what you are entering in the webgui ends up correctly in the assembled iPXE menu.

              Thank you for the tip. I see there is no “imgargs” option too. Let me give a try.

              Thank you
              Chakri

              1 Reply Last reply Reply Quote 0
              • C
                csa @Quazz
                last edited by

                @Quazz
                Thank you the “imgargs” also didn’t work. Trying without it.

                Thank you
                Chakri

                Q 1 Reply Last reply Reply Quote 0
                • Q
                  Quazz Moderator @csa
                  last edited by

                  @csa You replaced APPEND with imgargs vmlinuz ?

                  1 Reply Last reply Reply Quote 0
                  • george1421G
                    george1421 Moderator
                    last edited by

                    Ok I see a red flag here.

                    What version of FOG are you running? What do you have set for dhcp option 67 {boot file}.

                    And to refer to your OP. Why does the top one work WITH imgargs and the bottom one does not if you replace append with imgargs? The only thing I see in the top one is you are calling out the kernel with linux then adding in the args.

                    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!

                    1 Reply Last reply Reply Quote 0
                    • C
                      csa
                      last edited by

                      Team,
                      I tried all the following options but didn’t have any success. This is happening with any centos or RHEL distribution. With ubuntu “kernel, initrd and imgargs” are working like champ.
                      The issue seems to be unable to pass the following option through ipxe.
                      ramdisk_size=100000 ksdevice=eth0 root=/dev/rd/0 ip=dhcp
                      using imgargs or moving to initrd.

                      Option 1.

                      Error --> boots and complains on “ks=… No such file or directory”
                      Moved “ramdisk” before ks=. Errors out saying "ramdisk=100000… no such file or directory

                      :fog.centos
                      set path /fog/OS_IMAGES/CENTOS-6.8-DVD
                      set nfs_path /images/OS_IMAGES/CENTOS-6.8-DVD
                      kernel http://fogsrv/fog/OS_IMAGES/CENTOS-6.8-DVD/images/pxeboot/vmlinuz || read void
                      initrd http://fogsrv/fog/OS_IMAGES/CENTOS-6.8-DVD/images/pxeboot/initrd.img || read void
                      imgargs ks=http://fogsrv/fog/kickstarts/centos6.cfg ramdisk_size=100000 ksdevice=eth0 root=/dev/rd/0 ip=dhcp url --url http://10.0.28.24/fog/OS_IMAGES/CENTOS-6.8-DVD  || read void
                      boot || read void
                      goto start
                      

                      Option II
                      Removed imgargs section and moved everything to “initrd” section. Boots further but errors out saying " Cannot open root device "(null) … Please append a correct “root=” boot option ". Which means its the options in initrd section are getting ignored.

                      :fog.centos
                      set path /fog/OS_IMAGES/CENTOS-6.8-DVD
                      set nfs_path /images/OS_IMAGES/CENTOS-6.8-DVD
                      kernel http://fogsrv/fog/OS_IMAGES/CENTOS-6.8-DVD/images/pxeboot/vmlinuz || read void
                      initrd http://fogsrv/fog/OS_IMAGES/CENTOS-6.8-DVD/images/pxeboot/initrd.img ks=http://fogsrv/fog/kickstarts/centos6.cfg ramdisk_size=100000 ksdevice=eth0 root=/dev/rd/0 ip=dhcp || read void
                      boot || read void
                      goto start
                      

                      Thank you
                      Chakri

                      Tom ElliottT 1 Reply Last reply Reply Quote 0
                      • Tom ElliottT
                        Tom Elliott @csa
                        last edited by

                        @csa I believe you need to move it to the “kernel” section, not the initrd

                        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

                        C 1 Reply Last reply Reply Quote 1
                        • C
                          csa @Tom Elliott
                          last edited by

                          @Tom-Elliott said in Custom ISO (centos 6/7 ) installation issues.:

                          @csa I believe you need to move it to the “kernel” section, not the initrd

                          Tom,
                          You are simply awesome. Yes moving all the options to kernel worked like a champ. So for RHEL / Centos the following ipxe configuration menu works

                          :fog.centos
                          set path /fog/OS_IMAGES/CENTOS-6.8-DVD
                          set nfs_path /images/OS_IMAGES/CENTOS-6.8-DVD
                          kernel http://fogsrv/fog/OS_IMAGES/CENTOS-6.8-DVD/images/pxeboot/vmlinuz ks=http://fogsrv/fog/kickstarts/centos6.cfg  ramdisk_size=100000 ksdevice=eth0 root=/dev/rd/0 ip=dhcp splash quiet – || read void
                          initrd http://fogsrv/fog/OS_IMAGES/CENTOS-6.8-DVD/images/pxeboot/initrd.img || read void
                          goto start
                          
                          

                          Thank you so much
                          Chakri

                          Tom ElliottT 1 Reply Last reply Reply Quote 0
                          • C
                            csa
                            last edited by

                            With my special thanks to Tom Elliott and team. Please resolve this ticket.

                            Thank you
                            Chakri

                            1 Reply Last reply Reply Quote 0
                            • Tom ElliottT
                              Tom Elliott @csa
                              last edited by

                              @csa I think you could still use imgargs just call it before initrd. Glad it’s working though.

                              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

                              Q 1 Reply Last reply Reply Quote 0
                              • Q
                                Quazz Moderator @Tom Elliott
                                last edited by

                                @Tom-Elliott I think he simply forgot to put vmlinuz after imgargs.

                                Tom ElliottT 1 Reply Last reply Reply Quote 1
                                • Tom ElliottT
                                  Tom Elliott @Quazz
                                  last edited by

                                  @Quazz I don’t think the kernel has to be specified as its the args but I could be wrong

                                  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

                                  Q Tom ElliottT 2 Replies Last reply Reply Quote 0
                                  • Q
                                    Quazz Moderator @Tom Elliott
                                    last edited by Quazz

                                    @Tom-Elliott iPXE seems to claim it’s mandatory from what I can tell

                                    http://ipxe.org/cmd/imgargs

                                    But it does basically the same thing as what you said, so it doesn’t really matter.

                                    1 Reply Last reply Reply Quote 0
                                    • Tom ElliottT
                                      Tom Elliott @Tom Elliott
                                      last edited by

                                      @Tom-Elliott that said I think it does need the mode arg aka linux

                                      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
                                      • 1 / 1
                                      • First post
                                        Last post

                                      158

                                      Online

                                      12.0k

                                      Users

                                      17.3k

                                      Topics

                                      155.2k

                                      Posts
                                      Copyright © 2012-2024 FOG Project