[opensuse] Re: speaking of cloning....



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: jschrod@xxxxxxx
Roedermark, Germany

--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx



Relevant Pages

  • RE: can someone help me with error code: 0x80070715? I cant update wi
    ... The specified resource type cannot be found in the image file. ... Try installing the latest Version of the Windows Update Agent by ... IF this is Vista you and you need to run the commands from a Command ... Prompt, locate 'cmd' from Start Search and then *right* click it, choose ...
    (microsoft.public.windowsupdate)
  • Re: double,unit8
    ... This reads the image file "image.bmp" into an Matlab array and converts the type of the array to DOUBLE. ... Both commands do absolutely different things. ... Kind regards, Jan ...
    (comp.soft-sys.matlab)
  • Re: Help! Drive Image 2002 question
    ... >>> have restored my entire primary partition ... >>> to a Drive image file on a different partition. ... You cant restore TO an image file. ... > the logical drives, I used the tools found in Control Panel/ ...
    (comp.sys.ibm.pc.hardware.storage)
  • Re: OT: Norton GhostPE 2001 problem
    ... I only know raid 1 mirroring and disk imaging apps (Ghost, Acronis ... Drive Image) for "photocopying" drives or partitions. ... Space is needed for the Acronis image file. ... The destination partition must be equal to or greater than the ...
    (sci.electronics.design)
  • Re: [opensuse] speaking of cloning....
    ... master image to a lab? ... Is there a set of commands like "sysprep" for creating a master? ... create the model system ... for each partition to be copied do ...
    (SuSE)