Requirement
PXE Server
CloneZilla bootable iso / zip
Download & mount / extract clonezilla iso / zip.
Create folder on existing pxe server
mkdir -p /tftpboot/images/clone/
Copy vmlinuz, initrd & filesystem from clonezilla mount location
cp live/vmlinuz /tftpboot/images/clone/
cp live/initrd.img /tftpboot/images/clone/
cp live/filesystem.squashfs /tftpboot/images/clone/
Append following lines in /tftpboot/pxelinux.cfg/default
label Clonezilla Live
MENU LABEL Clonezilla Live
kernel images/clone/vmlinuz
append initrd=images/clone/initrd.img boot=live live-config noswap nolocales edd=on nomodeset ocs_live_run="ocs-live-general" ocs_live_extra_param="" ocs_live_keymap="" ocs_live_batch="no" ocs_lang="" vga=788 nosplash fetch=tftp://192.168.1.2/images/clone/filesystem.squashfs
Here 192.168.1.2 is pxe server
Above config will boot clonezilla using pxe & you’ll get prompt to choose lang, mount image source dir etc.
OR you can use following config to skip lang selection & mount option, however it will still prompt you to select image source but you can skip & continue as we have mentioned nfs server in following config.
label Clonezilla
MENU LABEL Clonezilla
kernel images/clone/vmlinuz
append initrd=images/clone/initrd.img boot=live live-config noswap nolocales edd=on nomodeset ocs_live_run="ocs-live-general" ocs_live_extra_param="" ocs_live_keymap="NONE" ocs_live_batch="yes" ocs_lang="en_US.UTF-8" vga=788 nosplash fetch=tftp://192.168.1.2/images/clone/filesystem.squashfs ocs_prerun="mount -t nfs 192.168.1.2:/storage/clonezilla /home/partimag"
Here 192.168.1.2:/storage/clonezilla is clonezilla image location. You can also use other options like samba instead of nfs.
SOURCE@LINUXREADERS