FOG Project

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

    Solved Error $this->_kernel = sprintf ?

    FOG Problems
    5
    21
    2150
    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
      todachuy2406 last edited by

      Server
      • FOG Version: Running Version 1.3.5-RC-10
      • OS: CentOS 7
      Client
      • Service Version: VirtualBox
      • OS: Windows 7
      Description

      Any ideas for this solutions?

      $this->_kernel = sprintf(
      'kernel %s %s initrd=%s root=/dev/ram0 rw ’
      . ‘ramdisk_size=%s%sweb=%s consoleblank=0%s rootfstype=ext4%s%s’,

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

        @todachuy2406 The sprintf you keep referring two had nothing wrong with it.

        It was simply your using pxelinux.0 that was causing the problem with the booting.

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

          @Junkhacker, @george1421, @Tom-Elliott Thank you so much

          @george1421 You are perfect, I edited DHCP configuration file from pxelinux.0 to undionly.kpxe. Then I added more spaces on below code as same here:
          $this->_kernel = sprintf(
          'kernel %s %s initrd=%s root=/dev/ram0 rw ’
          . ‘ramdisk_size=%s%s web=%s consoleblank=0%s rootfstype=ext4% s%s’,

          It works for me!!

          Many Thanks & Best Regards

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

            @Junkhacker I am still not find what way to solve this problems?

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

              @george1421 Hi george1421, do I need to change below code?

              $this->_kernel = sprintf(
              'kernel %s %s initrd=%s root=/dev/ram0 rw ’
              . ‘ramdisk_size=%s%sweb=%s consoleblank=0%s rootfstype=ext4%s%s’,

              Add more spaces in “web” and “%s%s”

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

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

                @george1421 Hi george1421, Could you guide me how find out which process is using a configuration file?

                1 Reply Last reply Reply Quote 0
                • Junkhacker
                  Junkhacker Developer @todachuy2406 last edited by

                  @todachuy2406 so, is the problem solved?

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

                  T 1 Reply Last reply Reply Quote 0
                  • T
                    todachuy2406 @Junkhacker last edited by

                    @Junkhacker Thanks Junkhacker, I installed fresh FOG on new server with version 1.3.5-RC-10.

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

                      @todachuy2406 said in Error $this->_kernel = sprintf ?:

                      I guess that is pxelinux.0.

                      Please confirm this. Because if it is pxelinux.0, the kernel will have an error syncing and connecting to the inits (virtual hard drive). pxelinux.0 should never be used with the current version of fog.

                      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!

                      T 2 Replies Last reply Reply Quote 0
                      • T
                        todachuy2406 @Sebastian Roth last edited by

                        @Sebastian-Roth Hi Sebastian, I am using default Fog configuration, I don’t know which files does it load? I guess that is pxelinux.0.

                        george1421 1 Reply Last reply Reply Quote 0
                        • Junkhacker
                          Junkhacker Developer last edited by

                          i’d guess that during the upgrade the download for the kernel or the init got corrupted. easiest fix? run the installer again and it will re-download them.

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

                          T 1 Reply Last reply Reply Quote 0
                          • S
                            Sebastian Roth Moderator last edited by

                            @todachuy2406 Which PXE file do you use? undionly.kpxe, ipxe.kpxe, ipxe.efi or even pxelinux.0???

                            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
                              todachuy2406 @george1421 last edited by todachuy2406

                              @george1421 I am sorry I thought that they are 2 error is different.

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

                                @george1421 https://forums.fogproject.org/topic/9581/kernel-panic-in-centos-7 It’s the same person.

                                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
                                • george1421
                                  george1421 Moderator @Tom Elliott last edited by george1421

                                  @Tom-Elliott FWIW: This is the second post I saw with a kernel syn error on RC10. Let me see if I can find the other link.

                                  Crosslink: https://forums.fogproject.org/topic/9581/kernel-panic-in-centos-7

                                  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!

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

                                    I don’t know. I haven’t a clue what you’re asking. There doesn’t appear to be any information as to what it is you’re looking for. WHAT is wrong? Was there an error somewhere, (please provide the appropriate error log).

                                    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

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

                                      @Tom-Elliott Hi Tom,

                                      In attachment file0_1487750195376_boot.php , what is it wrong?

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

                                        @Tom-Elliott Thank you for your response. I have to perform what the next for fixing that error?

                                        I will edit /var/www/fog/lib/fog/bootmenu.class.php file as following
                                        $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’, ?

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

                                          What is wrong? You have “$this->_kernel” but nothing pertaining to what’s happening. I don’t know what’s happening at all.

                                          From the sounds of things, however, it would appear, to me, like the init or kernel is bad?

                                          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 2 Replies Last reply Reply Quote 0
                                          • T
                                            todachuy2406 last edited by

                                            I installed FOG version 1.3.5-RC-10, after boot to menu ipxe then I selected Quick registration or Full registration I catched below error:
                                            0_1487736881671_Selection_026.png

                                            I followed this topic for fixed error but not working
                                            https://forums.fogproject.org/topic/7690/kernel-panic-on-quick-register

                                            My /var/www/fog/lib/fog/bootmenu.class.php file,
                                            $this->_kernel = sprintf(
                                            'kernel %s %s initrd=%s root=/dev/ram0 rw ’
                                            . ‘ramdisk_size=%s%sweb=%s consoleblank=0%s rootfstype=ext4%s%s’,

                                            Is this code right?
                                            Thanks,

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

                                            250
                                            Online

                                            10.2k
                                            Users

                                            16.3k
                                            Topics

                                            149.9k
                                            Posts

                                            Copyright © 2012-2020 FOG Project