Wednesday 12 May 2010

Clonezilla Good! Fire Bad!

Clonezilla, quite simply, is tha bomb. It's really fast, very flexible, it will do everything including your laundry.

You get basically two styles of cloning systems (or disks in general). Either one at a time with the LiveCD or many at a time with a multicasting server. I've only tried the liveCD method since I was simply doing two hosts. And in my case, I was dealing with the 'doze which is always more of a pain than it should be. So here's what I did to clone a Windows Server 2003 install to two hosts.

  1. Get the Windows host installed and setup with all the desired applications but not joined to the domain

  2. Create an unattended install file for Sysprep (it's a quick wizard)

  3. SAVE THAT SYSPREP FILE (for some reason, sysprep will destroy this as incriminating evidence?)

  4. Sysprep the host - this will strip the Security ID (SID), computer name, and remove it from the domain (if you had it on one) and it shuts down the host

  5. Get the Clonezilla LiveCD and something for external storage

  6. Boot the sysprepped host from the liveCD

  7. Basically defaults all the way, it will ask what the storage media for system images is, what disk or partition to copy (I did it by partition, though you could do disk if you wanted to keep the partition info)

  8. It ripped a 5.4GB base server install into a ~2GB image in about 5 minutes

  9. Reboot, reconfigure PC with a name, join it to the domain, etc

Then on each target host,

  1. Boot from the Clonezilla LiveCD

  2. Attach the external storage

  3. Follow the wizard

  4. It restored the above partition for me in 2 minutes, 17 seconds

  5. Reboot, give the PC a name, put it in the domain, etc

  6. Repeat for each host you are cloning

The crazy thing I was finding was that "proprietary" cloning tools were hard to find. Basically, Symantec has been buying up everyone in the field, killing the products, and then telling everyone to use Ghost which at least since when they acquired Norton and until recently, did not take offline disk copies. Instead, you have to install the application in the OS (which you'll note with Sysprep is impossible since the host is SHUT OFF) and it does a "hot backup". It just doesn't work for cloning at all. WTH?

But apparently, between some more sophisticated usage of sysprep and using a "clonezilla server", you could have your PCs, say in a lab, all doing PXE boot, re-imaging themselves, and picking up their name and domain information simultaneously. Once setup, you could do a lab of, I don't know what size, but whatever the max number of clients is (presumably dozens or hundreds) in less time than it takes to get a Starbucks.

- Arch

Popular Posts