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

    Imaging with fog from ipxe command line

    Scheduled Pinned Locked Moved
    General Problems
    3
    14
    4.4k
    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.
    • T
      Thewafflication
      last edited by Thewafflication

      I am a college student staying in a dorm. I just want to play around with fog. So I installed fog in a fedora 25 virtual machine. I had a few kinks, but no major issues. I do not have access to get a entry made to automatically pxe boot to my server.

      I have a laptop connected to the network as well. I was able to register it. I booted from the iPXE cd command line.

      chain http://serverip/fog/service/ipxe/boot.php
      

      This brings me to the fog menu where I registered it.
      I then went into the management web interface and created an image, assigned it to the host, and scheduled the server to take an image immediately.

      I rebooted the laptop. Again with iPXE to

      chain http://serverip/fog/service/ipxe/boot.php
      

      Which brings me back to the fog boot menu.
      From what I’ve seen online, it should start to image the laptop, but it doesn’t.
      If I go to register host, it says the host is already registered and reboots.
      In the management interface it shows the task as active.

      Any ideas on what to do?
      I am running the latest git version btw.

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

        This is because of your parameters.

        You aren’t passing the systems Mac address at all. Take a look at the /tftpboot/default.ipxe file

        It will have the same type of chain command followed by ##params I think.

        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

        Tom ElliottT T 2 Replies Last reply Reply Quote 1
        • Tom ElliottT
          Tom Elliott @Tom Elliott
          last edited by

          @Tom-Elliott of course you could simple tftp the file to the client too. Something like:
          chain tftp://ipoffogserver/default.ipxe

          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
          • T
            Thewafflication
            last edited by

            This post is deleted!
            1 Reply Last reply Reply Quote 0
            • T
              Thewafflication @Tom Elliott
              last edited by

              @Tom-Elliott I am not super familiar with iPXE or tftp.

              chain tftp://ipoffogserver/default.ipxe
              

              resualts with

              tftp://ipoffogserver/default.ipxe ... ok
              params: command not found
              Could not boot .... (error code)
              

              and

              chain tftp://ipoffogserver/default.ipxe ##paramd
              

              returns

              the same.
              Tom ElliottT 1 Reply Last reply Reply Quote 0
              • Tom ElliottT
                Tom Elliott @Thewafflication
                last edited by

                @Thewafflication are you changing out ipoffogserver?

                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

                T Tom ElliottT 2 Replies Last reply Reply Quote 0
                • T
                  Thewafflication @Tom Elliott
                  last edited by

                  @Tom-Elliott of course! (10.51.4.48)

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

                    @Tom-Elliott are you using a custom ipxe file? We create one for this purpose too.

                    It’s under the tftpboot folder with the name ipxe.iso

                    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

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

                      I’m suggesting this file because the ipxe.iso you are using appears to not allow the params ipxe cmd

                      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

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

                        @Tom-Elliott I am using the one found here:
                        http://boot.ipxe.org/ipxe.iso
                        I dont have any more cd’s, but I will try to burn yours to a usb stick with rufus.
                        Will take some time.

                        1 Reply Last reply Reply Quote 0
                        • T
                          Thewafflication
                          last edited by

                          I do not have a usb drive to spare.
                          I will buy an extra in next couple of days.

                          Wayne WorkmanW 1 Reply Last reply Reply Quote 0
                          • Wayne WorkmanW
                            Wayne Workman @Thewafflication
                            last edited by

                            @Thewafflication You’re at a university. Go find a computer technician and just ask them for a small spare flash drive. I promise they will have an entire box of them just laying around of ones they’ve found while doing their jobs. I would know, I worked at university about 5 years ago as a tech.

                            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!
                            Daily Clean Installation Results:
                            https://fogtesting.fogproject.us/
                            FOG Reporting:
                            https://fog-external-reporting-results.fogproject.us/

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

                              @Tom-Elliott @Wayne-Workman I solved my problem with a workaround.
                              Using my iPXE cd that doesn’t have param, I booted to the ipxe.pxe provided with fog.
                              From there I was able to boot default.ipxe.
                              TL;DR
                              Boot CD.

                              chain tftp://myip/ipxe.pxe
                              

                              shoots some error.
                              I press s to go to command line.

                              param
                              

                              returns nothing.

                              chain tftp://myipdefault.ipxe 
                              

                              Text flies by, and the computer begins to create an image!

                              Thanks for the help!

                              Wayne WorkmanW 1 Reply Last reply Reply Quote 1
                              • Wayne WorkmanW
                                Wayne Workman @Thewafflication
                                last edited by

                                @Thewafflication Good work. You may think about taking your laptop off of the network so you can run DHCP on your virtualized fog server. 🙂

                                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!
                                Daily Clean Installation Results:
                                https://fogtesting.fogproject.us/
                                FOG Reporting:
                                https://fog-external-reporting-results.fogproject.us/

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

                                178

                                Online

                                12.0k

                                Users

                                17.3k

                                Topics

                                155.2k

                                Posts
                                Copyright © 2012-2024 FOG Project