|Skip Navigation Links|
|Exit Print View|
|System Administration Guide: Oracle Solaris 9 Containers Oracle Solaris Legacy Containers|
You must be the global administrator in the global zone to perform these procedures.
You must be the global administrator in the global zone to perform this procedure.
The zonecfg prompt is of the following form:
When you are configuring a specific resource type, such as a file system, that resource type is also included in the prompt:
Note - Resource controls are set to the Solaris 9 defaults. Review these settings to see whether they should be adjusted.
Tip - If you know you will be using CDs or DVDs to install applications in a solaris9 branded zone, use add fs to add read-only access to CD or DVD media in the global zone when you initially configure the branded zone. A CD or DVD can then be used to install a product in the branded zone. See How to Add Access to CD or DVD Media in a Non-Global Zone in System Administration Guide: Oracle Solaris Containers-Resource Management and Oracle Solaris Zones for more information.
This procedure describes configuring a shared-IP zone. To configure an exclusive-IP zone, see Resource Type Properties in System Administration Guide: Oracle Solaris Containers-Resource Management and Oracle Solaris Zones.
The name s9-zone is used in this example procedure.
global# zonecfg -z s9-zone
If this is the first time you have configured this zone, you will see the following system message:
s9-zone: No such zone configured Use 'create' to begin configuring a new zone.
zonecfg:s9-zone> create -t SUNWsolaris9
zonecfg:s9-zone> set zonepath=/export/home/s9-zone
If set to true, the zone is automatically booted when the global zone is booted. Note that for the zones to autoboot, the zones service svc:/system/zones:default must also be enabled. The default value is false.
zonecfg:s9-zone> set autoboot=true
zonecfg:s9-zone> add net
zonecfg:s9-zone:net> set address=10.6.10.233
zonecfg:s9-zone:net> set physical=bge0
This step can be performed more than once to add more than one network interface.
zonecfg:s9-zone> add fs
zonecfg:s9-zone:fs> set type=zfs
zonecfg:s9-zone:fs> set special=share/zone/s9-zone
zonecfg:s9-zone:fs> set dir=/export/shared
This step can be performed more than once to add more than one file system. Note that an lofs mount would be an alternative if the file system must be shared with the global zone.
zonecfg:s9-zone> add attr
zonecfg:s9-zone> add attr
Note that even if you did not explicitly type commit at the prompt, a commit is automatically attempted when you type exit or an EOF occurs.
global# zonecfg -z s9-zone info
global# zonecfg -z s9-zone info attr
Tip - After you have configured the branded zone, it is a good idea to make a copy of the zone's configuration. You can use this backup to recreate the zone in the future. As superuser or Primary Administrator, print the configuration for the zone s9-zone to a file. This example uses a file named s9-zone.config.
global# zonecfg -z s9-zone export > s9-zone.config
For additional components that can be configured using zonecfg, see System Administration Guide: Oracle Solaris Containers-Resource Management and Oracle Solaris Zones. The guide also provides information on using the zonecfg command in either command-line or command-file mode. For more information about adding ZFS file systems, see Adding ZFS File Systems to a Non-Global Zone in Oracle Solaris ZFS Administration Guide