Professional Documents
Culture Documents
Table of contents
1.
2.
3.
4.
5.
6.
Zones can be used on any machine that is running at least the Solaris 10 release. The upper limit for the number of zones on a system is 8192.
The number of zones that can be effectively hosted on a single system is determined by the total resource requirements of the application
software running in all of the zones. There are two types of non-global zone root file system models: sparse and whole root. The sparse root
zone model optimizes the sharing of objects. The whole root zone model provides the maximum configurability.
Zone Features
The following is the characteristics of global and non-global zones.
During an install or uninstall operation, zoneadm sets the state of the target zone to incomplete. Upon successful completion of the operation, the
state is set to the correct state.
Installed :
The zone's configuration is instantiated on the system. The zoneadm command is used to verify that the configuration can be successfully used
on the designated Solaris system. Packages are installed under the zone's root path. In this state, the zone has no associated virtual platform.
Ready:
The virtual platform for the zone is established. The kernel creates the zsched process, network interfaces are set up and made available to the
zone, file systems are mounted, and devices are configured. A unique zone ID is assigned by the system. At this stage, no processes associated
with the zone have been started.
Running :
User processes associated with the zone application environment are running. The zone enters the running state as soon as the first user process
associated with the application environment (init) is created.
Shutting down and down:
These states are transitional states that are visible while the zone is being halted. However, a zone that is unable to shut down for any reason will
stop in one of these states.
Note Parameters changed through zonecfg do not affect a running zone. The zone must be rebooted for the changes to take effect.
How to configure and boot from zone
You must be the administrator in the global zone to perform this procedure.
Set up a zone configuration with the zone name you have chosen.
# zonecfg -z newzone
If this is the first time you have configured this zone, you will see the following system message:
newzone: No such zone configured
Use create to begin configuring a new zone.
Create the new zone configuration. This procedure uses the Sun default settings.
#zonecfg:newzone> create
Set the zone path, /export/home/newzone in this procedure.
zonecfg:new-zone> set zonepath=/export/home/newzone
Set the auto boot value. If set to true, the zone is automatically booted when the global zone is booted.
Note that for the zones to auto boot, the zones service svc:/system/zones: default must also be enabled.
The default value is false.
zonecfg:newzone> set autoboot=true
6. U.S.A. (en_US.ISO8859-15)
7. Go Back to Previous Screen
Please make a choice (0 - 9), or press h or ? for help:
What type of terminal are you using?
1) ANSI Standard CRT
2) DEC VT52
3) DEC VT100
4) Heathkit 19
5) Lear Siegler ADM31
6) PC Console
7) Sun Command Tool
8) Sun Workstation
9) Televideo 910
10) Televideo 925
11) Wyse Model 50
12) X Terminal Emulator (xterms)
13) CDE Terminal Emulator (dtterm)
14) Other
Type the number of your choice and press Return:13
Here after it will take you to a new console to login to new virtual os.
BRAND
native
native
IP
shared
shared
# zoneadm list -v
You will see a display that is similar to the following:
ID NAME STATUS PATH
2 global running
/
BRAND
native
IP
shared