Go to main content
Oracle® Solaris カーネルゾーンの作成と使用

印刷ビューの終了

更新: 2016 年 11 月
 
 

カーネルゾーンインストールでの AI マニフェストと sysconfig プロファイルの使用

大域ゾーンとは別に、特定のリソースおよびパッケージ構成で複数のカーネルゾーンをインストールする必要がある場合は、Automated Installation (AI) マニフェストまたは sysconfig プロファイルを使用できます。

代替 AI マニフェストを指定するには、zoneadm install コマンドに –m オプションを付けて使用します。

# zoneadm –z zonename install –m manifest

sysconfig プロファイルを指定するには、–c オプションを使用します。

# zoneadm –z zonename install –c sysconfig-profile

たとえば、AI マニフェスト /data/archives/kzone-manifest.xml を使用してカーネルゾーン kzone1 をインストールするには、次のようにします。

global# zoneadm -z kzone1 install -m /data/archives/kzone-manifest.xml 

代替 AI マニフェストまたは sysconfig プロファイルをカーネルゾーンにインストールする場合のガイドラインは次のとおりです。

使用例 23  個別の Automated Installer (AI) マニフェストを使用したカーネルゾーンのインストール

この例は、デフォルト以外の Automated Install (AI) マニフェスト /var/tmp/kz_manifest.xml を使用したカーネルゾーン kzone1 のインストールを示しています。

global# zoneadm -z kzone1 install -m /var/tmp/kz_manifest.xml
Progress being logged to /var/log/zones/zoneadm.20146T195713Z.kzone1.install
pkg cache: Using /var/pkg/publisher.
 Install Log: /system/volatile/install.10708/install_log
 AI Manifest: /tmp/zoneadm10343.5la4Vu/devel-ai-manifest.xml
  SC Profile: /usr/share/auto_install/sc_profiles/enable_sci.xml
Installation: Starting ...

        Creating IPS image
         Startup: Retrieving catalog 'solaris' ... Done
         Startup: Caching catalogs ... Done
         Startup: Refreshing catalog 'solaris' ... Done
        Installing packages from:
            solaris
                origin:  http://pkg.oracle.com/solaris/release/
         Startup: Linked image publisher check ... Startup: Refreshing catalog 'solaris' ... Done
        Planning: Solver setup ... Done
        Planning: Running solver ... Done
        Planning: Finding local manifests ... Done
        Planning: Fetching manifests:   0/501  0% complete
        Planning: Fetching manifests: 501/501  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 32.07 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/64687 items    0.0/569.3MB  0% complete
        Download:   931/64687 items    5.8/569.3MB  1% complete (1.2M/s)
        ...
        Download: 64589/64687 items  569.2/569.3MB  99% complete (825k/s)
        Download: Completed 569.25 MB in 358.54 seconds (1.6M/s)
         Actions:     1/88614 actions (Installing new actions)
         Actions: 19471/88614 actions (Installing new actions)
         ...
         Actions: 86994/88614 actions (Installing new actions)
         Actions: 87128/88614 actions (Installing new actions)
         Actions: Completed 88614 actions in 73.71 seconds.
         Installation: Succeeded
         Done: Installation completed in 342.508 seconds.


Log saved in non-global zone as /zones/kzone1/root/var/log/zones/zoneadm.20146T195713Z.kzone1.install
global#
使用例 24  非ルートプールを含む統合アーカイブ (UAR) に対する Automated Installer (AI) マニフェストを使用したカーネルゾーンのインストール

UAR に非ルートプール内のデータセットが含まれており、AI マニフェストが非ルートプールを考慮しない場合、次のエラーが表示されることがあります。

ERROR: Archive contains non-root data, please use [-m manifest]

次のサンプル AI マニフェストは、パス /Extpool/Archive/Clone-T4.uar にある統合アーカイブ (UAR) からのインストール用です。このアーカイブは tank という名前の非ルート zpool があるシステムに作成されています。

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE auto_install SYSTEM "file:///usr/share/install/ai.dtd.1">
<auto_install>
  <ai_instance name="default">
    <target name="origin">
      <disk in_zpool="rpool" in_vdev="rpool-none" whole_disk="true">
        <disk_name name="c1d0" name_type="ctd"/>
      </disk>
      <disk in_zpool="tank" in_vdev="tank-none" whole_disk="true">
        <disk_name name="c1d1" name_type="ctd"/>
      </disk>
      <logical noswap="false" nodump="false">
        <zpool name="rpool" action="create" is_root="true"
            mountpoint="/rpool">
          <vdev name="rpool-none" redundancy="none"/>
        </zpool>
        <zpool name="tank" action="create" is_root="false"
            mountpoint="/tank">
          <vdev name="tank-none" redundancy="none"/>
        </zpool>
      </logical>
    </target>
    <software type="ARCHIVE">
      <source>
        <file uri="file:///Extpool/Archive/Clone-T4.uar"/>
      </source>
      <software_data action="install">
        <name>*</name>
      </software_data>
    </software>
  </ai_instance>
</auto_install> 

マニフェストファイルが /tmp/ai.xml に格納されており、ID 0 および 1 のストレージデバイスが kzone1 ゾーン構成に存在している場合、次のコマンドを使用して、カーネルゾーン kzone1 にインストールできます。

global# zoneadm -z kzone1 install -m /tmp/ai.xml
使用例 25  代替 sysconfig プロファイルを使用したカーネルゾーンのインストール

この例では、sysconfig プロファイル /var/tmp/kzone1-sysconfig.xml を使用してカーネルゾーン kzone1 をインストールします。

global# zoneadm -z kzone1 install -c /var/tmp/kzone1-sysconfig.xml
The following ZFS file system(s) have been created:
    rpool/zones/kzone1
Progress being logged to /var/log/zones/zoneadm.20146T195713Z.kzone1.install
pkg cache: Using /var/pkg/publisher.
AI Manifest: /tmp/zoneadm124827.zQWoOh/devel-ai-manifest.xml
SC Profile: /var/tmp/kzone1-sysconfig.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:
                nightly
                    origin:  file:///server/nightly
                solaris
                    origin:  file:///server/solaris
                extra
                    origin:  http://server/extra
             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: 552/552  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 56.62 seconds
            ...
            Download:  9746/65597 items  143.6/661.7MB  21% complete
            Download: 35018/65597 items  370.8/661.7MB  56% complete
            Download: 62181/65597 items  654.5/661.7MB  98% complete
            Download: Completed 661.67 MB in 40.57 seconds (0B/s)
             ...
             Actions: 87940/89672 actions (Installing new actions)
             Actions: 88107/89672 actions (Installing new actions)
             Actions: 88745/89672 actions (Installing new actions)
             Actions: Completed 89672 actions in 108.50 seconds.
             Done
Installation: Succeeded
        Done: Installation completed in 342.508 seconds.


Log saved in non-global zone as /zones/kzone1/root/var/log/zones/zoneadm.20146T195713Z.kzone1.install
global#