This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
fileservices:fog_clonezilla [2015/05/06 09:04] tschulz created |
fileservices:fog_clonezilla [2015/05/06 09:52] (current) tschulz |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Netbooting Clonezilla on Fog ====== | + | ====== Netbooting Clonezilla from Fog iPXE ====== |
- | - Download a Clonezilla ISO | + | * The Following will allow you to netboot clonezilla from the Fog 1.x iPXE service. Keep in mind that you will be modifying the php code for the iPXE menu. In case there is any confusion everything below is done one the fog server |
+ | |||
+ | - Download a [[http://clonezilla.org/downloads.php|Clonezilla]] ISO | ||
- From the ISO in the **/live** dir copy **vmlinuz** to **/var/www/fog/service/ipxe/cz.vmlinuz** | - From the ISO in the **/live** dir copy **vmlinuz** to **/var/www/fog/service/ipxe/cz.vmlinuz** | ||
- From the ISO in the **/live** dir copy to **initrd.img** **/var/www/fog/service/ipxe/cz.initrd.img** | - From the ISO in the **/live** dir copy to **initrd.img** **/var/www/fog/service/ipxe/cz.initrd.img** | ||
- From the ISO in the **/live** dir copy **filesystem.squashfs** to **/var/www/fog/service/ipxe/cz.filesystem.squashfs** | - From the ISO in the **/live** dir copy **filesystem.squashfs** to **/var/www/fog/service/ipxe/cz.filesystem.squashfs** | ||
+ | - Edit **/var/www/fog/lib/fog/BootMenu.class.php** ~ **line 126** add <file php>'fog.clonezilla' => 'CLonezilla Shell',</file> | ||
+ | - Edit **/var/www/fog/lib/fog/BootMenu.class.php** ~ **line 745** and **line 758 (two places)** add <file php>else if ($option == 'fog.clonezilla') | ||
+ | $this->menuOpt($option, true);</file> | ||
+ | - Edit **/var/www/fog/lib/fog/BootMenu.class.php** ~ **line 767** add (be sure to change **ocs_prerun** and the **fetch** argument)<file php>else if ($option == 'fog.clonezilla') | ||
+ | { print ":$option\n"; | ||
+ | print "kernel cz.vmlinuz\n"; | ||
+ | print "initrd cz.initrd.img\n"; | ||
+ | print "imgargs cz.vmlinuz boot=live config noswap nolocales edd=on nomodeset ocs_live_run=\"ocs-live-general\" ocs_live_extra_param=\"\" ocs_live_keymap=\"NONE\" ocs_prerun=\"mount -t nfs 10.1.0.81:/home/partimag /home/partimag\" ocs_live_batch=\"no\" ocs_daemonon=\"ssh\" usercrypted=Kb/VNchPYhuf6 ocs_lang=\"\" vga=788 nosplash noprompt fetch=http://fog.sebeka.k12.mn.us/fog/service/ipxe/cz.filesystem.squashfs\n"; | ||
+ | print "boot || goto MENU\n"; | ||
+ | }</file> |