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

    Multiple images for one host

    Scheduled Pinned Locked Moved
    General
    5
    21
    8.1k
    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.
    • R
      robin
      last edited by

      Hello,

      Is it possible to assign multiple images to 1 host or group ? For instance create several tasks to deploy one or other image on the same host

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

        You can deploy a group which has members with different images assigned to each, fog can handle that. But for an individual host, you may assign 1 image.

        Keep in mind, it’s very easy to change the assigned image. You can do it with groups, with individual hosts, or select the image you want in the boot options at the computer (in FOG 1.3.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!
        Daily Clean Installation Results:
        https://fogtesting.fogproject.us/
        FOG Reporting:
        https://fog-external-reporting-results.fogproject.us/

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

          If you had this ability, how would you decide what image to apply to the target computer?

          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 1
          • Tom ElliottT
            Tom Elliott
            last edited by

            Hosts should only ever be assigned one image. If you need to change what image, you can do so using the “Deploy Image” menu item (without changing the host’s assigned image) or just update the host and/or group to use the image and create the task.

            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

            R 1 Reply Last reply Reply Quote 0
            • R
              robin
              last edited by

              @george1421
              Task 1 --> Deploy image 1 to host 1
              Task 2 --> Deploy image 2 to host 1

              @Wayne-Workman
              Even if switching images is easy, I’m looking for something that does not need to be modify after everything is setup.

              I want to replace Acronis Snap Deploy so that’s why I’m looking for similar features.
              But I have my answer, it is not possible. I will see if this feature is really necessary then.

              Thanks !

              george1421G Wayne WorkmanW 2 Replies Last reply Reply Quote 0
              • R
                robin @Tom Elliott
                last edited by

                @Tom-Elliott Wait, what is the “Deploy Image” menu item ? Tried to find it on my FOG test server but I found nothing…

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

                  @robin What version of are you running?

                  See We need basic information as I’m just guessing on the thread.

                  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
                  • george1421G
                    george1421 Moderator @robin
                    last edited by

                    @robin said in Multiple images for one host:

                    @george1421
                    Task 1 --> Deploy image 1 to host 1
                    Task 2 --> Deploy image 2 to host 1

                    OK this is a start. My question is how do we know / when to execute task 1 or task 2 or deploy image 1 vs image 2? What determines when a task should be executed. I want to understand the process to see if FOG has the resources to go about doing what you need. Its not clear what you need just yet in my mind.

                    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!

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

                      @robin said in Multiple images for one host:

                      Task 1 --> Deploy image 1 to host 1
                      Task 2 --> Deploy image 2 to host 1

                      If you’re going to image it twice with two different images, why not just do ONE imaging task with image 2? I don’t understand at all.

                      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
                      • I
                        ITSolutions Testers @george1421
                        last edited by

                        @george1421 @robin correct me if I am wrong, but I have heard of a similar situation. It was a lab in a school that taught both Linux and Windows based classes. It was a poor man’s deep freeze/avoiding having students go into an OS that isn’t needed.

                        Class A needs Windows, so scheduled task at 7 am is image computer with Windows.
                        Class B(same lab) needs Linux, so 11am image lab with Linux.

                        This results in the lab always ready for the class and has a clean image each time.

                        This could be different software packages, versions of Windows, etc. But this is what I think the request as asking for.

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

                          @ITSolutions I managed a classroom like this in College, we had removable HDD bays. Students got assigned HDDs for the semester, they stayed in the labs with their name on it. Removable bays are quite cheap.

                          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/

                          I 1 Reply Last reply Reply Quote 0
                          • I
                            ITSolutions Testers @Wayne Workman
                            last edited by

                            @Wayne-Workman Yeah, I had classes like that too. But it all depends on what is needed. I can see merits to both ways of doing it. With some of the labs today though I have been seeing the micro desktops, so removable trays may not be an option any longer. Plus you have a higher risk of HDD failure with the removable trays, due tot he moving of them.

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

                              @ITSolutions You could also just use external USB hdds, boot to those. You could run an installation of linux from a 8GB flash drive.

                              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/

                              I 1 Reply Last reply Reply Quote 0
                              • I
                                ITSolutions Testers @Wayne Workman
                                last edited by

                                @Wayne-Workman True, I get that. I am just hopefully clarifying what the OP seems to be asking for. Like I said I can see merits in both ways of doing things.

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

                                  @ITSolutions Just pondering this a bit (using your workflow concept), I think the reimage on schedule could be done on the sql database side since FOG doesn’t support this out of the box.

                                  based on a cron job a sql stored procedure could be called to find all hosts in group X. Once a know list of devices have been created then we can reassign all host to image A in sql. Then the stored procedure would create a deployment task for each computer in that group. In theory you would have one procedure that takes 1 variable to do image A or B. Cron could be scheduled to run this procedure multiple times per day if needed.

                                  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
                                  • R
                                    robin
                                    last edited by

                                    @Tom-Elliott Sorry, I am using FOG 1.2 on a Debian 8

                                    @ITSolutions That is my problem, I need differents OS / Softwares / Configuration on the same computer but at different times for training purposes, let’s say 1 week students will worked on Windows 7 on a specific software with a clean database. Then next week Windows XP on another software, etc… So when student comes, the teacher will “just” have to launch the deployement task.

                                    @george1421 I need to have the people that will teach classes able to launch the deployement task themself, they need to be as much as possible autonomous when then want to do their classes. They are not IT people, so I have to configure everything beforehand. They will be the ones that choose which images they need.
                                    Then It would be possible but from the database side… Would it be easy to do this ? Then the Cron will do everything depending of variables that will determine which images deploy. Interesting.

                                    @Wayne-Workman The thing is I have NO budget, even for HDD, that’s why I want to switch from Acronis to a free solution. Plus, for each training the computers needs to be clean of every configuration made by students during the previous class (so, re-imaging…)

                                    george1421G Wayne WorkmanW 2 Replies Last reply Reply Quote 0
                                    • george1421G
                                      george1421 Moderator @robin
                                      last edited by

                                      @robin said in Multiple images for one host:

                                      @george1421 I need to have the people that will teach classes able to launch the deployement task themself, they need to be as much as possible autonomous when then want to do their classes. They are not IT people, so I have to configure everything beforehand. They will be the ones that choose which images they need.
                                      Then It would be possible but from the database side… Would it be easy to do this ? Then the Cron will do everything depending of variables that will determine which images deploy. Interesting.

                                      So we are not talking about an hourly change, that is good. If the teachers want to visit each machine, they can always select quick image from the iPXE menu. In quick image it gives the user an option to select whatever image they want to deploy to the target computer. This can be the same image that is defined by default or a different one. Then you can leave the default defined image as what ever you want for your base image. The teachers can go into the console and reset all systems in group X back to their default image.

                                      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 ElliottT 1 Reply Last reply Reply Quote 0
                                      • Tom ElliottT
                                        Tom Elliott @george1421
                                        last edited by

                                        @george1421 the image selection on quick image is only in trunk/rc fog not 1.2.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

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

                                          @robin You could setup DeepFreeze or SmartShield, and just dual-boot whatever OSs you need. That’s another option.

                                          A cron script could do what you want, easily.

                                          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/

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

                                            @Wayne-Workman OR, some carefully crafted php pages to call the mysql stored procedure. These pages would be hosted in just some other apache path than /fog.

                                            But using quick image in 1.3.0-rc1 would be a consistent solution and not have to build something special. If quick image is not usable in this situation then someone with php skills could create a simple page to call this yet non-existent mysql stored procedure.

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

                                            185

                                            Online

                                            12.0k

                                            Users

                                            17.3k

                                            Topics

                                            155.2k

                                            Posts
                                            Copyright © 2012-2024 FOG Project