You are here

Utilities

Serve Clonezilla with PXE using TFTP on a UEFI computer

AttachmentSize
Package icon pxe-clonezilla-live-uefi.zip254.41 KB
PXE: 

Image

Fetch the required files

What you need:

  • Clonezilla's zip file: clonezilla-live-20140915-trusty-amd64.zip
  • syslinux-6.03.zip Download it on kernel.org.
  • pxelinux's config file (pxelinux.cfg/default):
    DEFAULT Clonezilla-live
    
    LABEL Clonezilla-live
     MENU LABEL Clonezilla Live (Ramdisk)
     KERNEL vmlinuz
     APPEND initrd=initrd.img 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_lang="" vga=788 nosplash noprompt fetch=tftp://[INSERT YOUR IP HERE]/filesystem.squashfs
    

Extract PXELINUX's files

Extract the following files into the current folder.

\efi64\efi\syslinux.efi
\efi64\com32\elflink\ldlinux\ldlinux.e64

Extract clonezilla's files

Extract the required files from the zipfile in the current folder.

live/vmlinuz
live/initrd.img
live/filesystem.squashfs

Check that you have all the required files

Your folder should look like this:

filesystem.squashfs
initrd.img
ldlinux.e64
pxelinux.cfg/default
syslinux.efi
vmlinuz

Configure

Edit pxelinux.cfg and insert your IP. You can also preset parameters (see http://clonezilla.org/show-live-doc-content.php?topic=clonezilla-live/doc/99_Misc.

Boot

Set up your DHCP and TFTP servers and boot syslinux.efi.

Sources

Boot Kon-Boot 2.0 using PXE

PXE: 

What you need:

Serve Clonezilla with PXE using TFTP on a legacy BIOS computer

AttachmentSize
Package icon pxe-clonezilla-live.zip118.74 KB
PXE: 

The system used here is a Windows XP.

Fetch the required files

What you need:

  • Clonezilla's zip file: clonezilla-live-1.2.12-10-amd64.zip
  • pxelinux.0
  • pxelinux's config file (pxelinux.cfg/default):
    DEFAULT Clonezilla-live
    
    LABEL Clonezilla-live
     MENU LABEL Clonezilla Live (Ramdisk)
     KERNEL vmlinuz
     APPEND initrd=initrd.img 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_lang="" vga=788 nosplash noprompt fetch=tftp://[INSERT YOUR IP HERE]/filesystem.squashfs
    

Extract the files

Extract the required files from the zipfile.

live/vmlinuz live/initrd.img live/filesystem.squashfs

Configure

Edit pxelinux.cfg and insert your IP. You can also preset parameters (see http://clonezilla.org/show-live-doc-content.php?topic=clonezilla-live/doc/99_Misc.

Boot

Set up your DHCP and TFTP servers and boot your target.

Sources

Serve clonezilla using PXE on a freebsd host with nfs.

PXE: 
Not so frequently asked questions and stuff: 

System used

The server system used was a soekris net4801 running freebsd.

uname -a
FreeBSD net4801 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Fri Feb 18 02:24:46 UTC 2011     root@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386

Ports

You will need the following ports:

  • ftp/tftp-hpa (I tried using the builtin tftp server but it sometimes failed for no reason).
  • net/isc-dhcp41-server (or any other dhcp server you fancy)

DHCP server

Configure your dhcp server to serve pxelinux.0

#/usr/local/etc/dhcpd.conf
subnet 192.168.242.0 netmask 255.255.255.0 {
  range 192.168.242.4 192.168.242.250;
  next-server 192.168.242.3;
  filename "pxelinux.0";
}

TFTP server

Configure your tftp server to listen and serve the right folder.

#/etc/inetd.conf

#if you are using tftp:
tftp   dgram   udp     wait    root    /usr/libexec/tftpd      tftpd -l -s /usr/local/tftpboot

#if you are using tftp-hpa:
tftp    dgram   udp     wait    root    /usr/local/libexec/in.tftpd     in.tftpd -p -s /usr/local/tftpboot

Check that the server is running:

netstat -a | grep tftp
udp4       0      0 *.tftp                 *.*

TFTP files

  • Copy the kernel (vmlinux) and the initrd (initrd.img) from the cd/usb/zip to the folder /images/clonezilla.
  • Download or find elsewhere a working copy of pxelinux.0 and copy it to /
  • Add an entry to the file pxelinux.cfg/default
ls /usr/local/tftpboot/
images          pxelinux.0      pxelinux.cfg

ls /usr/local/tftpboot/pxelinux.cfg/
default

ls /usr/local/tftpboot/images/clonezilla/
initrd.img              vmlinuz

cat pxelinux.cfg/default
MENU LABEL Clonezilla live
DEFAULT clonezillanfs

label clonezillanfs
kernel images/clonezilla/vmlinuz
append initrd=images/clonezilla/initrd.img boot=live live-config noswap union=aufs netboot=nfs nfsroot=192.168.242.3:/usr/local/clonezilla_nfs ocs_live_run="ocs-live-general" ocs_live_extra_param="" ocs_live_keymap="" ocs_live_batch="no" ocs_lang="" vga=788

NFS Server

Configure your nfs server to serve the folder /usr/local/clonezilla_nfs.

cat /etc/exports
/usr/local/clonezilla_nfs    -network 192.168.242 -mask 255.255.255.0

Copy or mount the cd into the folder.

ls /usr/local/clonezilla_nfs/
COPYING                 isolinux                syslinux
Clonezilla-Live-Version live                    utils

Run

Boot the client and use clonezilla.

References:

Subscribe to Utilities