Open Source Software Technical Articles

Want the Best of the Wazi Blogs Delivered Directly to your Inbox?

Subscribe to Wazi by Email

Your email:

Connect with Us!

Current Articles | RSS Feed RSS Feed

Clonezilla vs. FOG: The clone wars

  
  
  

Computer cloning, also referred to as ghosting or imaging, involves setting up the operating system, drivers, software, and data on one computer, then automatically replicating the same setup on other computers. Clonezilla Server Edition and FOG are the most popular open source cloning systems. While both do similar jobs – clone and restore machines over the network using tools and services such as partimage, tftp, and PXE – they go about it very differently. Which is right for you depends on your network's configuration and composition.

Join a LIVE Chat to learn about OpenLogic support.

The most visible difference between the two solutions is in their user interfaces. Clonezilla has an archaic ncurses-based interface, while FOG provides a web-based interface that you can access from any computer on the network. It also has a special UI that lets you deploy images from mobile devices.

fog UI resized 600

While both FOG and Clonezilla SE can handle multiple images, FOG is better designed to manage multiple images. With FOG you can logically arrange images in groups, such as Accounts Department or Labs or Lounge. FOG also scales better; it features a storage manager that can control a group of NFS servers that all host images. Multiple servers can serve images, taking some of the stress off the main FOG server and speeding up cloning, especially in large networks.

In an enterprise where you have a large number of computers to deploy, the best course is to deploy images across the network, which requires setting up a dedicated cloning server. For Clonezilla SE, this means setting up a Diskless Remote Boot in Linux (DRBL) server by installing it on top of a Debian or CentOS server. If you manage a small network and don't want to earmark a computer as a permanent DRBL server, you can use the DRBL live CD to convert any machine into a server temporarily to broadcast images created by Clonezilla and stored on a local disk to any computer on the network.

To use a cloning solution effectively, it's best if computers on your network have similar hardware components. If your network is made up of computers with different components, you'd need to manage lots of different images.

As for FOG, its installation script creates the components required for an imaging server on top of a standard LAMP server. Unlike Clonezilla's DRBL server, the FOG server is designed to integrate with existing network infrastructure such as DHCP and DNS servers, although it can also set these up on its own. Setting up a FOG cloning server is pretty straightforward, but if you're using an existing DHCP server you must tweak it to forward PXE traffic to the FOG server, and configure the firewall to pass traffic to the server.

If all of the machines you want to image are not on your network, you need a solution that can clone offline machines as well. To do that, you create a master image, copy it on to a removable USB disk, and deploy from that. Clonezilla lets you save an image to a disk and then clone it either over the network or by physically going over to the computer. FOG doesn't – you can clone only from an imaging server.

After an image has been deployed, both Clonezilla SE (with DRBL-Winroll) and FOG (with its client service) can integrate the cloned machines into an Active Directory domain.

Other cloning options
Clonezilla SE and FOG are designed for cloning and deploying multiple computers over a network, but they both require setting up a dedicated server. This is overkill for situations where you just need to quickly image a disk, as you would for example when switching to a bigger hard drive. In such a situation, you might consider using one of these open source disk cloning applications:

  • Mondo Rescue – This tool is available in the repos of major desktop distros and can clone your computer to tapes, hard disks, USB devices, and NFS mounts. Unlike other tools, Mondo creates a specialized recovery live CD/DVD based on its own Mindi distro, customized for the computer being backed up.
  • Redo Backup and Recovery – Perhaps the easiest point-and-click cloning solution with a good-looking graphical interface. It can save cloned images on a disk attached to a computer or a network folder. The live CD also has tools such as testdisk and photorec to recover files. Its only limitation is that it's very sensitive to hardware changes and will restore only to identical hardware.
  • Trinity Rescue Kit – Popularly known as TRK, the live distro is primarily designed for rescuing and repairing Windows installations. It's chock-full of tools that can reset forgotten passwords, recover accidentally deleted files and partitions, and scan for viruses and rootkits. Additionally, you can also use the distro to clone Windows machines over the network.

While that's just about the extent of Clonezilla's capabilities, the FOG service can do a lot more. It can schedule tasks, such as deploying images, from its web interface, and perform several tasks other than imaging, such as installing and managing printers, tracking access to cloned machines, powering up a computer remotely using Wake-On-LAN, and installing applications remotely via a feature called snap-ins.

Get a support quote for your Apache,Tomcat, CentOS, MySQL, or other Enterprise Open Source Software use.

With snap-ins you can directly push the executable installer for a simple application to a Windows computer. For a larger application such as Microsoft Office that requires multiple files for installation, you need to use a tool like SFX Maker instead. FOG snap-ins don't have to be associated with an imaging task, so they can be used for things such as pushing software updates to client computers.

If you don't need to keep track of machines after cloning them, as might be the case, for example, in a repair or service center, Clonezilla gives you an edge over FOG. With Clonezilla you don't need to register a host with the server before it can be cloned. In contrast, FOG, by default, not only requires hosts to be registered before they are imaged, it also needs to register clients before it deploys images to them – though by using the Capone plugin you can override FOG's default behavior and clone a computer without first registering it with the server. Registering hosts has advantages, however, especially on enterprise networks. While registering hosts, FOG records the unique MAC address of their network cards, which reduces the chance of mistakenly deploying an image to the wrong machine.

While FOG is a fine enterprise imaging solution, it also has many of the features you'd want from a network management app. For example, in addition to options for registering and deploying an image, FOG's menu offers options to wipe a disk, restore deleted files, scan a disk for bad blocks, and run a virus scan using ClamAV.

Final word

If you're choosing between Clonezilla and FOG and you have machines that aren't connected to a network, you have no option but to use Clonezilla. You have to take an image with you and deploy it on each machine, but that's still faster than preparing each disk and installing and setting up an operating system on each individual client.

Clonezilla SE makes the most sense for networks with clients that don't require much administration after being imaged, such as those in Internet cafes, libraries, and school labs. If you need to look after machines after they've been cloned, it's best to go with FOG. Its post image options are excellent, and you can deploy machines without leaving your own desk.

The bottom line is that, while Clonezilla works best for offline computers and individuals, FOG has all the features you need to manage and deploy images in an enterprise.




This work is licensed under a Creative Commons Attribution 3.0 Unported License
Creative Commons License.

Comments

Nice comparison! I didn't know FOG existed until I saw your tweet and clicked on this page. I'll be sticking with CloneZilla for now, but if I need more enterprise-level cloning control in future, I'll be sure to check out FOG. Thanks for the article :o)
Posted @ Monday, March 18, 2013 9:30 PM by Anthony
What file systems are supported by FOG? Their website offers very little information. If it uses partimage then it doesn't support ext4 which is bad news for some linux users. Maybe this is only good for cloning Windows based systems?
Posted @ Friday, March 22, 2013 6:41 PM by D
Yeah FOG uses partimage which supports ext2, ext3, and reiserfs. So it's not Windows-only. But if you use ext4 or btrfs, go with Clonezilla.
Posted @ Friday, March 22, 2013 10:13 PM by Mayank Sharma
Oh, and FOG has an extensive wiki -- http://www.fogproject.org/wiki/index.php/Main_Page
Posted @ Friday, March 22, 2013 10:14 PM by Mayank Sharma
Post Comment
Name
 *
Email
 *
Website (optional)
Comment
 *

Allowed tags: <a> link, <b> bold, <i> italics