sysprep/imagex equivalent?

Caporegime
Joined
17 Feb 2006
Posts
29,263
Location
Cornwall
How do you image and deploy linux distros?

Being a Windows guy, I sysprep in a VM then capture & deploy. What's out there for Linux to do the same thing?
 
You could just set it up in a VM then use dd to do a raw dump of the partitions then whack the image on a dvd along with a live CD and restore it to the new box with dd. You could automate the live cd with a boot script to restore the dd image on boot.

e.g
dd if=/dev/sdaX of=sysdump.img

and restore with

dd if=sysdump.img of=/dev/sdaX
 
We only tend to use images for rapid deployment under VMWare. For just deploying OS instances then tend to automate using a kickstart file, (either from a usb drive, virtual floppy image via ilo or off a web server).
 
You could just set it up in a VM then use dd to do a raw dump of the partitions then whack the image on a dvd along with a live CD and restore it to the new box with dd. You could automate the live cd with a boot script to restore the dd image on boot.

e.g
dd if=/dev/sdaX of=sysdump.img

and restore with

dd if=sysdump.img of=/dev/sdaX

That's manipulation of the image not the same function that sysprep does. And you appear to be doing it live, which is really bad. And it won't work on ubuntu and other distros which use UUID rather than udev handle in the fstab file. Also asking for an IP address conflict if you use static IP. Also the computer name will either need to be changed later or will be cloned a lot. And if the machines are on the same subnet you could end up cloning the MAC address a load of times thanks to the network scripts, which will make things fail.

To be generic there is http://wiki.systemimager.org/

Also a lot of distros have a documented method to do it, for example Ubuntu have the OEM install mode. Which presents the non-abstract setup steps to the user on the second boot.
 
Back
Top Bottom