Version 3.1-en
Solaris 10 Container Guide - 3.1 5. Cookbooks
5.3.7. Duplicating zones with zoneadm clone
[ug] Zone installation can be accelerated with z o ne ad m . .. c l on e . In this example, a zone
named test is already configured and installed.
global# zoneadm list -vc
ID NAME
0 global
- test
This zone serves no as the basis for another zone installation. The configuration of the zone test is
as follows:
global# zonecfg -z test info
zonename: test
zonepath: /container/test
brand: native
autoboot: false
bootargs:
pool:
limitpriv:
scheduling-class:
ip-type: shared
inherit-pkg-dir:
dir: /lib
inherit-pkg-dir:
dir: /platform
inherit-pkg-dir:
dir: /sbin
inherit-pkg-dir:
dir: /usr
inherit-pkg-dir:
dir: /opt
To copy the configuration, it is selected with z on e cf g .. . e xp o rt and the new zone is created
from it directly. Only the zonepath still needs to be adjusted; this is done with the single-line variant
of zonecfg .
global# zonecfg -z test export
test1: No such zone configured
Use 'create' to begin configuring a new zone.
global# zonecfg -z test1 set zonepath=/container/test1
STATUS
PATH
running
/
installed
/container/test
|
zonecfg -z test1
Effective: 30/11/2009
BRAND
IP
native
shared
native
shared
99
Need help?
Do you have a question about the SOLARIS 10 and is the answer not in the manual?
Questions and answers