Go to main content

Oracle® Solaris カーネルゾーンの作成と使用

印刷ビューの終了

更新: 2018 年 8 月
 
 

カーネルゾーンの直接インストール

カーネルゾーンの直接インストールは、zoneadm install 操作中に –b オプションを指定しないと実行されます。直接インストールは、カーネルゾーンのもっとも単純なインストール方法です。

直接インストールでは、インストーラは大域ゾーンで実行されます。インストーラは大域ゾーンの pkg パブリッシャーを使用して、カーネルゾーンのブートディスクを作成およびフォーマットし、Oracle Solaris パッケージをそのディスクにインストールします。


注 -  カーネルゾーンの直接インストールでは、インストーラは、大域ゾーン内で実行されている Oracle Solaris とまったく同じバージョンをインストールします。異なるバージョンの Oracle Solaris をインストールするには、別のインストール方法を選択する必要があります。

カーネルゾーンの直接インストールを行う方法

  1. カーネルゾーンホストで、管理者になります。

    詳細は、Creating and Using Oracle Solaris Zones の Overview of Rights Profiles for Zone Administratorsを参照してください。

  2. カーネルゾーンをインストールします。
    global$ pfbash zoneadm -z kzone install

    注 -  ゾーンの検証後に直接インストールが失敗する場合は、必要なすべてのパッケージコンポーネントが大域ゾーンのパブリッシャーにあることを確認します。詳細は、Oracle Solaris 12 パッケージリポジトリのコピーと作成 の Troubleshooting Local Package Repositoriesを参照してください。
  3. (オプション)インストールログを確認します。

    それらの場所については、カーネルゾーンのインストールを参照してください。

  4. カーネルゾーンをブートします。
    global$ zoneadm -z kzone boot

    これでゾーンにログインできます。Oracle Solaris にはいくつかのログイン方法が用意されています。カーネルゾーンの方法は非大域ゾーンの方法と同じです。詳細は、Creating and Using Oracle Solaris Zones の 第 7 章, Logging In to Non-Global Zonesを参照してください。

使用例 21  直接インストールを使用したカーネルゾーンのインストール

この例は、カーネルゾーン kzone1 の直接インストールが成功したことを示しています。

global$  pfbash 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.