Resource Type Properties
Some resource types also have properties to configure. The following properties are associated with the resource types shown.
dedicated-cpu | ncpus, importance Specify the number of CPUs and, optionally, the relative importance of the pool. The following example specifies a CPU range for use by the zone my-zone, so importance is also set.
| ||
capped-memory | physical, swap, locked Specify the memory limits for the zone my-zone. Each limit is optional, but at least one must be set.
| ||
fs | dir, special, raw, type, options fs resource properties supply the values that determine how and where to mount file systems. The lines in the following example specify that /dev/dsk/c0t0d0s2 in the global zone is to be mounted as /mnt in a zone being configured. The raw property specifies an optional device on which the fsck command is to be run before an attempt is made to mount the file system. The file system type to use is UFS. The options nodevices and logging are added.
For more information, see The -o nosuid Option, Security Restrictions and File System Behavior, and the fsck(1M) and mount(1M) man pages. Also note that section 1M man pages are available for mount options that are unique to a specific file system. The names of these man pages have the form mount_filesystem. Note - To add a ZFS file system using the fs resource property, see "Adding ZFS File Systems to a Non-Global Zone" in Solaris ZFS Administration Guide. | ||
dataset | name The lines in the following example specify that the dataset sales is to be visible and mounted in the non-global zone and no longer visible in the global zone.
| ||
inherit-pkg-dir | dir The lines in the following example specify that /opt/sfw is to be loopback mounted from the global zone.
| ||
net | address, physical In the following example, IP address 192.168.0.1 is added to a zone. An hme0 card is used for the physical interface.
Note - To determine which physical interface to use, type ifconfig -a on your system. Each line of the output, other than loopback driver lines, begins with the name of a card installed on your system. Lines that contain LOOPBACK in the descriptions do not apply to cards. | ||
device | match In the following example, a /dev/pts device is included in a zone.
Note - See Device Use in Non-Global Zones. | ||
rctl | name, value The following zone-wide resource controls are available.
Note that the preferred way to set rctl values is to use the global property name associated with the specific rctl as shown in How to Configure the Zone. If zone-wide resource control entries in a zone are configured using add rctl, the format is different than resource control entries in the project database. In a zone configuration, the rctl resource type consists of three name/value pairs. The names are priv, limit, and action. Each of the names takes a simple value.
For general information about resource controls and attributes, see Chapter 6, Resource Controls (Overview) and Resource Controls Used in Non-Global Zones. | ||
attr | name, type, value In the following example, a comment about a zone is added.
|
You can use the export subcommand to print a zone configuration to standard output. The configuration is saved in a form that can be used in a command file.