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

Deploy Image Every Boot/Reboot

Scheduled Pinned Locked Moved
General
3
8
1.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.
  • N
    nerdstburns
    last edited by Sep 25, 2020, 9:37 PM

    So I currently have my PCs set to boot from the Network first, this way if there are any pending fog tasks they will occur during startup or reboot, otherwise they will continue to the disk. Is there a way to have an image deploy every time the computer boots or restarts?

    1 Reply Last reply Reply Quote 0
    • G
      george1421 Moderator
      last edited by Sep 25, 2020, 10:20 PM

      What are you trying to accomplish here? I can see a boot loop in your request.

      Boot computer -> deploy image (at end of imaging there is a reboot) -> boot computer -> deploy image -> rinse and repeat.

      What target OS are you intending to do this with?

      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
      • N
        nerdstburns
        last edited by Sep 25, 2020, 10:28 PM

        Good catch, i forgot about the second boot after the deployed image. Is there a way to schedule an image deployment at a specific time everyday? I would like to do this for Windows. I have an image that contains gaming launchers (epic, steam, etc). I would like to wipe the games people download and redeploy that clean image everyday without having to manually schedule it each time.

        G 1 Reply Last reply Sep 25, 2020, 10:31 PM Reply Quote 0
        • G
          george1421 Moderator @nerdstburns
          last edited by george1421 Sep 25, 2020, 4:32 PM Sep 25, 2020, 10:31 PM

          @nerdstburns So do you want to do this without human interaction? It would be possible with a one click install.

          You could set it up to every time you enter the fog ipxe menu it defaults to image. It would take a fog tech to enter the boot manager menu on the target computer and pick pxe boot. From there it could be touchless.

          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
          • S
            Sebastian Roth Moderator
            last edited by Sep 25, 2020, 10:36 PM

            @nerdstburns Or you can setup a CRON style scheduled deploy in FOG if you like.

            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

            N 1 Reply Last reply Sep 25, 2020, 10:57 PM Reply Quote 0
            • N
              nerdstburns @Sebastian Roth
              last edited by Sep 25, 2020, 10:57 PM

              @Sebastian-Roth by setting up CRON style scheduled deploy in Fog would that do it daily at the same time everyday. Or at least initiate the task at the same time everyday. I assume it wouldn’t deploy until the computers are turned on or restarted past that time?

              G 1 Reply Last reply Sep 26, 2020, 12:15 AM Reply Quote 0
              • G
                george1421 Moderator @nerdstburns
                last edited by Sep 26, 2020, 12:15 AM

                @nerdstburns said in Deploy Image Every Boot/Reboot:

                it wouldn’t deploy until the computers are turned on or restarted past that time

                CRON style imaging is an option. While I don’t use the FOG Client in my environment, but I believe if the fog client is installed on the target computer and it finds an imaging task it will reboot the target computer automatically to start imaging. That is regardless of its a cron imaging task to not.

                For the cron style imaging I believe that is a oneshot deployment. But once you have the job scheduled you can go into the cron and make the job repetitive at a certain time every day. Then CRON will submit the job to the FOG Tasker to deploy the image.

                Personally I’ve always been hesitant to setup an auto and uncontrolled imaging task, but if it fits your needs you can do this path too.

                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
                • S
                  Sebastian Roth Moderator
                  last edited by Sep 26, 2020, 6:24 AM

                  @nerdstburns If the host is turned off and wake on LAN (WOL) works in your environment, then it will just be started automatically and do the image deployment. You can have it reboot after the task (default) or let it do a shutdown via adding shutdown=1 as Kernel parameter (general FOG settings or individual host settings).

                  When you use the FOG web UI to schedule a normal deployment task you see the selection:

                  • Schedule instant (default selection)
                  • Schedule delayed (one shot at a certain time)
                  • Schedule cron-style (repeating task as often as you like it to happen, once a day or every other hour or whatever)

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

                  237

                  Online

                  12.0k

                  Users

                  17.3k

                  Topics

                  155.2k

                  Posts
                  Copyright © 2012-2024 FOG Project