• 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

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

        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

          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.

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

            @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

              @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 Reply Quote 0
              • N
                nerdstburns @Sebastian Roth
                last edited by

                @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?

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

                  @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

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

                    218

                    Online

                    12.0k

                    Users

                    17.3k

                    Topics

                    155.2k

                    Posts
                    Copyright © 2012-2024 FOG Project