Version 3.1-en Solaris 10 Container Guide - 3.1 5. Cookbooks Effective: 30/11/2009
5.1.6. Zone installation
[dd] Before using a zone for the first time it must be installed according to your configuration. The
installation time varies depending on whether a sparse-root zone or a whole-root zone is installed.
Furthermore, the amount of the software installed in the global zone, the disk technology used
(SATA, IDE, SCSI or FC) and whether a write cache is present in the disk subsystem used for the
zone root determines the time required to install a zone. This time can vary between 3 and 20
minutes for a sparse-root zone.
global# zoneadm -z zone1 install
Preparing to install zone <zone1>.
Creating list of files to copy from the global zone.
Copying <2373> files to the zone.
Initializing zone product registry.
Determining zone package initialization order.
Preparing to initialize <985> packages on the zone.
Initialized <985> packages on zone.
Zone <zone1> is initialized.
Installation of these packages generated warnings: <SUNWxwfnt
SUNWxwcft SUNWolrte SUNWpprou SUNWjxmft SUNWi1of SUNWjxcft SUNWxwoft>
The file </zones/zone1/root/var/sadm/system/logs/install_log> contains
a log of the zone installation.
global#
After the zone is installed, a zlogin -C <zone> must be performed after the first boot-up of the
zone in order to carry out the required initializations for the services, the root password, name
service, locale, type of terminal at the console, and the time zone. This completes zone installation.
5.1.7. Zone initialization with sysidcfg
[dd] A zone can also be initialized through the file sysidcfg(4). This file can be created
separately and contains the appropriate parameters. An OS instance starting up for the first time uses
the sysidcfg file, when located in /etc.
So for zones, it works in the following way:
1. Configure the zone (zonecfg)
2. Install the zone (zoneadm)
3. Create the sysidcfg file and copy it into the /etc of the zone (this is located in the
global zone under <zonepath>/root/etc )
4. Boot the zone
The following example shows one possible sysidcfg(4) file.
global # cat /zones/zone1/root/etc/sysidcfg
root_password=xyz12321zyx
name_service=none
system_locale=C
terminal=vt100
timezone=CET
timeserver=localhost
network_interface=PRIMARY {hostname=zone1}
security_policy=limited
nfs4_domain=dynamic
71