Go to main content

Creating and Using Oracle® Solaris Kernel Zones

Exit Print View

Updated: December 2018
 
 

Installing a Kernel Zone by Using Direct Installation

Direct installation is the default kernel zone installation method. In a direct installation, the installer runs on the global zone. By default, the installer creates and formats the kernel zone boot disk and installs Oracle Solaris packages on that disk using the global zone's pkg publishers.


Note -  In a kernel zone direct installation, the installer can recognize and install only the exact version of Oracle Solaris that is running on the global zone. To install a version of Oracle Solaris that is different from the version installed in the global zone, you must use an Automated Installation or interactive text installation. See Installing a Kernel Zone from an Installation Image.

A kernel zone direct installation occurs when you do not specify the –b option during a zoneadm install operation.

How to Install a Kernel Zone Using Direct Installation

  1. Become a zone administrator.

    For more information, see Assigning Rights to Non-Root Users to Manage Zones in Creating and Using Oracle Solaris Zones.

  2. Install the kernel zone.
    $ zoneadm -z zonename install

    For example, to install the kernel zone kzone1 on the host system global:

    global$ zoneadm -z kzone1 install

    Note -  If a direct installation fails after zone verification, confirm that the publishers on the global zone have all of the required package components. See Copying and Creating Package Repositories in Oracle Solaris 11.3 for more information.
  3. Boot the kernel zone.
    $ zoneadm -z zonename boot

    For example, to boot the kernel zone kzone1 on the host system global:

    global$ zoneadm -z kzone1 boot
  4. Log in to the kernel zone console to complete the zone configuration process.
    $ zlogin -C zonename

    For example, to log in to the console on the kernel zone kzone1:

    global$ zlogin -C kzone1
Example 23  Installing a Kernel Zone Using Direct Installation

This example shows a successful direct installation of the kernel zone kzone1.

global$ zoneadm -z kzone1 install
Progress being logged to /var/log/zones/zoneadm.20146T195713Z.kzone1.install
pkg cache: Using /var/pkg/publisher.
 Install Log: /system/volatile/install.778521/install_log
 AI Manifest: /tmp/zoneadm777933.spq5FV/devel-ai-manifest.xml
  SC Profile: /usr/share/auto_install/sc_profiles/enable_sci.xml
Installation: Starting ...

        Creating IPS image
         Startup: Retrieving catalog 'nightly' ... Done
         Startup: Caching catalogs ... Done
         Startup: Refreshing catalog 'nightly' ... Done
         Startup: Refreshing catalog 'solaris' ... Done
         Startup: Refreshing catalog 'extra' ... Done
         Startup: Caching catalogs ... Done
        Installing packages from:
            solaris
                origin:  http://ipkg.us.oracle.com/solaris11/dev/
         Startup: Linked image publisher check ... Startup: Refreshing catalog 'nightly' ... Done
         Startup: Refreshing catalog 'solaris' ... Done
         Startup: Refreshing catalog 'extra' ... Done
        Planning: Solver setup ... Done
        Planning: Running solver ... Done
        Planning: Finding local manifests ... Done
        Planning: Fetching manifests:   0/477  0% complete
        Planning: Fetching manifests: 477/477  100% complete
        Planning: Package planning ... Done
        Planning: Merging actions ... Done
        Planning: Checking for conflicting actions ... Done
        Planning: Consolidating action changes ... Done
        Planning: Evaluating mediators ... Done
        Planning: Planning completed in 29.49 seconds
        The following licenses have been accepted and not displayed.
        Please review the licenses for the following packages post-install:
          consolidation/osnet/osnet-incorporation
        Package licenses may be viewed using the command:
          pkg info --license <pkg_fmri>

        Download:     0/52325 items    0.0/535.0MB  0% complete
        Download:  1024/52325 items   30.8/535.0MB  5% complete
        Download:  2233/52325 items   42.7/535.0MB  7% complete
        ...
        Download: 46744/52325 items  518.8/535.0MB  96% complete (6.4M/s)
        Download: Completed 534.98 MB in 79.80 seconds (5.0M/s)
         Actions:     1/74042 actions (Installing new actions)
         Actions: 17036/74042 actions (Installing new actions)
         ...
         Actions: 72796/74042 actions (Installing new actions)
         Actions: Completed 74042 actions in 97.96 seconds.
         Done
Installation: Succeeded
        Done: Installation completed in 359.901 seconds.