Skip Navigation Links | |
Exit Print View | |
System Administration Guide: Oracle Solaris Zones, Oracle Solaris 10 Containers, and Resource Management Oracle Solaris 11 Express 11/10 |
Part I Oracle Solaris Resource Management
1. Introduction to Resource Management
2. Projects and Tasks (Overview)
3. Administering Projects and Tasks
4. Extended Accounting (Overview)
5. Administering Extended Accounting (Tasks)
6. Resource Controls (Overview)
7. Administering Resource Controls (Tasks)
8. Fair Share Scheduler (Overview)
9. Administering the Fair Share Scheduler (Tasks)
10. Physical Memory Control Using the Resource Capping Daemon (Overview)
11. Administering the Resource Capping Daemon (Tasks)
13. Creating and Administering Resource Pools (Tasks)
14. Resource Management Configuration Example
15. Introduction to Oracle Solaris Zones
16. Non-Global Zone Configuration (Overview)
17. Planning and Configuring Non-Global Zones (Tasks)
18. About Installing, Halting, Uninstalling, and Cloning Non-Global Zones (Overview)
19. Installing, Booting, Halting, Uninstalling, and Cloning Non-Global Zones (Tasks)
20. Non-Global Zone Login (Overview)
21. Logging In to Non-Global Zones (Tasks)
22. Moving and Migrating Non-Global Zones (Tasks)
23. About Packages on an Oracle Solaris 11 Express System With Zones Installed
24. Oracle Solaris Zones Administration (Overview)
25. Administering Oracle Solaris Zones (Tasks)
26. Troubleshooting Miscellaneous Oracle Solaris Zones Problems
Part III Oracle Solaris 10 Zones
27. Introduction to Oracle Solaris 10 Zones
28. Assessing an Oracle Solaris 10 System and Creating an Archive
30. Configuring the solaris10 Branded Zone
Resources Included in the Configuration by Default
Configured Devices in solaris10 Branded Zones
Privileges Defined in solaris10 Branded Zones
solaris10 Branded Zone Configuration Process
31. Installing the solaris10 Branded Zone
32. Booting a Zone and Zone Migration
33. solaris10 Branded Zone Login and Post-Installation Configuration
Create the new zone configuration on the target system by using the zonecfg command.
The zonecfg prompt is of the following form:
zonecfg:zonename>
When you are configuring a specific resource type, such as a file system, that resource type is also included in the prompt:
zonecfg:zonename:fs>
Tip - If you know you will be using CDs or DVDs to install applications in a solaris10 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 for more information.
This procedure describes configuring a shared-IP zone.To configure an exclusive-IP zone, see Resource Type Properties.
You must be the global administrator or a user with the appropriate authorizations in the global zone to perform this procedure.
global# zonecfg -z s10-zone
If this is the first time you have configured this zone, you will see the following system message:
s10-zone: No such zone configured Use 'create' to begin configuring a new zone.
zonecfg:s10-zone> create -t SUNWsolaris10
Optionally, you can also use create and then set the brand:
create set brand=solaris10
zonecfg:s10-zone> set zonepath=/zones/s10-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:s10-zone> set autoboot=true
zonecfg:s10-zone> add net
zonecfg:s10-zone:net> set address=10.6.10.233
zonecfg:s10-zone:net> set physical=bge0
zonecfg:s10-zone:net> end
This step can be performed more than once to add more than one network interface.
zonecfg:s10-zone> add fs
zonecfg:s10-zone:fs> set type=zfs
zonecfg:s10-zone:fs> set special=share/zone/s10-zone
zonecfg:s10-zone:fs> set dir=/export/shared
zonecfg:s10-zone:fs> end
This step can be performed more than once to add more than one file system.
zonecfg:my-zone> add dataset
zonecfg:my-zone> set name=tank/sales
zonecfg:my-zone> end
zonecfg:my-zone> set hostid=80f0c086
zonecfg:s10-zone> verify
zonecfg:s10-zone> commit
zonecfg:s10-zone> exit
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 s10-zone info
global# zonecfg -z s10-zone info hostid
Tip - After you have configured the zone, it is a good idea to make a copy of the zone's configuration. You can use this backup to restore the zone in the future. As superuser or administrator with the correct profile, print the configuration for the zone s10-zone to a file. This example uses a file named s10-zone.config.
global# zonecfg -z s10-zone export > s10-zone.config
For additional components that can be configured using zonecfg, see Chapter 16, Non-Global Zone Configuration (Overview). This 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.