Trying to add clonezilla to PXE Menu!
-
Server
- FOG Version: 1.3.5-RC-10
- OS: Ubuntu Server 16.04.2 LTS
Client
- Service Version:
- OS:
Description
I am trying to add CloneZilla to the FOG PXE menu and can’t find anything on google that works on the newer fog version. Everything is on the older fog and the method to add to PXE is different. From the clonezilla website, they say use this label Clonezilla-live
MENU LABEL Clonezilla Live (Ramdisk)
KERNEL vmlinuz
APPEND initrd=initrd.img boot=live username=user union=overlay config components quiet noswap edd=on nomodeset nodmraid locales= keyboard-layouts= ocs_live_run=“ocs-live-general” ocs_live_extra_param=“” ocs_live_batch=no net.ifnames=0 nosplash noprompt fetch=tftp://$serverIP/filesystem.squashfsI tried convering that, but I only get a kernel panic when trying to boot, or just gives error when I try to edit it more…
kernel vmlinuz
initrd initrd.img
imgargs boot=live username=user union=overlay config components quiet noswap edd=on nomodeset nodmraid locales= keyboard-layouts= ocs_live_run=“ocs-live-general” ocs_live_extra_param=“” ocs_live_batch=no net.ifnames=0 nosplash noprompt
imgfetch filesystem.squashfs
bootCan someone please help me. I added vmlinuz, initrd.img, filesystem.squashfs from clonezilla zip to /var/www/fog/service/ipxe
THANKS!!
-
From : http://bootallthethings.blogspot.com/2013/01/ipxe-clonezilla.html
:Clonezilla echo Starting CloneZilla with default options kernel http://boot.server/CloneZilla/vmlinuz initrd http://boot.server/CloneZilla/initrd.img imgargs vmlinuz boot=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_daemonon="ssh" usercrypted=Kb/VNchPYhuf6 ocs_lang="" vga=788 nosplash noprompt fetch=http://boot.server/CloneZilla/filesystem.squashfs boot || goto failed goto start
-
To your imgargs line, I might suggest adding
initrd=initrd.img
You might also try this:
initrd http://${fog-ip}/path/in/browser/form/initrd.img imgfetch http://${fog-ip}/path/in/browser/form/filesystem.squashfs chain -ar http://${fog-ip}/path/in/browser/form/vmlinuz boot=live username=user union=overlay config components quiet noswap edd=on nomodeset nodmraid locales= keyboard-layouts= ocs_live_run=“ocs-live-general” ocs_live_extra_param="" ocs_live_batch=no net.ifnames=0 nosplash noprompt initrd=initrd.img
-
<edit> Tom is right of course. Please follow his guidance. </edit>
If you look at what FOG does to call remote linux kernels.
kernel http://192.168.1.53/fog/service/ipxe/bzImage32 loglevel=4 initrd=init_32.xz root=/dev/ram0 rw ramdisk_size=127000 web=192.168.1.53/fog/ consoleblank=0 rootfstype=ext4 loglevel=4 imgfetch http://192.168.1.53/fog/service/ipxe/init_32.xz
You see that it defines the http path to the files it needs. I’m not saying that is your whole issue but an issue.
-
@Tom-Elliott said in Trying to add clonezilla to PXE Menu!:
To your imgargs line, I might suggest adding
initrd=initrd.img
You might also try this:
initrd http://${fog-ip}/path/in/browser/form/initrd.img imgfetch http://${fog-ip}/path/in/browser/form/filesystem.squashfs chain -ar http://${fog-ip}/path/in/browser/form/vmlinuz boot=live username=user union=overlay config components quiet noswap edd=on nomodeset nodmraid locales= keyboard-layouts= ocs_live_run=“ocs-live-general” ocs_live_extra_param="" ocs_live_batch=no net.ifnames=0 nosplash noprompt initrd=initrd.img
So I edited the whole block to read…
initrd initrd.img imgfetch filesystem.squashfs chain -ar vmlinuz boot=live username=user union=overlay config components quiet noswap edd=on nomodeset nodmraid locales= keyboard-layouts= ocs_live_run=“ocs-live-general” ocs_live_extra_param="" ocs_live_batch=no net.ifnames=0 nosplash noprompt initrd=initrd.img``` and got kernal panic, not sure if that's what you meant for me to try and the paths like that.
-
also tried
initrd http://10.0.0.233/fog/service/ipxe/initrd.img imgfetch http://10.0.0.233/fog/service/ipxe/filesystem.squashfs chain -ar http://10.0.0.233/fog/service/ipxe/vmlinuz boot=live username=user union=overlay config components quiet noswap edd=on nomodeset nodmraid locales= keyboard-layouts= ocs_live_run=“ocs-live-general” ocs_live_extra_param="" ocs_live_batch=no net.ifnames=0 nosplash noprompt initrd=initrd.img
-
@bootsnspurs What about removing the filesystem.squashfs
-
@Tom-Elliott Without filesystem.squashfs line It goes to a black screen with blinking cursor
then after , unable to find a medium containing a live file system -
said in Trying to add clonezilla to PXE Menu!:
initrd=initrd.img boot=live username=user union=overlay config components quiet noswap edd=on nomodeset nodmraid locales= keyboard-layouts= ocs_live_run=“ocs-live-general” ocs_live_extra_param=“” ocs_live_batch=no net.ifnames=0 nosplash noprompt fetch=tftp://$serverIP/filesystem.squashfs
What if you followed the original append line?
For example:
initrd http://10.0.0.233/fog/service/ipxe/initrd.img kernel http://10.0.0.233/fog/service/ipxe/vmlinuz initrd=initrd.img boot=live username=user union=overlay config components quiet noswap edd=on nomodeset nodmraid locales= keyboard-layouts= ocs_live_run=“ocs-live-general” ocs_live_extra_param="" ocs_live_batch=no net.ifnames=0 nosplash noprompt fetch=http://10.0.0.233/fog/service/ipxe/filesystem.squashfs
-
From : http://bootallthethings.blogspot.com/2013/01/ipxe-clonezilla.html
:Clonezilla echo Starting CloneZilla with default options kernel http://boot.server/CloneZilla/vmlinuz initrd http://boot.server/CloneZilla/initrd.img imgargs vmlinuz boot=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_daemonon="ssh" usercrypted=Kb/VNchPYhuf6 ocs_lang="" vga=788 nosplash noprompt fetch=http://boot.server/CloneZilla/filesystem.squashfs boot || goto failed goto start
-
@george1421 This code worked for me. Thank you.
Thanks Tom also.
-
@bootsnspurs said in Trying to add clonezilla to PXE Menu!:
@george1421 This code worked for me. Thank you.
Thanks Tom also.
please mark as solved