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

    Kernel Panic on Quick Register

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    8
    20
    6.2k
    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.
    • ZaarinZ
      Zaarin
      last edited by

      Hi All,

      Trunk version 7985

      I got a kernel panic when I tried to do a quick register with the following systems:

      • Optiplex 780 A6
      • Optiplex 780 A8
      • VM Hyper-V

      But the upload or download in unicast mode is working once I registered on the web management. Strange ?!

      I tried some kernels but the same.

      Here is the result of the following link http://x.x.x.x/fog/service/ipxe/boot.php?mac=xx

      #!ipxe
      set fog-ip x.x.x.x
      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://x.x.x.x/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.reginput Perform Full Host Registration and Inventory
      item fog.reg Quick Registration and Inventory
      choose --default fog.reg --timeout 3000 target && goto ${target}
      :fog.reginput
      kernel bzImage32 loglevel=4 initrd=init_32.xz root=/dev/ram0 rw ramdisk_size=127000 keymap= web=x.x.x.x/fog/ consoleblank=0 debug rootfstype=ext42 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=127000 keymap= web=x.x.x.x/fog/ consoleblank=0 debug rootfstype=ext42 loglevel=4 mode=autoreg
      imgfetch init_32.xz
      boot || goto MENU
      :bootme
      chain -ar http://x.x.x.x/fog/service/ipxe/boot.php##params ||
      goto MENU
      autoboot
      

      I’m not an expert but the rootfstype is set to ext42 and I don’t know this file system.

      Hope it helps and thank for any help to fix the problem.

      Zaza

      1 Reply Last reply Reply Quote 0
      • B
        Bob Henderson
        last edited by

        Getting the same thing here, same version. Boots up, can image machines already registered in the UI, but if I attempt to quick register or full register, I get the

        Kernel panic - not syncing: VFS Unable to mount root fs on unknown-block(1.0) Kernel Offset : disabled

        ZaarinZ 1 Reply Last reply Reply Quote 0
        • ZaarinZ
          Zaarin @Bob Henderson
          last edited by

          @Bob-Henderson Yes, right, I forget to mention that full register is not working as well.

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

            I just updated my dev box to 7985, let me see if I can duplicate the error.

            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!

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

              @george1421 Issue confirmed with r7985.

              @Developers
              Console displays:

              Early console in setup code
              Kernel-panic...
              Unable to mount root fs on unknown-block(1,0)
              

              Cross linking same issue: https://forums.fogproject.org/topic/7686/kernel-panic-after-upgrade

              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!

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

                @george1421 I may have found the issue with the menu. This is the output from http://192.168.1.88/fog/service/ipxe/boot.php note the rootfstype=ext42

                :fog.reginput
                kernel bzImage32 loglevel=4 initrd=init_32.xz root=/dev/ram0 rw ramdisk_size=127000 keymap= web=192.168.1.88/fog/ consoleblank=0 debug rootfstype=ext42 loglevel=4 mode=manreg
                imgfetch init_32.xz
                

                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!

                B 1 Reply Last reply Reply Quote 0
                • B
                  Bob Henderson @george1421
                  last edited by

                  @george1421 Yep, that’s exactly what @Zaarin noticed in his first post. Looks like a fat finger kind of thing that we all do every once in a while.

                  george1421G 1 Reply Last reply Reply Quote 1
                  • george1421G
                    george1421 Moderator @Bob Henderson
                    last edited by

                    @Bob-Henderson Understand this is not an official comment, but if you are at a road block until the devs can resolve this issue, I have a way to hack around it.

                    You need to have access to the linux console and edit the following file.
                    /var/www/html/fog/lib/fog/bootmenu.class.php

                    Search for rootfstype There should be two in that file. The first one is what we need to edit.

                    It should look something like this

                    $this->kernel = sprintf('kernel %s %s initrd=%s root=/dev/ram0 rw ramdisk_size=%s keymap=%s web=%s consoleblank=0%s rootfstype=ext4%s%s',
                    

                    Just insert a space between ext4%s%s making it look like this

                    $this->kernel = sprintf('kernel %s %s initrd=%s root=/dev/ram0 rw ramdisk_size=%s keymap=%s web=%s consoleblank=0%s rootfstype=ext4  %s%s',
                    

                    Save the file and you should now be able to boot into the FOS kernel. Of course we should wait for an official fix, but this will get you going.

                    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!

                    Q T 2 Replies Last reply Reply Quote 2
                    • B
                      Bob Henderson
                      last edited by

                      @george1421 Confirmed, that works. Gotta love spaces!

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

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

                          Pushed into current to have a space.

                          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
                          • M
                            mrdally204
                            last edited by

                            I ran into this same issue, just updated trunk to git 8022 (latest) and got the same kernel panic. I manually changed the file and was able to run though the host registration, but no host was registered at the server.

                            1 Reply Last reply Reply Quote 0
                            • falkoF
                              falko Moderator
                              last edited by

                              Version @ 8030 and I too receive the kernel panic when selecting from the pxe menu, deploy tasks set from the web work

                              1 Reply Last reply Reply Quote 0
                              • ZaarinZ
                                Zaarin
                                last edited by

                                Trunk version 8030 not solving the problem.

                                1 Reply Last reply Reply Quote 0
                                • falkoF
                                  falko Moderator
                                  last edited by falko

                                  Version @ 8034 appears to be working fine now, thanks

                                  1 Reply Last reply Reply Quote 0
                                  • ZaarinZ
                                    Zaarin
                                    last edited by

                                    8036 as well. Thank for your work. Topic can be closed.

                                    Zaza.

                                    1 Reply Last reply Reply Quote 0
                                    • T
                                      tkindle83 @george1421
                                      last edited by

                                      @george1421 said in Kernel Panic on Quick Register:

                                      @Bob-Henderson Understand this is not an official comment, but if you are at a road block until the devs can resolve this issue, I have a way to hack around it.

                                      You need to have access to the linux console and edit the following file.
                                      /var/www/html/fog/lib/fog/bootmenu.class.php

                                      Search for rootfstype There should be two in that file. The first one is what we need to edit.

                                      It should look something like this

                                      $this->kernel = sprintf('kernel %s %s initrd=%s root=/dev/ram0 rw ramdisk_size=%s keymap=%s web=%s consoleblank=0%s rootfstype=ext4%s%s',
                                      

                                      Just insert a space between ext4%s%s making it look like this

                                      $this->kernel = sprintf('kernel %s %s initrd=%s root=/dev/ram0 rw ramdisk_size=%s keymap=%s web=%s consoleblank=0%s rootfstype=ext4  %s%s',
                                      

                                      Save the file and you should now be able to boot into the FOS kernel. Of course we should wait for an official fix, but this will get you going.

                                      Hello new to linux here, trying to get fog up and running in my Windows environment I have came across the Kernel Panic issue after installing a newer kernel to try to get my HP 600 G2’s to register. I tried to follow this solution however when i look at the BootMenu.class.php with vi and search for rootfstype nothing comes up so I’m at a big stand still here. Any help would be much appreciated.

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

                                        @tkindle83 Please try updating to rc-1.

                                        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
                                          tkindle83 @Tom Elliott
                                          last edited by

                                          @Tom-Elliott Thanks Tom how do I go about this? I’m very very new to Linux.

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

                                            https://wiki.fogproject.org/wiki/index.php?title=Upgrade_to_trunk

                                            Follow the guide for the git method, dev-branch IS currently RC-1 on it.

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

                                            196

                                            Online

                                            12.1k

                                            Users

                                            17.3k

                                            Topics

                                            155.3k

                                            Posts
                                            Copyright © 2012-2024 FOG Project