Per Jessen wrote:
James Tremblay wrote:
How does on build an image for and what tools does one need to clone a
master image to a lab?
Is there a set of commands like "sysprep" for creating a master? Is
there a guide?
Here is what I do:
Create image file:
1. create the model system
2. stop the model system
3. boot e.g. Knoppix or other rescue system
4. for each partition to be copied do
4a. mount <part> /mnt
4b. cd /mnt
4c. tar czvf <imagefile> * .*
Just tar czvf <imagefile> . is sufficient. No need to play games
with wildcards.
Btw, does your tar support ACLs now? It does not on my system.
4d. cd -
4e. umount /mnt
Install image file:
1. boot target system from knoppix or rescue or with NFS-root or or or
2. partition drive
3. create filesystems
4. for each partition do
4a. mount <part> /mnt
4b. cd /mnt
4c. tar xzvf <imagefile>
4d. cd -
4e. umount /mnt
5. run lilo if you intend to boot from harddisk.
6. Remove HAL information from the old system, otherwise you end up
with network interfaces named eth1, eth2, ...
7. Sanitize /etc/sysconfig/network/, where the mac address is part
of the ifcfg-eth* files.
8. Rename the system (several files to edit for that, if you don't
use full DHCP)
9. Generate a new ssh host key; maybe distribute that public key
10. Generate a new ssh key for root
11. Check where the hostname might be: postfix, samba
12. check if hardware monitoring (lm_sensors, smartd) work on the
new system
13. change X configuration if necessary
14. change sound configuration if necessary
And there might be more things that I have forgotten right now;
it's 2am here. ;-)
Joachim
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Joachim Schrod Email: [EMAIL PROTECTED]
Roedermark, Germany
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]