A couple of years ago I set up an Ubuntu 10.0.4 with DRBL to clone Windows machines. Lately I was trying to do the same with the latest version of Ubuntu and it’s not successful. So I switched to CentOS 6 which I found out it’s pretty easy. Below is what I did.
The Clonezilla/DRBL server is a Dell old laptop with one NIC with a 160GB hard drive.
1. Install CentOS 6.6 minium. Make sure you assign a static private IP address to the NIC.
2. Turn off iptables and selinux.
#service iptables stop
#chkconfig iptables off
#vi /etc/sysconfig/selinux
change SELINUX from “permissive” to “disabled”
reboot your machine
3. Install DRBL key
#rm -f GPG-KEY-DRBL
#yum install wget
#wget http://drbl.org/GPG-KEY-DRBL
#rpm –import GPG-KEY-DRBL
4. Download the DRBL rpm package. You can visit http://drbl.org/ to download
5. CD to the downloaded file path, run
#yum install xxxxx.rpm
That way it will install all the dependencies.
6. Now run
#drblsrv -i
example: http://drbl.org/installation/examples/drblsrv_desktop_example.txt
7. Add eth0:1 virtual NIC
Please edit the file: /etc/sysconfig/network-scripts/ifcfg-eth0:1 like this: ----------------------------------------------- DEVICE=eth0:1 BOOTPROTO=static BROADCAST=192.168.100.255 IPADDR=192.168.100.254 NETMASK=255.255.255.0 NETWORK=192.168.100.0 ONBOOT=yes ----------------------------------------------- then run "/etc/init.d/network restart" to restart the network.
8. Reboot the machine
9. Now run
#drblpush -i
For this, make sure it sees TWO NICs, eth0 and eth0:1. The DRBL/Clonezilla server will act as the DHCP server. The client machines will get the IP addresses from the only NIC interface.
10. After setting up, you should disconnect the Ethernet cable from the router before you start the DRBL service. If you still have the Ethernet cable connected to the router there will be DHCP servers conflict.
11.
Start Clonezilla Server
Run:
# /usr/drbl/dcs
First screen Choose “Select all the clients“.
Second Screen Choose “clonezilla-start“.
Third screen choose “Beginner mode”.
Fourth screen choose “select-in-client“. This gives you to option to choose whether to restore or save the image during Clonezilla’s booting process in the client itself.
The rest screens, click “ok” and we are done!
12. You can now connect your laptop and your client machines to the same LAN; Boot your client machines using the PXE boot.