Integrating clonezilla into fog
-
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
-
@alouis Mind sharing the information you looked at and what you have tried so far? Errors you see?
-
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
-
@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. -
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.
-
@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.