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

    Integrating clonezilla into fog

    Scheduled Pinned Locked Moved
    General Problems
    5
    6
    3.6k
    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.
    • A
      alouis
      last edited by

      I’m currently using a version of fog 1.5.0 and i’m trying to add clonezilla into fog menu. All the walkthrough that i’ve been seeing are making reference to an older version of Fog

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

        @alouis Mind sharing the information you looked at and what you have tried so far? Errors you see?

        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
        • A
          alouis
          last edited by

          Here are a few instructions i’ve been following in order to integrate clonezilla

          https://forums.fogproject.org/topic/9606/trying-to-add-clonezilla-to-pxe-menu

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

            @alouis here’s what i use

            :MENU
            menu
            item --gap -- ---------------- iPXE boot menu ----------------
            item clonezilla_backup Clonezilla backup
            item clonezilla_restore Clonezilla restore
            item return return to previous menu
            choose --default return target && goto ${target}
            
            :clonezilla_backup
            login
            kernel http://${fog-ip}/ipxe/clonezilla/live/vmlinuz initrd=http://${fog-ip}/ipxe/clonezilla/live/initrd.img ocs_live_run="ocs-live-general" boot=live live-config noswap nolocales keyboard-layouts=NONE edd=on nomodeset ocs_daemonon="ssh" ocs_lang="en_US.UTF-8" vga=788 nosplash fetch=http://${fog-ip}/ipxe/clonezilla/live/filesystem.squashfs ocs_prerun="mount.cifs -o user=${username},dom=<domain>,pass=${password},vers=2.1,rsize=32768,wsize=32768,rw, //server/share/clonezilla/${username} /home/partimag "
            initrd http://${fog-ip}/ipxe/clonezilla/live/initrd.img
            boot ||
            goto MENU
            :clonezilla_restore
            login
            kernel http://${fog-ip}/ipxe/clonezilla/live/vmlinuz initrd=http://${fog-ip}/ipxe/clonezilla/live/initrd.img ocs_live_run="ocs-live-general" boot=live live-config noswap nolocales keyboard-layouts=NONE edd=on nomodeset ocs_daemonon="ssh" ocs_lang="en_US.UTF-8" vga=788 nosplash fetch=http://${fog-ip}/ipxe/clonezilla/live/filesystem.squashfs ocs_prerun="mount.cifs -o user=${username},dom=<domain>,pass=${password},vers=2.1,rsize=32768,ro, //server/share/clonezilla/restore /home/partimag "
            initrd http://${fog-ip}/ipxe/clonezilla/live/initrd.img
            boot ||
            goto MENU
            

            i this uses a mapped smb location using user supplied credentials to save into a folder that shares the user’s name.
            to restore images, move the image to the “restore” directory.
            i did it this way to reduce clutter by multiple people saving images, and adding a small amount of security, since most of this is done by student workers.

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

            1 Reply Last reply Reply Quote 1
            • Z
              Zer0Cool
              last edited by

              Here is my entry, this just boots up as if you put the disc in the host, should work UEFI or BIOS. I just did a new iPXE entry from the web GUI and placed this in the parameters.

              kernel http://${fog-ip}/os/cz/live/vmlinuz
              initrd http://${fog-ip}/os/cz/live/initrd.img
              imgargs vmlinuz initrd=initrd.img vga=791 boot=live union=overlay components noprompt edd=on nomodeset nosplash config locales=en_US.UTF-8 keyboard-layouts=NONE fetch=http://${fog-ip}/os/cz/live/filesystem.squashfs ocs_prerun="" ocs_live_run="" ocs_live_batch="no"
              boot || goto MENU
              

              I have the Clonezilla CD contents at ${fog-ip}/os/cz/live which I have pointed httpd/apache to. You can replace http with tftp or whatever protocol you use for PXE booting.

              Clonezilla has a list of parameters someplace that I used to help me work out the menu.

              I am sure you have a good reason for using Clonezilla or wanting it, would you mind if I asked why?

              I have it for old images captured using Clonezilla while I transitioned to FOG, but honestly dont need/use it anymore.

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

                @zer0cool I should add fog now has the ability to take raw clonezilla images directly, well you change the filenames a little but otherwise it’s a 1:1 swap. Just set manager to partclone uncompressed. The mbr from cz would change to name d1.mbr, sda1 would change to d1p1.img and up as 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! 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
                • 1 / 1
                • First post
                  Last post

                228

                Online

                12.0k

                Users

                17.3k

                Topics

                155.2k

                Posts
                Copyright © 2012-2024 FOG Project