This procedure shows how you can archive a system with zones on shared storage and deploy the archive to a kernel zone.
Before You Begin
You must be an administrator with the correct rights profiles to perform this task. See Using Rights Profiles with Unified Archives.
The following example shows that the system has a global zone and zone1 on shared storage.
$ zoneadm list -icv ID NAME STATUS PATH BRAND IP 0 global running / solaris shared - zone1 installed /system/zones/zone1 solaris excl $ zonecfg -z zone1 info zonename: zone1 brand: solaris anet: linkname: net0 configure-allowed-address: true rootzpool: storage: iscsi://hostname/luname.naa.600144f0dd9e090000005758ac0e0003
For example:
$ archiveadm create -r -Z zone1 global_recovery.uar
For example:
$ archiveadm create -r -z zone1 zone1_recovery.uar
$ zonecfg -z kz1 create -t SYSsolaris-kz $ zoneadm -z kz1 install -a global_recovery.uar $ zoneadm -z kz1 boot
Modify as well the storage devices for this zone. Then install the zone.
$ zlogin -C kz1 kz1$ zonecfg -z newzone1 zonecfg:newzone1 zonecfg:newzone1> create -a zone1_recovery.uar zonecfg:newzone1> select rootzpool zonecfg:newzone1:rootzpool> remove storage \ iscsi://previous-hostname/luname.naa.600144f0dd9e090000005758ac0e0003 zonecfg:newzone1:rootzpool> add storage \ iscsi://new-hostname/luname.naa.600144F035FF8500000050C884E50001 zonecfg:newzone1:rootzpool> end zonecfg:newzone1> commit zonecfg:newzone1> exit
kz1$ zoneadm -z newzone1 install -a zone1_recovery.uar kz1$ zlogin -C newzone1