Monday, January 20, 2014

Free Open Source Ghost (FOG)

I know that I haven't been religiously updating this blog or even checking it that much, but I am in a caffeine-fueled good mood right now, courtesy of my poison of choice: Mountain Dew. I want to talk about one of the best tools that I have found when it comes to managing massive amount of computers: FOG. It stands for Free Open Source Ghost, taking a poke at Symantec’s classic Ghost software. What’s so great about a free program? Absolutely everything. Let’s dive right in.

FOG, originally released on SourceForge.net on 8-29-2007,is a lot better than you would think (your thoughts probably courtesy of “You get what you pay for”) considering what it has available in it. A basic summary of what it can do: disk cloning, software deployment, memory testing, disk wiping, disk testing, antivirus and basic inventory, all wrapped up with a nice web GUI. Now that I’ve got your attention, I would like to go a little further in-depth with my favorite function.


Disk cloning. This is my favorite feature of FOG by far. Basically, you create one master image of a disk drive and you can deploy it endlessly to an unlimited number of machines, as long as they are of the exact same hardware configuration. If you’re not sure what you’re doing, don’t even attempt to deploy image A to computer type B, or however you want to phrase it. Windows doesn’t like that too much. So this process is done with a tool called PXE (pronounced “Pixie”) which allows a computer on a network to boot from a very slimmed-down operating (usually WinPE or PXElinux) and be configured from an image that sits on a server, or a fresh install of an operating system. I use PXElinux because it comes with FOG and requires no additional configuration. As I write this blog post, I am installing Windows 7 to show how FOG works. Keep this in mind, however: I am using a trial ISO of Windows, so I’m not installing it over the network; rather, I am using a “virtual CD” if you will:
Installing Windows 7 Enterprise on a VirtualBox Virtual Machine.
Now that it has finished installing and I have a fresh, working copy of Windows 7 to play around with, let's upload an image of it to FOG:

FOG login page.


Windows 7 VirtualBox Virtual Machine Booting from PXE.

FOG saving the Windows 7 image to the server.
One thing that I've noticed in the professional IT world over the past few years is that most mass-deployment tools that cost thousands and thousands of dollars, yet they still lack one feature that I love a lot: the web-based GUI! These programs require you to install a console application to whichever machine you want to use to control the deployment on machines, and it's usually not a small install (a few hundred MB, in my experience). A web-based GUI is a heck of a lot easier: just point your (already-installed) browser to the web server hosting your FOG installation and you're good to go. Granted, this method isn't the most secure, but if somebody can manage to crack a password stored on a remote computer, chances they are good enough to crack a Windows-based administrator password protecting your console software, too. This poses a question to consider: why make it harder on yourself if hacking is still a possibility? More importantly, shouldn't YOU as an IT professional know to use really strong passwords? :)

Ultimately, FOG is without a doubt the best software to use for cloning machines, if for nothing else the price alone.

To be fair, there is one major flaw with FOG: it's darn-near impossible to backup your configuration. Simple fix, though: virtualization. I use VirtualBox for hosting my virtual machines (if you couldn't already tell, based on the screenshots and me saying it so much). This makes backing up your FOG Installation very simple. Copy the VirtualBox files to another server and an external hard drive. Simply pull out your backup if anything goes wrong. After all, that's what backups are for, right? ;)

Enjoy and have a great day!

P.S. Need help with FOG or need more information? Leave a comment and let me know! I'd be happy to see what I can do to help.

2 comments:

  1. Thanks for the tutorial but please if you can post step by setp configuring fog and installing it on linux centos 6.5 thanks a lot

    ReplyDelete
  2. I have not tested FOG on CentOS. I know it works on Ubuntu 10.04, which is a little outdated but is still working well and supported.

    I did some pking around on their Wiki page at http://www.fogproject.org/wiki/index.php/Installation_on_CentOS_6.4 and they warn that while 6.5 has been tested, you should be careful. I would try it with a few virtual machines (i.e., install CentOS on one machine and a Windows 7 OS on a second virtual machine and try that to prevent damage to hardware).

    Please report back with your results; I am really interested in seeing how it works for you.

    ReplyDelete