Since I wrote the post ‘Clonezilla‘ in January, our blog has been getting a lot of hits, apparently from people looking for advice on how to set up Clonezilla. This is understandable, since DRBL (of which Clonezilla is just a piece) is a complex piece of work, with loads of possibilities. So I decided to write up a small HOWTO, a quick and dirty method of getting Clonezilla up and running.

Before I go on, a bit of a disclaimer: Following the instructions below may not provide you with results that fit your particular needs. If you have specific and detailed requirements, see the DRBL documentation. If you would like to hire LightCube Solutions to provide assistance in setting up a Clonezilla solution for your organization, send an email to info@lightcubesolutions.com.

The Steps

1. Install Linux

You’ll need a Linux machine to run your Clonezilla services. These instructions were successfully tested on Ubuntu 9.04 and 9.10 and Debian 5. DRBL will also run on Fedora.

2. Install DRBL

First off, open up a Terminal. In Ubuntu and Debian, this is located in ‘Applications -> Accessories -> Terminal’. If you have sudo configured, you can change to super-user access by typing:

sudo -i

Otherwise, use the root password with the following:

su -

Next, add DRBL’s GPG key to your system:

wget http://drbl.sourceforge.net/GPG-KEY-DRBL
apt-key add GPG-KEY-DRBL

Update your apt configuration so that you can install software from the DRBL guys:

cp /etc/apt/sources.list{,.bak}
echo "deb http://drbl.sourceforge.net/drbl-core drbl stable" \
  >> /etc/apt/sources.list

Finally, install DRBL:

apt-get update
apt-get install drbl

3. Configure a Network Alias

DRBL requires that you have two network interfaces. We can get around this by adding a virtual interface:

cat >> /etc/network/interfaces << "EOF"
auto eth0:1
iface eth0:1 inet static
   address 192.168.222.1
   netmask 255.255.255.0
EOF
ifup eth0:1

To verify that you have set up the alias properly, type:

ip addr show eth0 | grep eth0:1

You should see something like this:
inet 192.168.222.1/24 brd 192.168.222.255 scope global eth0:1

4. Configure Your New DRBL Server

Run the following two interactive commands (note that this will require an internet connection and may take some time):

/opt/drbl/sbin/drblsrv -i
/opt/drbl/sbin/drblpush -i

Congratulations! That’s it, you have a DRBL/Clonezilla server ready to create and deploy custom images. All you need to do to start cloning is run:

/opt/drbl/sbin/dcs

Then, boot up your client machines using PXE. See, that wasn’t too painful…

5 thoughts on “Clonezilla HOWTO: Quick and Dirty Setup

  1. When I run /opt/drbl/sbin/drbl4imp it goes through all the processes and gets to the end saying “Preconfiguring Packages…” and stays there.

    Reply
      • There seems to be a bug when using the drbl4imp command on Ubuntu 9.04. I can consistently reproduce the behavior that the two of you reported on 9.04. The newly released Ubuntu 9.10 does not stall the same way.

        Even so, given that there are many ways that you can configure DRBL/Clonezilla, letting their script make all those assumptions on your setup isn’t really the most effective way of using it. I would recommend that users avoid using that command and instead use the combination of the other two interactive commands. These will prompt you for responses and allow you to make choices concerning how the DRBL service operates.

        With that in mind, I’m going to edit the above post to remove the ‘drbl4imp’ command as a recommendation altogether.

        Reply
  2. I really need some help with setting up DRBL & PXE in order to use Clonezilla. I was done all the required steps as instructed from Clonezilla site. But I’ve been getting the error message below

    Jan 29 10:53:44 eth0-eth0 dhclient: DHCPREQUEST on eth0 to 192.168.1.2 port 67
    Jan 29 10:53:51 eth0-eth0 dhcpd: DHCPDISCOVER from 00:0d:48:35:07:30 via eth0
    Jan 29 10:53:52 eth0-eth0 dhcpd: DHCPOFFER on 192.168.1.2 to 00:0d:48:35:07:30 via eth0
    Jan 29 10:53:55 eth0-eth0 dhcpd: DHCPREQUEST for 192.168.1.2 (192.168.1.61) from 00:0d:48:35:07:30 via eth0
    Jan 29 10:53:55 eth0-eth0 dhcpd: DHCPACK on 192.168.1.2 to 00:0d:48:35:07:30 via eth0
    Jan 29 10:53:55 eth0-eth0 in.tftpd[3286]: /tftpboot/nbi_img: Permission denied
    Jan 29 10:53:55 eth0-eth0 xinetd[2228]: START: tftp pid=3286 from=192.168.1.2
    Jan 29 10:53:55 eth0-eth0 xinetd[2228]: EXIT: tftp status=66 pid=3286 duration=0(sec)
    Jan 29 10:53:57 eth0-eth0 in.tftpd[3287]: /tftpboot/nbi_img: Permission denied
    Jan 29 10:53:57 eth0-eth0 xinetd[2228]: START: tftp pid=3287 from=192.168.1.2
    Jan 29 10:53:57 eth0-eth0 xinetd[2228]: EXIT: tftp status=66 pid=3287 duration=0(sec)
    Jan 29 10:54:01 eth0-eth0 dhclient: DHCPREQUEST on eth0 to 192.168.1.2 port 67
    Jan 29 10:54:01 eth0-eth0 dhcpd: DHCPREQUEST for 192.168.1.61 from 00:0c:f1:a5:c4:f4 via eth0: unknown lease 192.168.1.61.
    Jan 29 10:54:01 eth0-eth0 in.tftpd[3288]: /tftpboot/nbi_img: Permission denied
    Jan 29 10:54:01 eth0-eth0 xinetd[2228]: START: tftp pid=3288 from=192.168.1.2
    Jan 29 10:54:01 eth0-eth0 xinetd[2228]: EXIT: tftp status=66 pid=3288 duration=0(sec)
    Jan 29 10:54:07 eth0-eth0 in.tftpd[3289]: /tftpboot/nbi_img: Permission denied
    Jan 29 10:54:07 eth0-eth0 xinetd[2228]: START: tftp pid=3289 from=192.168.1.2
    Jan 29 10:54:07 eth0-eth0 xinetd[2228]: EXIT: tftp status=66 pid=3289 duration=0(sec)
    Jan 29 10:54:15 eth0-eth0 in.tftpd[3290]: /tftpboot/nbi_img: Permission denied
    Jan 29 10:54:15 eth0-eth0 xinetd[2228]: START: tftp pid=3290 from=192.168.1.2
    Jan 29 10:54:15 eth0-eth0 xinetd[2228]: EXIT: tftp status=66 pid=3290 duration=0(sec)
    Jan 29 10:54:19 eth0-eth0 dhclient: DHCPREQUEST on eth0 to 192.168.1.2 port 67
    Jan 29 10:54:19 eth0-eth0 dhcpd: DHCPREQUEST for 192.168.1.61 from 00:0c:f1:a5:c4:f4 via eth0: unknown lease 192.168.1.61.
    Jan 29 10:54:25 eth0-eth0 in.tftpd[3293]: /tftpboot/nbi_img: Permission denied
    Jan 29 10:54:25 eth0-eth0 xinetd[2228]: START: tftp pid=3293 from=192.168.1.2
    Jan 29 10:54:25 eth0-eth0 xinetd[2228]: EXIT: tftp status=66 pid=3293 duration=0(sec)

    I appreciate very much for any effort to assit me solving this problem.

    T

    Reply
  3. Pingback: Clonezilla HOWTO: Quick and Dirty Setup | osscc

Leave a reply

required

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>