We assume that our server has ip 192.168.171.11, and root directory of tftp server is /srv/tftp
Download clonezilla-live-1.2.8-42-i686.zip and clonezilla-live-1.2.8-42-amd64.zip on a local directory and unzip them. Obviously you can use only one of them.
# wget http://www.kernel.org/pub/linux/utils/boot/syslinux/syslinux-4.04.tar.bz2
# tar xjvf syslinux-4.04.tar.bz2
# cp syslinux-4.04/core/pxelinux.0 /srv/tftp/
# cp syslinux-4.04/com32/menu/vesamenu.c32 /srv/tftp
# mkdir /srv/tftp/clonezilla-amd64
# cp clonezilla-live-1.2.8-42-amd64/live/* /srv/tftp/clonezilla-amd64/
# mkdir /srv/tftp/clonezilla-i686
# cp clonezilla-live-1.2.8-42-i686/live/* /srv/tftp/clonezilla-i686/
# mkdir /srv/tftp/pxelinux.cfg
edit, or add at the end of /etc/dhcp/dhcpd.conf
authoritative;
subnet 192.168.171.0 netmask 255.255.255.0 {
range 192.168.171.101 192.168.171.190;
option domain-name “spsarone.local”;
option domain-name-servers 192.168.171.11;
option broadcast-address 192.168.171.255;
option routers 192.168.171.1;
next-server 192.168.171.11;
# get-lease-hostnames true;
option subnet-mask 255.255.255.0;
filename “/pxelinux.0”;
}
copy attached file default.txt to /srv/tftp/pxelinux.cfg/default
Leave a Reply