Setup a Clonezilla Server on Ubuntu

At work I am solely in charge of approximately 200 computers, this has led me to become sort of an expert in cloning. I have tested many commercial packages and none come close to Clonezilla. Clonezilla has two versions: Clonezilla live, which as its name states, runs from a live CD and Clonezilla SE (Server Edition).  In this article I will describe how to install the SE version on the latest Ubuntu release (10.04 Lucid Lynx).  Please note that this is a walkthrough so do not let the length of the article scare you. The set-up is actually very easy with this article. I have also written a tutorial on how to use Clonezilla.

One key advantage of the server version is that it allows for multicasting, which the live version does not. Multicasting basically allows many computers to be cloned simultaneously and in the same amount of time it would take cloning a single computer. Multicasting allows the user to restore a large groups of computers across the network in a matter of minutes. As an example, let say that you have 40 new computers that just arrived and you need to have them all up and running by tomorrow. Clonezilla can get the job done in 10 minutes! and I am not talking about 10 minutes per computer, I am talking about 10 minutes for the whole batch! Restoring a 5 GB compressed image on 40 computers at once in 10 minutes; Sounds incredible? I could not believe it myself until I tried it. On the other hand, the Clonezilla live CD communicates with each computer individually, making the restoration time dependent on the amount of computers being restored. Another advantage of the server edition is the fact that you can have your own cloning station ready to save or restore any computer at any given time and to provide a storage location for all your images. If you are wondering what Clonezilla version is right for you, read my article: Clonezilla Live Vs. Clonezilla Server (DRBL).

Prepare Ubuntu

Clonezilla SE works by providing a boo-table environment for clients though the network.  For this purpose a DHCP server will have to be installed. You will have to make sure that none of the computers in your organization are set to boot from network as first boot device, otherwise they might boot to Clonezilla instead of their own operating system. There is a way around this:  A file can be created with all MAC addresses of the computers to be cloned. This will prevent the server from booting unwanted machines. However, from experience I have found that it is easier to just boot the desired machines from network manually and once booted into Clonezilla the cloning process can be started from the server with the click of a button.

1) Enable “Universe” and “Multiverse” repositories under:  System -> Administration -> Software Sources.

2) Open your sources list file to add the Clonezilla repository issuing the following command at your shell prompt:

sudo gedit /etc/apt/sources.list

3) Add the following line at the bottom of the file and save it.

deb http://drbl.sourceforge.net/drbl-core drbl stable

4) Download the GPG Key for the new clonezilla source repository by issuing the following command at your shell prompt:

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

5) Add the key with the following command:

sudo apt-key add GPG-KEY-DRBL

6) Make sure operating system is fully updated by issuing the following command at your shell prompt:

sudo apt-get update


Setup Ubuntu’s Network Configuration

1) Uninstall Network Manager by issuing the following command at the shell prompt (This is optional, it is done because network manager sometimes does not like the virtual interface created for Clonezilla. I had no problems with network manager in Ubuntu 10.04)

sudo apt-get remove network-manager

2) Type the following command at a terminal screen to open your network interfaces configuration file:

sudo gedit /etc/network/interfaces

Edit the file to look as the one displayed below; you can copy – paste this information to your interfaces file. As you can see on the configuration below we have two interfaces, eth0 and eth0:0. Eth0 is your main network card’s IP configuration; we are going to use this to connect to the web, etc.  eth0:0 is a “virtual” interface which we will use for Clonezilla. Just remember  to match eth0′s IP configuration with that of your local network and to make eth0:0 IP a totally different subnet from that of eth0, look at the example down below. etho is 192.168.1.200 and eth0:0 is 192.168.99.200 is eth0:0, so they don’t conflict.  Also, Clonezilla’s virtual interface, eth0:0 must use a “class C” IP address (e.g. 192.168.x.x) otherwise muticasting effectiveness will be greatly reduced.

#Loopback
auto lo
iface lo inet loopback

#Network Interface, this should match your network
auto eth0
iface eth0 inet static
address 192.168.1.200
netmask 255.255.255.0
gateway 192.168.1.1

#Virtual Interface for Conezilla, make sure you use a "class C" IP (192.168.x.x)
auto eth0:0
iface eth0:0 inet static
address 192.168.99.200
netmask 255.255.255.0


Install DRBL

1) To install DRBL (which comes with Clonezilla in one package) issue the following command:

sudo apt-get install drbl

This is all you have to do. You do not need to install any dependencies, since it all comes in one package.


Setup DRBL

To start the DRBL setup, issue the following command:

sudo /opt/drbl/sbin/drblsrv -i

Clonezilla (DRBL) setup will begin. Answer everything as you see it below. Do not worry if you make a mistake, you can always start the set-up again issuing the same previous command.

The first question basically asks you if you want to install other Linux images, answer “N

Do you want to install the network installation boot images so that you can let the client computer install some GNU/Linux distributions (Debian, Ubuntu, RedHat Linux, Fedora Core, Mandriva, CentOS and OpenSuSE…) via a network connection?  !!NOTE!! This will download a lot of files (Typically > 100 MB) so it might take a few minutes. If the client computer has a hard drive that you may install GNU/Linux onto, put a Y here. If you answer “no” here, you can run “drbl-netinstall” to install them later.
[y/N] N


Next question asks if you would like to use a serial console instead of a GUI, so choose “N

Do you want to use the serial console output on the client computer(s)?
If you do NOT know what to pick, say “N” here, otherwise the client computer(s) may show NOTHING on the screen!
[y/N] N


Next question asks about the type architecture used in your CPU.  Since practically all of today’s PCs are i586, choose  “1“.

Which CPU architecture kernel do you want to assign for the DRBL client computer(s)?
0 -> i386 CPU architecture
1 -> i586 CPU architecture
2 -> Use the same architecture as this DRBL server
Note! Note Note! Note! Note! Note! Note!
NOTE!!! If the client computer(s) is not the same architecture as this server, please pick “0″ or “1″, otherwise your client computer(s) will NOT be able to boot.
If you use wrong architecture type kernel, the glibc and openssl package might use i686 or i386 while the kernel might use i686, i586, or i386, which might be not suitable for all your computer(s).
[2] 1


Select “N” in the next question. You do not want DRBL to upgrade your operating system. Next, DRBL will begin downloading and installing all its dependencies.

Do you want to upgrade the operating system?
[y/N] N


After DRBL finishes downloading and installing all its dependencies, we are done installing DRBL. Next we will be configuring Clonezilla.


Configure Clonezilla

Enter the following command at your shell prompt to start configuring Clonezilla:

sudo /opt/drbl/sbin/drblpush -i

Again, do not worry about making a mistake you can always issue the same command to start over.


At the first question just press “enter” to leave the default name.

Please enter DNS domain (such as drbl.sf.net):
[DRBL.name]


At the second question again just press “enter” to leave the default nis/yp domain name.

Please enter NIS/YP domain name:
[penguinzilla]


At the third question again just press “enter” to leave the default server name.

Please enter the client hostname prefix:
This prefix is used to automatically create hostname for clients. If you want to overwrite some or all automatically created hostnames, press Ctrl-C to quit this program now, edit /opt/drbl/conf/client-ip-hostname, then run this program again.
[servername]


The fourth question asks to choose which card to use to go to the internet, previously we chose eth0 as our connection to the web and eth0:0 as our virtual interface for Clonezilla, so enter “eth0

eth0: IP address 192.168.1.200, netmask 255.255.255.0
eth0:0: IP address 192.168.99.200, netmask 255.255.255.0
Configured ethernet card(s) found in your system: eth0 eth0:0
- – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – -
The public IP address of this server is NOT found.
Which ethernet port in this server is for public Internet accsess, not for DRBL connection?
Available ethernet ports in this server:
eth0 (192.168.1.200), eth0:0 (192.168.99.200),
[eth0] eth0

If you get a message telling you that your Clonezilla IP (eth0:0) is on a class A or B network, make sure you change it to a “Class C” (e.g. 192.168.x.x) and start Clonezilla’s configuration over, otherwise multicasting’s effectiveness will be greatly reduced.

Next question asks if you want to collect MAC addresses of computers to be cloned; this is done so that only computers that are going to be cloned get assigned an IP from DRBL.  I find this time consuming and unnecessary, since it is easier to turn DRBL off once you are done cloning so that it does not conflict with your network’s DHCP server. DRBL is very easy to turn on and off with a simple short-cut on your server’s desktop. So we are going to choose “N“.

(…summary…) Now we can collect the MAC address of clients!
Do you want to collect them?
[y/N] N


Since we chose not to collect mac addresses we will choose “N” in the next question.

Do you want to let the DHCP service in DRBL server offer same IP address to the client every time when client boots (If you want this function, you have to collect the MAC addresses of clients, and save them in file(s) (as in the previous procedure)). This is for the clients connected to DRBL server’s ethernet network interface eth0:0 ?
[y/N] N


Next question asks what will be the starting IP number assigned to client computers; you can leave it at “1” since no other computers should be using the Clonezilla subnet.

What is the initial number do you want to use in the last set of digits in the IP (i.e. the initial value of d in the IP address a.b.c.d) for DRBL clients connected to this ethernet port eth0:0.
[1] 1


Next question asks how many computers do you want to clone at a time; you can set this to whatever you want as long as it is not ridiculously high, for this example we are going to leave it at “12” computers.

How many DRBL clients (PC for students) connected to DRBL server’s ethernet network interface eth0:0 ?
Please enter the number:
[12] 12


Do you accept what we did in the previous question? Select “Y” (self explanatory).

The final number in the last set of digits in the client’s IP address is “12″. We will set the IP address for the clients connected to DRBL server’s ethernet network interface eth0:0 as: 192.168.99.1 – 192.168.99.12 Accept ?
[Y/n] Y


Next, Clonezilla will show you how your network configuration will look like; this is just information so press “enter“.

The Layout for your DRBL environment:
******************************************************
NIC      NIC IP             Clients
+———————————————————————————+
|        DRBL SERVER        |
|                           |
| +– [eth0]   10.0.2.100     +- to WAN
|                           |
| +– [eth0:0] 192.168.99.200 +-  to clients group 0:0 [12 clients,   IPs 192.168.99.1 - 12]
|                           |
+———————————————————————————+

******************************************************
Total clients: 12
******************************************************
Press Enter to continue…


Clonezilla will then ask you if you want to have the option of booting computer to Linux using the network, we are just setting the server for cloning so choose option “2“.

In the system, there are 3 modes for diskless linux services:
[0] Full DRBL mode, every client has its own NFS based /etc and /var.
[1] DRBL SSI (Single system image) mode, every client uses tmpfs based /etc and /var. In this mode, the loading and necessary disk space of server will be lighter. NOTE! (a) The client machine memory is recommended at least 256 MB. (b) The setting and config files of client will not be saved to the DRBL server! They are just used once and will vanish after the machine shutdowns! Besides, if you modify any file in the template client (located in /tftpboot/nodes), you have to run /opt/drbl/sbin/drbl-gen-ssi-files to create the template tarball in /tftpboot/node_root/drbl_ssi/. (c) If you want to provide some file to overwrite the setting in the template tarball when client boots, check /tftpboot/node_root/drbl_ssi/clients/00_README for more details.
[2] I do NOT want to provide diskless Linux service to client.
Which mode do you prefer?
[0] 2


Choose Clonezilla box mode, option “1“. This way the whole cloning operation will be lighter on the server.

In the system, there are 4 modes available for clonezilla:
[0] Full Clonezilla mode, every client has its own NFS based /etc and /var.
[1] Clonezilla box mode, every client uses tmpfs based /etc and /var. In this mode, the loading and necessary disk space of server will be lighter than that in Full Clonezilla mode. Note! In Clonezilla box mode, the setting and config files of client will not be saved to the DRBL server! They just use once and will vanish after the machine shutdowns!
[2] I do NOT want clonezilla.
[3] Use Clonezilla live as the OS (Operating System) of clients (Testing).
Which mode do you prefer?
[0] 1


Next question asks what will be the default directory where you want to store your images. To me the default “/home/partimag” is not intuitive, so I change it to “/clonezilla” so it can be easily accessible in the file-system. But this is up to you; just remember that if you decide to change it make sure you create the new folder manually, since the setup will not do it for you.

The CPU arch for clients when running Clonezilla job: i486
——————————————————
When using clonezilla, which directory in this server you want to store the saved image (Please use absolute path, and do NOT assign it under /mnt/, /media/ or /tmp/)?
[/home/partimag] /clonezilla


Unless you want to be annoyed with a password prompt every time you want to clone a computer or you are a security freak, choose “N” in the next question.

Do you want to set the pxelinux password for clients so that when client boots, a password must be entered to startup (For better security)
[y/N] N


Choose “N” at the next question as well, you do not need a boot prompt for clients

Do you want to set the boot prompt for clients?
[y/N] N


I recommend you choose “Y” in the next question; graphic backgrounds look friendlier.

Do you want to use graphic background for PXE menu when client boots?
Note! If you use graphical PXELinux menu, however client fails to boot, you can switch to text mode by running “/opt/drbl/sbin/switch-pxe-bg-mode -m text”.
[y/N] Y


Choose “N” in the next question (self explanatory).

Do you want to use DRBL server as a NAT server? If not, your DRBL client will not be able the internet.
[y/N] Y


Choose “Y” of course to finish.

We are now ready to deploy the files to the system!
Warning! If you go on your firewall rules will be overwritten during setup…
[Y/n] Y


Start Clonezilla Server

Now that we have finished configuring Clonezilla we need to start our server to get it ready for cloning. Type the following at the command prompt:

sudo /opt/drbl/sbin/dcs

At the first screen Choose “Select all the clients“.

At the second Screen Choose “clonezilla-start“.


At the third screen I recommend using “Beginner mode” for now. However, if the cloning process gets stuck when trying to clone your clients, you will have to restart the server later on and choose “Expert Mode”, since it gives you more options you can tweak to make it work.

In the 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.

Leave the two last options as they are and click “ok” and we are done!


Create desktop shortcuts to start and stop Clonezilla (Optional)

I highly recommend you create shortcuts on your server’s desktop to “start”, “start using multicasting” and “stop” clonezilla server. This will make it a lot easier, since, sometimes you might want to clone a group of computers at the same time using multicasting. This way you can do it by the click of a button instead of having to reconfigure the server.  Also, multicasting is picky and it does not always work on all computers. In case multicasting does not work for you, you can always go back to regular Clonezilla operating  mode just by clicking on a shortcut, etc. Stopping the Clonezilla is also convenient when you need to restart, or to disable the DRBL so it does not interfere with other DHCP servers on the network.


“Start Clonezilla” Shortcut

Right click on your desktop and select “Create Document” -> “Empty File”. Paste the following information inside the file and save it with the name “Start-Clonezilla.sh”.

#!/bin/bashecho "Clonezilla Starting"
'/etc/init.d/dhcp3-server' start
/opt/drbl/sbin/drbl-ocs -b -l en_US -y1 -p choose select_in_client

Right-click on your newly created shortcut; select “Properties” and click on the “Permissions” tab and check “Enable executing file as a program“.


“Start Clonezilla Using Multicasting” Shortcut

Right click on you desktop and select “Create Document” -> “Empty File”. Paste the following information inside the file and save it with the name “Start-Clonezilla-Multicasting.sh”.

#!/bin/bashecho "Clonezilla Starting"'/etc/init.d/dhcp3-server' start
/opt/drbl/sbin/drbl-ocs -b -g auto -e1 auto -e2 -x -j2 -p reboot --clients-to-wait 8
--max-time-to-wait 250 -l en_US.UTF-8 startdisk multicast_restore CLIENT-NAME sda

Substitute “CLIENT NAME” with the name of the image you wish to use for cloning your clients. Right-click on your newly created shortcut, select “Properties” and click on the “Permissions” tab and check “Enable executing file as a program“.


“Stop Clonezilla” Shortcut

Right click on your desktop and select “Create Document” -> “Empty File”. Paste the following information inside the file and save it with the name “Stop-Clonezilla.sh”.

#!/bin/bash echo "Clonezilla Stopping"
/opt/drbl/sbin/clean-dhcpd-lease
'/etc/init.d/dhcp3-server' stop
/opt/drbl/sbin/drbl-ocs stop

Right-click on your newly created shortcut, select “Properties” and click on the “Permissions” tab and check “Enable executing file as a program“.

 

Making and Restoring an Image

Now that you have your server up and running you need to learn how to use clonezilla, I have written a tutorial for this.

49 comments:

  1. Cory, 22. September 2011, 11:17

    It seems I have done enough experimentation to solve this one myself. So let it go on record that this setup appears to be the best configuration for Clonezilla on Ubuntu:

    1. Ubuntu 10.4

    2. The latest stable DRBL

    Ok, basically that’s it. My server is setup on a Dell Optiplex GX620, 80G HDD, 2G ram, Pentium 4. And I used this guide for setting it all up.

    I chose to use option “1 -> i586 CPU architecture” when it asked. That was the kicker before with my issues.

    I have successfully deployed images to (all dells) gx620s with pentium 4s, optiplex 755s with core 2 duos and optiplex 390s with intel i3 processors. So I have pretty much spanned the line of current intel processors.

     
  2. magnezyle, 9. September 2011, 7:31

    hi, i have tried using all the command on top in my ubuntu 10.04 server dual core. after i cloned my client workstations it doesn’t boot at all. i can see my loading screen of xp and it will just reboot and again. i wonder if it has something to do with the i686 cuz there isn’t any option for an i686 architecture.

    help please anyone?

     
  3. mansoor, 9. September 2011, 4:46

    Hai all of you,

    I had the windows dhcp server and debian clonzilla server in my office!!!! Kindly provide me the ipconfiguration for my clonezilla setup in /etc/network/interfaces

    my windows dhcp server range is: 192.168.177.230 to 192.168.177.254
    my clonezilla server ip is : 192.168.177.214 (static ip with internet)

     
  4. Cory, 22. August 2011, 13:07

    I did the first step to remove the network manager in ubuntu 11.4 when setting up this computer last week and ever since I’ve had on and off troubles accessing the internet. When I go to

    sudo gedit /etc/network/interfaces

    I have it setup just like you do, except my DNS IP is set to the server in our environment. I had it just like yours at first and it worked, then it stopped working so I set the DNS to what it is at my work and it worked. now it doesn’t. my connections and switch are fine and working with everything else.

    The virtual interface works because I just reimaged 4 computers.

    I cant reinstall the network manager because I have no internet to download the package.

    I am using Ubuntu 11.04 Unity desktop.

    Please help.

     
  5. Cory, 20. August 2011, 22:50

    I actually hear from the maker of drbl, steve something, and he told me to do that as well. got it working just yeserday. thanks again.

     
  6. Pablo Garcia, 20. August 2011, 12:04

    Hi Cory
    IF i586 does not work for you, choose option #2, “Use the same architecture as this DRBL server“. That should work fine.

     
  7. Cory, 16. August 2011, 19:07

    Great article. First time with the Ubuntu flavor and loving it already.
    I have a fresh install of 11.4 and latest DRBL and clonezilla. I followed this procedure to the max.

    I issue the command to setup DRBL and at the end I get this message:

    NO kernel is available!!! Something went wrong!
    You can run this program /opt/drbl/sbin/drblsrv again, and try to choose different CPU architecture (such as i386, i686, no SMP…)!
    Program terminated!!!

    Like the procedure, I chose #1 – i586.

    Ubuntu is installed on an old windows xp machine, a dell gx620, 80G HDD, 1G ram, Pentium 4 HT. One Ethernet port.

    PLEASE HELP. I NEED THIS LIKE I NEED AIR.

     
  8. Keyman.gu, 11. August 2011, 21:18

    Pablo,
    Thank you for your reply.
    Is there the Steven Shiau’s E-mail? if you have it , please sent a E-mail to me .
    Thank you once more.

    Keyman.gu

     
  9. Pablo Garcia, 11. August 2011, 9:19
  10. Keyman.gu, 11. August 2011, 1:18

    Pablo,
    Good morning! Thank you for your letter. If you have the link to the Clonezilla forum, Please sent to me . now I have a lot of trouble in the source codes of the DRBL. I want to solve them. I think that I am helpful to me for your help.
    Thank you once again!

    Keyman.gu

     
  11. Pablo Garcia, 9. August 2011, 23:03

    Hi CJ
    I believe there is a way to have Clonezilla change the names of the computers automatically, for this if I remember correctly you have to choose “Expert Mode”, instead of “beginner Mode”.

    http://geekyprojects.com/cloning/how-to-use-clonezilla-tutorial/

    Regarding licensing, read the following thread from the Microsoft Forum:

    http://answers.microsoft.com/en-us/windows/forum/windows_7-windows_install/cloning-windows-7-drive-to-a-newer-hard-drive-lose/0e3a6d99-9ec3-43bd-bead-c8b45d3b3aab

     
  12. Pablo Garcia, 9. August 2011, 22:55

    Hi Keyman, for those specific questions you are better off asking the Steven Shiau the software’s creator, just post your question in the Clonezilla forum and he will answer you. I am not familiar with Clonezilla’s source code.

     
  13. Keyman.gu, 8. August 2011, 21:34

    Pablo,
    Good morning! You don’t understand my meaning of the E-mail, but so now once I will tell you about my problems. Firstly, I want to modify the DRBL to be adapt to our company’s need. I have downloaded the source codes of the DRBL, but I don’t know where to start to develop. Secondly, are the partclone, partimage, udpcast and clonezlilla included in DRBL? When I have installed the DRBL , whether I have installed the partclone, partimage, udpcast and clonezilla or not?
    If you know ,please help me kill them!

    Keyman.gu

     
  14. CJ, 8. August 2011, 20:22

    What do you do about activations say with office windows 7 and such. Do you go and change the names of the machines after not activate them until after they are cloned. Or do you have a better system for getting this part done quickly. thanks for you how too guide it is great.

     
  15. Pablo Garcia, 8. August 2011, 9:09

    Hi Keyman:
    I am not sure I understand your question. But I think that, for details on how FreeNAs works you are better of asking on the FreeNAs forum. Its creator Steven Shiau, quickly answers all question people might have.

     
  16. Keyman.gu, 8. August 2011, 3:36

    Pablo,
    Good afternoon! I have saw your document about Clonezilla CE, but I have some problems to ask you. First, if I have installed the DRBL, at the same time do I have installed the Clonezilla, PartClone and Udpcast?? Second, what is the relationship the DRBL, Clonezilla, Partclone and udpcast? If you know that, please send a E-mail to me .

    Thank you very much.

    Keyman.gu

     
  17. david, 5. August 2011, 9:44

    Hi Pablo,

    thank you for your quick reply.
    i already solved the issue by applying the CPU architecture to the OS (strange).

    i am now facing another problem, when pxe booting from a client i get the DRBL menu.
    only nothing is happening from there… i can see all options i setup with the server, only the options do not work on the client. Only thing that does work from the menu is Memtest… you have a clue about this one?

    thanks in advance!

     
  18. Pablo Garcia, 5. August 2011, 7:51

    Hi
    I am not familiar with that particular error. Port your question in the Clonezilla forum they should be able to help you.

     
  19. david, 5. August 2011, 6:54

    hi there,

    this manual helped me alot since I am just a beginner with linux.
    i hope you can help me out with just one more thing?

    if the client boots from ethernet/PXE, I get the following error and the system hangs.
    “Fixing recursive fault but reboot is needed!”
    this error message keeps appearing.

    the hardware i tried to clone varies from manufacterer… HP / Fujistsu Siemens…

    thanks in advance

     
  20. Keyman.gu, 3. August 2011, 4:40

    ALL,
    Thank you for your guide. But now I want to modify the Clonezilla CE(DRBL) , it is adapted to our compony’s need. I have some quetions, I can not work out. Firstly, you know what the development language of Clonezilla CE(DRBL) ? If have C language? Secondly, is the partclone, partimage, memtest86+ and clonezilla CE included in DRBL?
    All the above if you know the solutions , please let me know. I will be very grateful for you .

     
  21. yan, 28. July 2011, 10:43

    Hi,
    Thanks for the guide, worked a dream except I’m coming into an issue with a HP 8200 desktop. The error message states “Driver of this Network Interface Card is not found”

    However this only happens after the PC has booted from PXE? I’ve read some forums that state the hardware is not being detected when the kernal loads and to runs this command;

    /opt/drbl/sbin/mknic-nbi –modules “tg3″

    Any suggestions that you could help with? I’m wondering whether to try and change the kernal on the server?

    Thanks

     
  22. Keyman.gu, 27. July 2011, 22:19

    Pablo,
    Hi! I have been studying the Clonezill(DRBL) since it was 7.july. And I can use the Clonezilla CE, but so now I want to modify the software for my company.
    I hope that you can help me. I have downloaded the source codes of Clonezilla(DRBL) from the DRBL website, I want to see the source codes. Now I want to ask some problems you for the source codes of Clonezilla(DRBL).First of all what do you know about the development environment of the Clonezilla(DRBL)? Secondly what do you know that which the programming language for the it in the NCHC? If you know ,please let me know. I wll appreciate you ! Thank you for your kind!

    Keyman.gu

     
  23. Zolla, 26. July 2011, 11:02

    thanks for the reply,
    i tried 2 diff models but still doesn’t work! it work fine if i use clonezilla live cd …. and that’s just unicast :(

     
  24. Pablo Garcia, 26. July 2011, 10:08

    Zolla
    Of course it does. It might now work for your particular computer model (it is a little picky)

     
  25. Zolla, 26. July 2011, 9:52

    multicast doesn’t work !!

     
  26. Veronica, 9. June 2011, 17:19

    I’m running Unbutu Server 11.04 and I’m facing exactly the same problem that Adam is reporting. Is there any way to make clonezilla running with this version of Ubutu?


    I’m having an issue getting Clonezilla to start on the client. It loads the boot menu, but when I choose Clonezilla nothing happens.

    I’m wondering if it has to do with the kernel I chose. I had to choose “Use the same as this DRBL server”. If I choose i386 or i586, it ends up erroring out saying “NO kernel is available! Something went wrong!” Any ideas? Thanks,

    Veronica
    San Diego, CA.”

     
  27. Adam, 3. June 2011, 15:51

    I just tried it on 10.04 (instead of 11.04) and it worked. I guess the current stable release of DRBL doesn’t work right on 11.04, see here.

     
  28. Adam, 3. June 2011, 14:05

    Hi. Thanks for the guide. I’m using Kubuntu 11.04, i386. I’m having an issue getting Clonezilla to start on the client. It loads the boot menu, but when I choose Clonezilla nothing happens.

    I’m wondering if it has to do with the kernel I chose. I had to choose “Use the same as this DRBL server”. If I choose i386 or i586, it ends up erroring out saying “NO kernel is available! Something went wrong!” Any ideas? Thanks.

     
  29. Ian, 11. May 2011, 22:39

    Hi Pablo, thanks for the quick reply, but I just want to be make sure that we are talking about the same thing. I am very familiar with the standard Clonezilla Live, which I run off of a USB drive, and use it to clone individual machines. This is definitely used in unicast, but… There is a DRBL Live version that has the Clonezilla server in it. The DRBL Live ISO can be found here: under: “DRBL Live ISO file (for CD/DVD) or zip file (for USB flash drive or USB hard drive).” As I mentioned I boot it from a CD and it works better than on a USB flash drive.

    Using this, I was able to initiate multicast once, but it didn’t quite work. Probably due to my own hardware issues (Boradcom network adapter on the server, etc.), but I have since resolved those I think. I obviously want to make it multicast and consistent as unicast is way too slow for multiple machines. Have you played with DRBL Live? Thoughts? Thanks again!

     
  30. Pablo Garcia, 11. May 2011, 21:28

    Hi Ian:
    You CANNOT do multicast with the live version. Only with the SE version.

     
  31. Ian, 11. May 2011, 19:47

    I am using Clonezilla SE Live to image a large number of machines we just purchased. I boot it from a CD and it runs reasonably well, but it seems to only image in unicast mode and does not give me the option of multicast mode. It did once but I unfortunately don’t remember if I did anything different. Is the setup procedure similar to using the version of Clonezilla SE that you install on a Linux box, or is there anything different I have to do? In the live version, there are icons on the desktop to start/stop DRBL and Clonezilla. I cannot find a tutorial on how to use the live edition so I am unsure if I am doing it correctly. Can you give me an idea of where I might find one or tell me what I need to do to get it working? Thanks.

     
  32. Gus, 25. March 2011, 20:35

    Thank you Pablo for reply.

    If I create the MAC table, then still assigning a static ip to clients?
    Can I link each MAC address to a fix image name?

    Thank you.

     
  33. Pablo Garcia, 24. March 2011, 8:47

    Hi Gus:
    No that is not possible, you cannot have a network adapter, even if it is a virtual one, using the same IP as another in the same network, you will cause a conflict.

     
  34. Gus, 24. March 2011, 1:09

    Sorry my mistake:
    iface eth0 inet static
    address 192.168.17.200
    netmask 255.255.255.0
    gateway 192.168.17.1
    #Virtual Interface for Conezilla, auto eth0:0
    iface eth0:0 inet static
    address 192.168.17.200
    netmask 255.255.255.0

     
  35. Gus, 24. March 2011, 1:02

    Hello, thank you for the guide.
    I am runing clonezilla se on Ubuntu10-10, it works the problem is the ip static for clients like your sample 192.168.99.XX, I am looking for the best solution for cloning automatic without client assistance, I need to leave by DHCP automatic or static but with ip 192.168.17.XX(my lan), other way clients cant map servers like //serverName, so the problem for me is DNS doesnt works.
    Can be possible use Virtual Interface for Conezilla equal as Network Interface?:
    #Network Interface, this should match your network
    auto eth0
    iface eth0 inet static
    address 192.168.117.200
    netmask 255.255.255.0
    gateway 192.168.17.1
    #Virtual Interface for Conezilla, auto eth0:0
    iface eth0:0 inet static
    address 192.168.17.200
    netmask 255.255.255.0
    If I create the MAC table, then still assigning a static ip to clients?
    May you help me please for find the best solution?
    Thank you.

     
  36. Pablo Garcia, 21. March 2011, 20:41

    Open a terminal and enter the following command:

    sudo aptitude clean

    And then:

    sudo aptitude update

    Then try installing the packages again. See if that works for you.

     
  37. Rauldinho, 21. March 2011, 16:42

    Hi, I’m trying to install the server but I’m having problems. This is the output:

    user@ubuntu:~$ sudo apt-get install drbl
    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    The following NEW packages will be installed:
    drbl
    0 upgraded, 1 newly installed, 0 to remove and 85 not upgraded.
    Need to get 2,557kB of archives.
    After this operation, 7,954kB of additional disk space will be used.
    Get:1 http://drbl.sourceforge.net/drbl-core/ drbl/stable drbl 1.9.8-30 [2,557kB]
    Fetched 2,257kB in 0s (8,806kB/s)
    Failed to fetch http://drbl.sourceforge.net/drbl-core/pool/drbl/stable/drbl/drbl_1.9.8-30_all.deb Size mismatch
    E: Unable to fetch some archives, maybe run apt-get update or try with –fix-missing?

    I used the URL drbl_1.9.8-30_all.deb and found out that it doesn’t exist in the sourceforge server, the one that they got is drbl_1.9.8-28_all.deb. So I download it and did a dpkg -i and that way I could move on. I answered all the questions and when drbl started downloading all it’s dependencies I got another error:

    ……
    Fetched 27.4MB in 28min 8s (16.2kB/s)
    Failed to fetch http://drbl.sourceforge.net/drbl-core/pool/drbl/stable/partclone/partclone_0.2.17-drbl1_i386.deb Hash Sum mismatch
    E: Unable to fetch some archives, maybe run apt-get update or try with –fix-missing?
    Warning! Some necessary packages are not installed! If you continue, maybe something will go wrong! It is better to exit now and check your /etc/apt/sources.list and internet link!
    Press Ctrl-C to stop the program! Or Press “Enter” to continue… ^C
    user@ubuntu:/tmp$

    Can you help me with this? What do you think is wrong? Thanks for any answer I may get!

     
  38. Pablo Garcia, 2. March 2011, 10:18

    For those of you that have been sending me emails asking how to use Clonezilla once it is installed, I have written a tutorial on the subject:

    http://geekyprojects.com/cloning/how-to-use-clonezilla-tutorial/

    I used Clonezilla Live for the tutorial but the instructions are pretty much the same for both Live and Server. I have also explained the few parts that are different.

    Also if you are wondering what are the differences between the Live and Server versions and which one is right for you I have written an article on that as well.

    http://geekyprojects.com/cloning/clonezilla-live-vs-clonezilla-server-drbl/

     
  39. Pablo Garcia, 5. January 2011, 8:21

    A lot of times there are ways to get around hardware incompatibility. There are computer that won’t clone but you can make them work by changing clonezilla’s configuration. If it works with the Live CD version you have pretty good change of making it work with the server version as well. Go to the Clonezilla forum they usually answer pretty fast.

     
  40. Candra Rusly, 5. January 2011, 5:29

    well, that’s the thing i’m most worried about right now, hardware specific bugs, oh dear, i guess what happened was really weird eh ?
    i’m using 14 of these hardware in my internet cafe, it worked well with clonezilla, so i thought that i’d give dbrl a try too. it’s quad core and ddr3 with gigabit NIC, quite nice hardwares, but well, i’ll try to make it up with some other things, maybe i’ll try upgrading the BIOS or something like that.
    trying another hardware is a good idea, thx for your time.

     
  41. Pablo Garcia, 5. January 2011, 0:08

    Candra: Not all computers (clients) are compatible with Clonezilla. At work, most computers are ok, however there are a few models that just can’t be imaged, no matter what you do to them. Try other models, to rule out a server problem.

     
  42. Candra Rusly, 4. January 2011, 22:12

    Hi pablo, thx for the reply
    1. the files were created when i tried to save partition from the client to the server, i choose it in client, and i also set it to automatically create the files in /home/partimag, after it creates those files, nothing happens anymore, just those 120 second warnings.

    2. i already formatted the OS, so i don’t think it matters anymore, but, yes, i did it like that, maybe i changed someting else and forgot, thx for noting it.
    3.it’s in 10.04 as you wrote above. i installed it from usb live, replaced the root, but the /home was left as before.
    i’ll try to do the “sudo /opt/drbl/sbin/drblpush -i” again, though i’m quite sure i did not made any mistakes there.

     
  43. Pablo Garcia, 4. January 2011, 12:37

    Candra:

    1) First of all, when you say it creates only 4 files. When? when you are trying to clone?
    2) When you do the sudo nano /etc/udev/rules.d/70-persistent-net.rules go to the end of each interface line and change NAME=”eth0″ by NAME=”eth1″ and vide versa.
    3) Are you doing this in 10.04 or 10.10?

    I corrected the forward slashes, about the sudo in front of the command, that depend if you are logged in to the server as root or as a normal user. But I added it just in case, it’s better to have it.

     
  44. Candra Rusly, 4. January 2011, 8:53

    hi, just managed to try the whole thing again, and yet again it only creates 4 files totalling 860 bytes, sda-chs.sf , sda-hidden-data-ater-mbr , sda-pt.parted , sda-pt.sf , that’s it.

    then the cilent went like this :
    [ 240.536027] INFO : task dd:2986 blocked for more than 120 seconds.
    [ 240.538860] “echo 0 /proc/sys/kernel/hung_task_timeout_secs” disables this message.

    something similar came up after every 120 seconds i assume.

    #Loopback
    auto lo
    iface lo inet loopback

    #my network Interface
    auto eth1
    iface eth1 inet static
    address 192.168.1.108
    netmask 255.255.255.0
    gateway 192.168.1.12

    #eventually i used another NIC on PCI, oddly it was recognized as eth0
    auto eth0
    iface eth0 inet static
    address 192.168.99.108
    netmask 255.255.255.0
    gateway 0.0.0.0

    i wonder where did i went wrong ?

     
  45. Candra Rusly, 4. January 2011, 7:19

    Hi, thx for your reply, i just had time to try it again these few days, and when i tried “sudo nano /etc/udev/rules.d/70-persistent-net.rules” things went wrong, honestly i don’t know why, had been a self learned linux user for a year wasn’t good enough i guess, the desktop wont even recognize any NIC, it delayed me for sometime, had to format the desktop, i think it’s better to do so since i moved the hard drive from another pc and i’d rather have a fresh start at these.

    i don’t like to point out people’s mistakes, but i recognized some typo up there :
    1. sudo gedit /etc/network/interfaces => you’re using backslash up there
    2. sudo apt-key add GPG-KEY-DRBL => i don’t really understand these keys stuff, but i needed sudo to do it.

    gonna try it again, i’ll post again if i’m successfull, thx

     
  46. Pablo Garcia, 1. January 2011, 17:16

    Hi Loopduplicate.

    I have corrected the mistake, the answer is Choose “Y”. However if you choose “N” your Clonezilla server will still work but you won’t be able to connect to the internet. Thanks for pointing that out.

     
  47. loopduplicate, 31. December 2010, 16:20

    In the step below, you say to choose N but the example shows Y. Which one is it? I think you mean to choose Y for yes, right?

    Choose “N” in the next question, otherwise you will not be able to see what is going on. (error messages, etc).

    Do you want to use DRBL server as a NAT server? If not, your DRBL client will not be able the internet.
    [y/N] Y

     
  48. Pablo Garcia, 26. December 2010, 23:58

    I have seen this happen, try switching the interfaces, issue the following command:

    sudo nano /etc/udev/rules.d/70-persistent-net.rules

    and switch the interface names for eth0 and eth1 and see if that works for you, if it does not then run the configuration again.

     
  49. candra, 25. December 2010, 23:28

    hello, i tried your guide on my ubuntu 10.04, i moved my hard disk to another pc that i wanted to use for cloning server, it’s identical though, the only difference was it ended up with eth2 as the network interface.

    i tried my hardware to boot via network, it worked at some point, the dhcp was detected, the client got an ip (192.168.1.201) from my server(192.168.1.208), then this error came up : pxe-e11 arp timeout
    tftp cannot open connection, i wonder what went wrong ?

     

Write a comment:


You will receive an email when your comment is answered


7 × = twenty eight

.