If you created an Oracle Solaris 10 system archive from an existing system and use the –p (preserve sysidcfg) option when you install the zone, then the zone will have the same identity as the system used to create the image.
The –c option can be used to include a sysidcfg file to use in configuring the zone after the installation completes. To install a solaris10 zone, use a sysidcfg file in the command line. Note that a full path to the file must be supplied.
$ zoneadm -z s10-zone install -a /net/system_name/s10-system.flar -u -c /path_to/sysidcfg
The following sample sysidcfg file uses the net0 network name and timezone to configure an exclusive-IP zone with a static-IP configuration:
system_locale=C
terminal=xterm
network_interface=net0 {
hostname=test7
ip_address=192.0.2.2
netmask=255.255.255.0
default_route=NONE
protocol_ipv6=no
}
name_service=NONE
security_policy=NONE
timezone=US/Pacific
timeserver=localhost
nfs4_domain=dynamic
root_password=FSPXl81aZ7Vyo
auto_reg=disable
The following sample sysidcfg file is used to configure a shared-IP zone:
system_locale=C
terminal=dtterm
network_interface=primary {
hostname=my-zone
}
security_policy=NONE
name_service=NIS {
domain_name=special.example.com
name_server=bird(192.0.2.3)
}
nfs4_domain=example.com
timezone=US/Central
root_password=m4qtoWN
The following sample sysidcfg file is used to configure an exclusive-IP zone with a static IP configuration:
system_locale=C
terminal=dtterm
network_interface=primary {
hostname=my-zone
default_route=203.0.113.1
ip_address=203.0.113.13
netmask=255.255.255.0
}
nfs4_domain=example.com
timezone=US/Central
root_password=m4qtoWN
The following sample sysidcfg file is used to configure an exclusive-IP zone with the DHCP and IPv6 option:
system_locale=C
terminal=dtterm
network_interface=primary {
dhcp protocol_ipv6=yes
}
security_policy=NONE
name_service=DNS {
domain_name=example.net
name_server=192.0.2.11,192.0.2.33
}
nfs4_domain=example.com
timezone=US/Central
root_password=m4qtoWN