Go to main content

Creating and Using Oracle® Solaris Kernel Zones

Exit Print View

Updated: August 2021
 
 

How to Configure a Kernel Zone

Perform this procedure to configure a kernel zone that uses the default kernel zone template, SYSsolaris-kz.

Before You Begin

  1. On the kernel zone host, become an administrator.

    For more information, see Using Rights Profiles to Install and Manage Zones in Creating and Using Oracle Solaris Zones.

  2. Start the zonecfg utility and create a new kernel zone configuration.

    The default solaris-kz zone template is SYSsolaris-kz.

    global$ pfbash zonecfg -z kzone
    Use 'create' to begin configuring a new zone.
    zonecfg:kzone> create -t SYSsolaris-kz
  3. Add any additional kernel zone resources.

    You can set some kernel zone resources now or after the zone is configured. For more information, see About Managing Kernel Zone Resources.

  4. Commit the zone configuration.
    zonecfg:kzone> commit
  5. Exit the zonecfg utility.
    zonecfg:kzone> exit
  6. (Optional) Verify the zone configuration.

    You can verify a zone prior to installation. If you skip this step, the verification is performed automatically when you install the zone.

    global$ zoneadm -z kzone verify

    If you see an error message and the zone fails to verify, make the corrections specified in the message and try the command again. If no error messages are displayed, you can install the zone.

Next Steps

After the kernel zone is verified, install and boot the kernel zone. Go to Installing a Kernel Zone.