The great thing about CloneZilla is that its quick and easy to get it booting via iPXE, so is worth investing a small amount of time in setting up so that you have it ready to go should you need it.
These instructions are based on release clonezilla-live-20121217-quantal.iso which seems to be versioned 2.0.1-15.
Download the ISO from the CloneZilla site. Use 7zip or your favourite image opening tool to open the ISO. You need to extract the following files:
- vmlinuz
- initrd.img
- filesystem.squashfs
and put them onto your boot webserver. In this example, I have created a folder called CloneZilla.
############ CloneZilla ############
: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
And that is really about it! You'll notice we pass a few arguments which set various options. The most important option is the 'fetch=' command which tells the image where to download the main file system from. The other option I set was 'usercrypted=' which uses the Linux mkpasswd command to set the root password on boot - in this example iloveclonezilla.
A really easy one this week, but one worth trying. I'm fighting to get Backtrack5 booting over iPXE without using the ISO method, but this is proving troublesome. I think the image simply isn't able to cope with being booted from a http network source.
Great one, thanks!
ReplyDelete