Solaris Containers (formally zones) cheat sheet
There are two types of zones
global
and
non-global
. The global zone is the server itself and is used as thesystem-wide configuration and control, there can only be one global zone per system. A maximum of 8192 non-global zones can exist on a system, all non-global zones are isolated from each other.There are two type types of non-global zones
spare root zone
or
whole root zones
.
whole rootzoneSolaris packages are copied to the zone's private file system. Disk space usage is much greater than using aspare root zonespare root zoneYou can determine how much of the global zone file system you want to be inherited from the global zone.Spare root zones use loopback file systems from global zone.Use the
inherit-pkg-dir
resource to specify which directories to inherit.
Zone States
ConfiguredConfiguration has been completed and storage has been committed. Additional configuration isstill required.IncompleteZone is in this state when it is being installed or uninstalled.InstalledThe zone has a confirmed configuration,
zoneadm
is used to verify the configuration, Solarispackages have been installed, even through it has been installed, it still has no virtual platformassociated with it.Ready (active)Zone's virtual platform is established. The kernel creates the
zsched
process, the networkinterfaces are plumbed and filesystems mounted. The system also assigns a zone ID at this state,but no processes are associated with this zone.Running (active)A zone enters this state when the first user process is created. This is the normal state for anoperational zone.Shutting down + Down(active)Normal state when a zone is being shutdown.
Zone Daemons
zoneadmEach zone will have a zoneadm associated with it and carries out the following actions:allocates the zone ID and starts the zsched processsets system-wide resource controlsprepares the zone's devices if any specified in the zone configurationplumbs the virtual network interfacemounts any loopback or conventional filesystemszschedThe job of the zsched is to keep track of kernel threads running withon the zone.
List zone name
# zonename
List all zones
All the configured zone and there status should be listed.
# zoneadm list -cvID NAME STATUS PATH0 global running /
Add a Comment