Create Distro from running config, possible?

Silver-0-surfer

Well-Known Member
Joined
Jan 5, 2008
Messages
317
Reaction score
7
Location
CPT
Hi

So I have been putting together a server including lots of applications and modifying them to suit my needs.

Now I need to "push" this config (including all apps, config files, EVERYTHING) onto like 50 other boxes. Is it possible to do this, sort of like create a ISO of my current working distro and then burn it to a new server?

Any advice?

Im running CentOS btw
 
Is it possible to save an image of your current config with Clonezilla or whatever - much as one would with a Windows install? I've got no idea whether this would work with a Linux O/S
 
Assuming the partition to be imaged is /dev/sda1 and assuming you have a second partition on a flash (or anything, really) that is large enough to hold it, on /dev/sdb1 mounted at, say /media/external :

Code:
# dd if=/dev/sda1 of=/media/external/image.iso

Then you can image it onto the identical other machines by doing :

Code:
# dd if=/media/external/image.iso of=/dev/sda1

Although this is still a lot of effort for a large number of machines, so a network-based approach might make more sense.
 
thanks guys,

It all be the same HW so maybe I will just build one and then try to copy the image accross to all the hard-drive. now to just remember everything i've done..:)
 
If you are using certs and a lot of specialised non standard configs you are in for quite a bit of work..... what distro are you using?
 
You can try this Mondo Rescue but you are going to spend a lot of time re-issueing certs etc.... It may be better to just set up a repository and create a scripted install (but this will also be time consuming but at least you will have something that can be stored and modified for future use)
 
Just remember that if you "install" the image onto the 50 other machines they will all have the same configs and settings. This is not a bad thing in general but if they are servers with static IPs you will still need to update the IP config on each machine if you are using DHCP with statically assigned IPs to MAC addresses then that should not be a problem.

Also remember the machine names will need to be updated, certs will need to be re-issued and that is just the start of it. I would really recommend a scripted install. Yes it will take some time to get it up and running but it is so worth it for the long run.
 
Ive done this a few times using Remastersys but this was done on Ubuntu, and its a very simple procedure you literally set up your os the way you want and then remastersys it to a burnable/bootable ISO which can then be installed again or run live on any or rather most hardware.
 
Ive done this a few times using Remastersys but this was done on Ubuntu, and its a very simple procedure you literally set up your os the way you want and then remastersys it to a burnable/bootable ISO which can then be installed again or run live on any or rather most hardware.

Ye but Remastersys is for Debian/Ubuntu only. It looks like Revisor might be what I'm looking for https://fedoraproject.org/wiki/Docs/Drafts/Spins/RevisorHowTo#Respin_Fedora_With_Custom_Packages

@Nod

Thanks for all the links, will have to check them out.
 
I would recommend writing a kickstart script for the install, and then a secondary script that uses rsync to connect to the "host" server and copy across all relevant config files.
 
Top
Sign up to the MyBroadband newsletter
X