Sun Microsystems 10 Computer Hardware User Manual


 
Version 3.1-en Solaris 10 Container Guide - 3.1 5. Cookbooks Effective: 30/11/2009
5.3.7. Duplicating zones with zoneadm clone
[ug] Zone installation can be accelerated with zoneadm ... clone. In this example, a zone
named test is already configured and installed.
global# zoneadm list -vc
ID NAME STATUS PATH BRAND IP
0 global running / native shared
- test installed /container/test native shared
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 zonecfg ... export 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 | zonecfg -z test1
test1: No such zone configured
Use 'create' to begin configuring a new zone.
global# zonecfg -z test1 set zonepath=/container/test1
99