Sunday, 21 October 2018

Solaris 11 : How to verify whether I’m logged into a Kernel Zone? By Devan

Solaris 11 : How to verify whether I’m logged into a Kernel Zone?

What is a Solaris Kernel Zone

The solaris-kz brand uses the branded zones framework to run zones with a separate kernel and OS installation from that used by the global zone. A solaris-kz installation is independent of that of the global zone; it is not a pkg linked image and can be modified regardless of the global zone content. A solaris-kz zone can be installed in the same manner as other brands directly from the global zone, or via a boot media.

How to indentify if you are in a kernel zone

1. Easiest method to identify if you are in a kernel zone is to check for the kernel zone drivers. You can use the modinfo command to grep for “kernel.*zone” modules. For example:
# modinfo | egrep -i "kernel.*zone"
 37 121866d8   4958 304   1  zvblk (kernel zone block driver)
 38 1218ae28    408   -   1  zvmisc (kernel zone common driver code)
 40 12191c50   3430 308   1  zvnex (kernel zone nexus driver)
 99 118a5100   25a0 312   1  zvterm (kernel zone terminal driver)
134 118b24c0   1000 305   1  zvcntrl (kernel zone control driver)
162 11b143f0   1620 311   1  zvsdir (kernel zone shared dir driver)
163 11b15878   33c8  24   1  zvsfs (kernel zone shared dir file sys)
190 11bd61f0   8528 307   1  zvnet (kernel zone network driver)
2. You can check driver path for pattern of “dev_path=/kz-devices@” in output of prtconf with option ‘-vD’. For example:
# prtconf -vD | grep "dev_path=/kz-devices@"
                    dev_path=/kz-devices@ff/disk@0:a
                    dev_path=/kz-devices@ff/disk@0:a,raw
                    dev_path=/kz-devices@ff/disk@0:b
                    dev_path=/kz-devices@ff/disk@0:b,raw
                    dev_path=/kz-devices@ff/disk@0:c
                    dev_path=/kz-devices@ff/disk@0:c,raw
                    ......

No comments:

Post a Comment