Go to main content

Creating and Using Oracle® Solaris Kernel Zones

Exit Print View

Updated: August 2021

Working in the Kernel Zone Environment

Working in a kernel zone environment is very similar to working in a global zone. The following sections describe the major differences between the kernel zone administrative environment and working with a global zone.

Displaying Kernel Zone Process Information

Kernel zone processes are not directly visible to the global zone or the kernel zone host system. You must use the zlogin command followed by a process management command to view any process information about a kernel zone, as follows:

global$ pfbash zlogin -z kernel-zone process-management-command

For example, the following command displays process information about the syslogd daemon on the kernel zone kzone1 from the kernel zone host system global:

global$ zlogin kzone1 ps -ef |grep syslogd
 root  1520     1   0 20:23:08 ?           0:00 /usr/sbin/syslogd

Duplicate Process IDs in a Kernel Zone and Its Global Zone

The global zone and each kernel zone manage their own process ID space. The same numeric process ID might identify different system processes in the global zone and in one or more kernel zones.

For example, on the same system you can have the numeric process 5678 running syslogd on the global zone and running sendmail on a kernel zone. To kill process 5678 with the ps command in kzone1, type the zlogin command followed by the kill command.

global$ pfbash zlogin kzone1 kill 5678

Kernel Zone Zonepath

A kernel zone's zonepath, by design, cannot be set. It contains no persistent or otherwise serviceable data.

Resource Management in Kernel Zones

Resource controls such as max-processes are not available when configuring a kernel zone. Because a kernel zone has an independent kernel from the global zone, a process running inside a kernel zone cannot take up a process table slot in the global zone.