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

    Clonezilla intergrate in FOG

    Scheduled Pinned Locked Moved
    General
    4
    13
    755
    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.
    • K
      kaywokke
      last edited by

      We have multiple clonezilla images i want to deploy a task where it automatically image the device.
      91a6b722-abf0-48cf-bc66-5189814385e6-image.png

      george1421G 1 Reply Last reply Reply Quote 0
      • K
        kaywokke
        last edited by

        @george1421 this is the screenshot that i have strange is we had another Fog Projects server that has the same error now.

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

          @kaywokke FOG needs particular parameters to be able to run tasks. As this is not a normal FOG task I am wondering if you don’t simply want to add this to the iPXE menu and image your machines through this.

          While I can see the advantage of making this a task I still may ask. If you need this to be a task you’ll need to add parameters like type=down and possibly more to make this work.

          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

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

            @kaywokke Thank you on the image that was able to confirm what I suspected and what Sebastian pointed out. The unknown request type::Null is created because there is no type kernel parameter defined. So the FOS engine doesn’t know what to do.

            Also as Sebastian mentioned and the reason why I asked what your goal is, because there are other ways to pxe boot into a clonezilla setup with FOG than a dedicated task.

            What did you create in task type edit plugin? Somewhere you need to pass the type= kernel parameter to the FOS engine.

            If you look in the task type edit plugin on your computer you will see examples to Capture an image the kernel args are type=up In your case your type should match what you programmed in the hook.

            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
            • K
              kaywokke @Sebastian Roth
              last edited by

              @Sebastian-Roth Sebastian what you mean with possibly is there a place where i can find documentatio about the type?

              @george1421 i want to boot the device in Clonezilla where it automatically set back the right image of the device.

              Q george1421G 2 Replies Last reply Reply Quote 0
              • Q
                Quazz Moderator @kaywokke
                last edited by

                @kaywokke

                type=down for deploy
                type=up for capture

                Simple as that.

                But there are other potential parameters that may be necessary for it to function as expected.

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

                  @kaywokke said in Clonezilla intergrate in FOG:

                  i want to boot the device in Clonezilla where it automatically set back the right image of the device.

                  Isn’t this duplicating the same function that FOG does already? Without any coding?

                  But back on topic.

                  I know how hooks are supposed to work as well as I understand how the FOS Engine runs. In a normal FOG deployment the FOG server sends messages to the FOS Engine (the customized version of linux that runs on the target computer) via kernel parameters the FOG server writes into the command that starts the FOS engine. There is a special kernel parameter to the FOS engine called type. That type parameter tells the main FOS script what to do on the target computer. See this main script. https://github.com/FOGProject/fos/blob/master/Buildroot/board/FOG/FOS/rootfs_overlay/bin/fog

                  When the FOS engine prints unknown request type Null, is because the type kernel parameter was not set. When you write that hook, I assume that you are creating your own new type parameter. You need to pass that parameter to the FOS engine. So as I see it, you need to program the hook (what the code will actually do) as well as configure a matching parameter to send via the task type edit plugin.

                  Now onto what I was mentioning before. I have a tutorial on how to add a FOG iPXE menu to boot different live linux environments using FOG. Understand this is unrelated to imaging. https://forums.fogproject.org/topic/10944/using-fog-to-pxe-boot-into-your-favorite-installer-images
                  This is all done without any programming. I’m just creating a new iPXE menu that calls up the different linux kernels. While I haven’t had the need, I assume you could pxe boot into clonezilla this way to.

                  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!

                  K 1 Reply Last reply Reply Quote 2
                  • K
                    kaywokke @george1421
                    last edited by kaywokke

                    @george1421 Hi george thanks for the information, i am new at fog so it is not easy for me to understand. Where can i set this parameter in the Hook? where do i need to put the type parameter?

                    Because if i do it from the task editor page and i save it and check again the task it is dissapeared.

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

                      You might want to read through this thread. It talks about creating the hook and then adding in the task type edit plugin that you will need.

                      https://forums.fogproject.org/topic/10274/creating-task-with-tasktypemanagement

                      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!

                      K 1 Reply Last reply Reply Quote 0
                      • K
                        kaywokke @george1421
                        last edited by

                        @george1421 Thank you George it is working now! also it is booting. Thank you.

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

                          @kaywokke Great to hear you got this working with the help of @george1421! Well done, as this is definitely not an easy one to setup if you’re still a FOG beginner.

                          You might want to share your code and steps in this topic to help the community. I am sure someone will find this helpful one day.

                          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

                          213

                          Online

                          12.0k

                          Users

                          17.3k

                          Topics

                          155.2k

                          Posts
                          Copyright © 2012-2024 FOG Project