Sunday 29 September 2013

Solaris Zone Cloning

Procedure :-
1.Expert the configuration of the zone you want to clone.
  #zonecfg -z zone1 export  > zone2.cfg
2.Change details of new zone from diff from the existing zone(ipaddress,zonepath,nework interface )
 #vi zone2.cfg
3.Create new zone (empty zone) in the user manul based on this configuration file.
 #  zonecfg -z zone2 -f zone2.cfg
4.Ensure that the zone you intent to clone /copy is not running                                  
 #zoneadm -z zone1 halt
5.Clone the existing Zone
 #zoneadm -z zone2 clone zone1