• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

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

by admin

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
                    ......

Filed Under: Solaris, Solaris 11, Zones

Some more articles you might also be interested in …

  1. How to find Number of Physical/Logical CPUs, cores and memory in Solaris
  2. The ultimate Solaris zones (containers) interview questions
  3. Howto Verify If a Bootblk is Installed on the Boot Disk (SPARC)
  4. Beginners Guide to Solaris 11 Image Packaging System (IPS)
  5. Solaris 10 boot process : SPARC
  6. How to Import Zpool and Mount of BE When Booted From Alternate Device in Solaris 11
  7. Solaris : How to run savecore manually while booted in single user from CDROM
  8. How to set up cron for automatic data collection from the system activity reporter (SAR) in Solaris 10 and 11
  9. Solaris Zone Install Fails With Cpio Error
  10. How to Use the ‘truss’ Command for Program and Error Analysis in Solaris

You May Also Like

Primary Sidebar

Recent Posts

  • powertop Command Examples in Linux
  • powertop: command not found
  • powerstat: command not found
  • powerstat Command Examples in Linux

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright