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

IPXE errors

Scheduled Pinned Locked Moved Solved
FOG Problems
5
22
3.8k
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.
  • A
    AdrianW
    last edited by Dec 6, 2019, 12:47 PM

    We’ve had Fog server running for about 2 years. Suddenly this morning when trying to ‘Deploy Image’ we enter user\password and it now flags an error

    http://10.0.0.1/fog/service/ipxe/boot.php… ok
    Unrecognised option "-M"20191206_115542.jpg

    Any suggestions

    J 1 Reply Last reply Dec 6, 2019, 4:14 PM Reply Quote 0
    • T
      Tom Elliott
      last edited by Dec 6, 2019, 2:30 PM

      Did somebody make a change to the iPXE menu system and add a -M to the command list?

      YOu can find out by going to:

      http://10.0.0.1/fog/service/ipxe/boot.php in a browser and post the contents here. We can then look at the information being presented and help a little further.

      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
      • A
        AdrianW
        last edited by Dec 6, 2019, 3:52 PM

        Hi Tom
        thanks for the quick reply - output below

        #!ipxe
        set fog-ip 10.0.0.1
        set fog-webroot fog
        set boot-url http://${fog-ip}/${fog-webroot}
        cpuid --ext 29 && set arch x86_64 || set arch i386
        goto get_console
        :console_set
        colour --rgb 0x00567a 1 ||
        colour --rgb 0x00567a 2 ||
        colour --rgb 0x00567a 4 ||
        cpair --foreground 7 --background 2 2 ||
        goto MENU
        :alt_console
        cpair --background 0 1 ||
        cpair --background 1 2 ||
        goto MENU
        :get_console
        console --picture http://10.0.0.1/fog/service/ipxe/bg.png --left 100 --right 80 && goto console_set || goto alt_console
        :MENU
        menu
        colour --rgb 0xff0000 0 ||
        cpair --foreground 1 1 ||
        cpair --foreground 0 3 ||
        cpair --foreground 4 4 ||
        item --gap Host is NOT registered!
        item --gap – -------------------------------------
        item fog.local Boot from hard disk
        item fog.memtest Run Memtest86+
        item fog.reginput Perform Full Host Registration and Inventory
        item fog.reg Quick Registration and Inventory
        item fog.deployimage Deploy Image
        item fog.sysinfo Client System Information (Compatibility)
        item fog.multijoin Join Multicast Session
        choose --default fog.deployimage --timeout 10000 target && goto ${target}
        :fog.local
        exit || goto MENU
        :fog.memtest
        kernel memdisk initrd=memtest.bin iso raw
        initrd memtest.bin
        boot || goto MENU
        :fog.reginput
        kernel bzImage32 loglevel=4 initrd=init_32.xz root=/dev/ram0 rw ramdisk_size=275000 web=http://10.0.0.1/fog/ consoleblank=0 rootfstype=ext4 shutdown=1 storage=10.0.0.1:/images/ storageip=10.0.0.1 loglevel=4 mode=manreg
        imgfetch init_32.xz
        boot || goto MENU
        :fog.reg
        kernel bzImage32 loglevel=4 initrd=init_32.xz root=/dev/ram0 rw ramdisk_size=275000 web=http://10.0.0.1/fog/ consoleblank=0 rootfstype=ext4 shutdown=1 storage=10.0.0.1:/images/ storageip=10.0.0.1 loglevel=4 mode=autoreg
        imgfetch init_32.xz
        boot || goto MENU
        :fog.deployimage
        login
        params
        param mac0 ${net0/mac}
        param arch ${arch}
        param username fog
        param password password
        param qihost 1
        isset ${net1/mac} && param mac1 ${net1/mac} || goto bootme
        isset ${net2/mac} && param mac2 ${net2/mac} || goto bootme
        param sysuuid ${uuid}
        :fog.sysinfo
        kernel bzImage32 loglevel=4 initrd=init_32.xz root=/dev/ram0 rw ramdisk_size=275000 web=http://10.0.0.1/fog/ consoleblank=0 rootfstype=ext4 shutdown=1 storage=10.0.0.1:/images/ storageip=10.0.0.1 loglevel=4 mode=sysinfo
        imgfetch init_32.xz
        boot || goto MENU
        :fog.multijoin
        login
        params
        param mac0 ${net0/mac}
        param arch ${arch}
        param username ${username}
        param password ${password}
        param sessionJoin 1
        isset ${net1/mac} && param mac1 ${net1/mac} || goto bootme
        isset ${net2/mac} && param mac2 ${net2/mac} || goto bootme
        param sysuuid ${uuid}
        :bootme
        chain -ar http://10.0.0.1/fog/service/ipxe/boot.php##params ||
        goto MENU
        autoboot

        1 Reply Last reply Reply Quote 0
        • T
          Tom Elliott
          last edited by Dec 6, 2019, 3:55 PM

          Can you add the mac address of the machine that’s giving the problem?

          Same url:

          10.0.0.1/fog/service/ipxe/boot.php?mac=00:00:00:00:00:00

          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

          A 1 Reply Last reply Dec 6, 2019, 4:26 PM Reply Quote 0
          • J
            Junkhacker Developer @AdrianW
            last edited by Dec 6, 2019, 4:14 PM

            @AdrianW as the user or password been changed since it was last working?

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

            A 1 Reply Last reply Dec 6, 2019, 4:29 PM Reply Quote 0
            • A
              AdrianW @Tom Elliott
              last edited by Dec 6, 2019, 4:26 PM

              @Tom-Elliott said in IPXE errors:

              /fog/service/ipxe/boot.php?mac=00:00:00:00:00:00

              Hi Tom I’ve tried that - just gives same output as I posted before

              1 Reply Last reply Reply Quote 0
              • S
                Sebastian Roth Moderator
                last edited by Dec 6, 2019, 4:28 PM

                @AdrianW What Tom meant is that you put in the machines MAC address instead 00:00:00:00:00:00

                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

                A 1 Reply Last reply Dec 6, 2019, 4:37 PM Reply Quote 0
                • A
                  AdrianW @Junkhacker
                  last edited by Dec 6, 2019, 4:29 PM

                  @Junkhacker Nothing has changed

                  J 1 Reply Last reply Dec 6, 2019, 4:39 PM Reply Quote 0
                  • A
                    AdrianW @Sebastian Roth
                    last edited by Dec 6, 2019, 4:37 PM

                    @Sebastian-Roth I did using the mac of the server and I get the same output

                    T 1 Reply Last reply Dec 6, 2019, 4:38 PM Reply Quote 0
                    • T
                      Tom Elliott @AdrianW
                      last edited by Dec 6, 2019, 4:38 PM

                      @AdrianW the Mac of the computer that gave the issue should be used

                      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

                      A 1 Reply Last reply Dec 6, 2019, 4:50 PM Reply Quote 0
                      • J
                        Junkhacker Developer @AdrianW
                        last edited by Dec 6, 2019, 4:39 PM

                        @AdrianW are you having this problem on one system, or multiple?

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

                        A 1 Reply Last reply Dec 6, 2019, 4:56 PM Reply Quote 0
                        • A
                          AdrianW @Tom Elliott
                          last edited by Dec 6, 2019, 4:50 PM

                          @Tom-Elliott it is any machine we connect - I have tried 3 different manufacturers

                          aab19195-8d67-4f98-ba7a-5204ae0f7c19-image.png

                          T 1 Reply Last reply Dec 6, 2019, 5:00 PM Reply Quote 0
                          • A
                            AdrianW @Junkhacker
                            last edited by Dec 6, 2019, 4:56 PM

                            @Junkhacker multiple device from multiple manufacturers

                            1 Reply Last reply Reply Quote 0
                            • T
                              Tom Elliott @AdrianW
                              last edited by Dec 6, 2019, 5:00 PM

                              @AdrianW If you could, please post the contents of the output in text format. Particularly the one from the MAC address.

                              I’m wondering if you have hostnames using - in the name? I’m not sure if this could pose a problem, but there’s always the possibility.

                              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

                              A 2 Replies Last reply Dec 6, 2019, 5:11 PM Reply Quote 0
                              • A
                                AdrianW @Tom Elliott
                                last edited by Dec 6, 2019, 5:11 PM

                                @Tom-Elliott
                                Hi Tom, most of our hostnames have a - in them as FOG is automatically naming them PC-** when they are first registered if we need to take an image from a new type of terminal. This issue happens when trying to deploy to terminals not registered on FOG. As stated in my original post we have been using it without any issue for 2 years to apply OEM images before dispatch

                                1 Reply Last reply Reply Quote 0
                                • A
                                  AdrianW @Tom Elliott
                                  last edited by Dec 6, 2019, 5:19 PM

                                  @Tom-Elliott from the ip ending 85 earliwer

                                  #!ipxe
                                  set fog-ip 10.0.0.1
                                  set fog-webroot fog
                                  set boot-url http://${fog-ip}/${fog-webroot}
                                  cpuid --ext 29 && set arch x86_64 || set arch i386
                                  goto get_console
                                  :console_set
                                  colour --rgb 0x00567a 1 ||
                                  colour --rgb 0x00567a 2 ||
                                  colour --rgb 0x00567a 4 ||
                                  cpair --foreground 7 --background 2 2 ||
                                  goto MENU
                                  :alt_console
                                  cpair --background 0 1 ||
                                  cpair --background 1 2 ||
                                  goto MENU
                                  :get_console
                                  console --picture http://10.0.0.1/fog/service/ipxe/bg.png --left 100 --right 80 && goto console_set || goto alt_console
                                  :MENU
                                  menu
                                  colour --rgb 0xff0000 0 ||
                                  cpair --foreground 1 1 ||
                                  cpair --foreground 0 3 ||
                                  cpair --foreground 4 4 ||
                                  item --gap Host is NOT registered!
                                  item --gap – -------------------------------------
                                  item fog.local Boot from hard disk
                                  item fog.memtest Run Memtest86+
                                  item fog.reginput Perform Full Host Registration and Inventory
                                  item fog.reg Quick Registration and Inventory
                                  item fog.deployimage Deploy Image
                                  item fog.sysinfo Client System Information (Compatibility)
                                  item fog.multijoin Join Multicast Session
                                  choose --default fog.deployimage --timeout 10000 target && goto ${target}
                                  :fog.local
                                  exit || goto MENU
                                  :fog.memtest
                                  kernel memdisk initrd=memtest.bin iso raw
                                  initrd memtest.bin
                                  boot || goto MENU
                                  :fog.reginput
                                  kernel bzImage32 loglevel=4 initrd=init_32.xz root=/dev/ram0 rw ramdisk_size=275000 web=http://10.0.0.1/fog/ consoleblank=0 rootfstype=ext4 shutdown=1 storage=10.0.0.1:/images/ storageip=10.0.0.1 loglevel=4 mode=manreg
                                  imgfetch init_32.xz
                                  boot || goto MENU
                                  :fog.reg
                                  kernel bzImage32 loglevel=4 initrd=init_32.xz root=/dev/ram0 rw ramdisk_size=275000 web=http://10.0.0.1/fog/ consoleblank=0 rootfstype=ext4 shutdown=1 storage=10.0.0.1:/images/ storageip=10.0.0.1 loglevel=4 mode=autoreg
                                  imgfetch init_32.xz
                                  boot || goto MENU
                                  :fog.deployimage
                                  login
                                  params
                                  param mac0 ${net0/mac}
                                  param arch ${arch}
                                  param username fog
                                  param password password
                                  param qihost 1
                                  isset ${net1/mac} && param mac1 ${net1/mac} || goto bootme
                                  isset ${net2/mac} && param mac2 ${net2/mac} || goto bootme
                                  param sysuuid ${uuid}
                                  :fog.sysinfo
                                  kernel bzImage32 loglevel=4 initrd=init_32.xz root=/dev/ram0 rw ramdisk_size=275000 web=http://10.0.0.1/fog/ consoleblank=0 rootfstype=ext4 shutdown=1 storage=10.0.0.1:/images/ storageip=10.0.0.1 loglevel=4 mode=sysinfo
                                  imgfetch init_32.xz
                                  boot || goto MENU
                                  :fog.multijoin
                                  login
                                  params
                                  param mac0 ${net0/mac}
                                  param arch ${arch}
                                  param username ${username}
                                  param password ${password}
                                  param sessionJoin 1
                                  isset ${net1/mac} && param mac1 ${net1/mac} || goto bootme
                                  isset ${net2/mac} && param mac2 ${net2/mac} || goto bootme
                                  param sysuuid ${uuid}
                                  :bootme
                                  chain -ar http://10.0.0.1/fog/service/ipxe/boot.php##params ||
                                  goto MENU
                                  autoboot

                                  G 1 Reply Last reply Dec 6, 2019, 5:24 PM Reply Quote 0
                                  • G
                                    george1421 Moderator @AdrianW
                                    last edited by Dec 6, 2019, 5:24 PM

                                    @AdrianW There isn’t a -M option in the ipxe menu you posted.

                                    To add a little clarity

                                    1. What were you doing when it threw this -M error? Just booting into the ipxe menu to register or where you trying to image?
                                    2. Do you get the same results when just booting into register or only when imaging?
                                    3. Can you get A computer to fail with the -M error message and then run Tom’s query again but with the mac address of the computer that threw the error like this http://10.0.0.1/fog/service/ipxe/boot.php?mac=00:00:00:00:00 where 00:00:00:00:00 == the mac address of the computer that generate the error.

                                    I have seen sometimes users naming the image name with something like “Win10 -May2020” Might confuse the iPXE boot loader.

                                    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!

                                    A 2 Replies Last reply Dec 6, 2019, 5:29 PM Reply Quote 0
                                    • A
                                      AdrianW @george1421
                                      last edited by Dec 6, 2019, 5:29 PM

                                      @george1421 Thanks George -
                                      After selecting deploy Image and entering username and password is when error occurs
                                      can register devices no problem

                                      will try last one first thing monday as I am being kicked out of the office - it’s weekend 🙂

                                      1 Reply Last reply Reply Quote 1
                                      • A
                                        AdrianW @george1421
                                        last edited by Dec 6, 2019, 6:20 PM

                                        @george1421 thank you George - just read the last bit of your post.
                                        We use ‘-’ all the time in our image names but having thought about it - the last thing I did was create a custom image which started with ‘M-’, looks like I may have made a massive typo and put ‘-M’ instead. Will log on remotely over the weekend and check. If that is the case how easy is it to change the image name ? I assume that apart from the image folder name there are also references in the DB.

                                        G 1 Reply Last reply Dec 6, 2019, 6:36 PM Reply Quote 0
                                        • G
                                          george1421 Moderator @AdrianW
                                          last edited by Dec 6, 2019, 6:36 PM

                                          @AdrianW changing the image definition and the directory structure in the /images directory should do it. Just note the “-M” it self should not cause the issue but a “<space>-M” would or any “<space>-<character>” would be interpreted by iPXE as a command line switch.

                                          But your right the last thing you did, should be the first place you look.

                                          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!

                                          A 2 Replies Last reply Dec 6, 2019, 6:46 PM Reply Quote 0
                                          • 1
                                          • 2
                                          • 1 / 2
                                          1 / 2
                                          • First post
                                            13/22
                                            Last post

                                          153

                                          Online

                                          12.1k

                                          Users

                                          17.3k

                                          Topics

                                          155.4k

                                          Posts
                                          Copyright © 2012-2024 FOG Project