You must configure the new zone before you can install it. The parameter passed to the zoneadm create subcommand is the name of the zone to clone. This source zone must be halted.
You must be the global administrator or a user with appropriate authorizations in the global zone to perform this procedure.
For more information, see Using Your Assigned Administrative Rights in Securing Users and Processes in Oracle Solaris 11.2 .
global# zoneadm -z my-zone halt
global# zonecfg -z my-zone export -f /zones/master
global# zonecfg -z zone1 -f /zones/master
global# zoneadm -z zone1 clone my-zone
The system displays:
Cloning zonepath /zones/my-zone...
To continue the operation and overwrite any preexisting data, use the appropriate –x option to zoneadm clone. The source zone must be uninstalled before the force subcommand can be used.
-x force-zpool-import -x force-zpool-create=zpoolname -x force-zpool-create=zpoolname1,zpoolname2,zpoolname3 -x force-zpool-create-all
This option is similar to the zpool create –f command.
The –x force-zpool-create=zpoolname option can be used multiple times.
Note that the source zone must be halted before the –x force option can be used.
ID NAME STATUS PATH BRAND IP 0 global running / solaris shared - my-zone installed /zones/my-zone solaris excl - zone1 installed /zones/zone1 solaris excl
To include a configuration profile:
# zoneadm -z zone1 clone -c /path/config.xml my-zone
Note that you must provide an absolute path to the configuration file.