カーネルゾーンの直接インストールは、zoneadm install 操作中に –b オプションを指定しないと実行されます。直接インストールは、カーネルゾーンのもっとも単純なインストール方法です。
直接インストールでは、インストーラは大域ゾーンで実行されます。インストーラは大域ゾーンの pkg パブリッシャーを使用して、カーネルゾーンのブートディスクを作成およびフォーマットし、Oracle Solaris パッケージをそのディスクにインストールします。
詳細は、Creating and Using Oracle Solaris Zones の Overview of Rights Profiles for Zone Administratorsを参照してください。
global$ pfbash zoneadm -z kzone install
それらの場所については、カーネルゾーンのインストールを参照してください。
global$ zoneadm -z kzone boot
これでゾーンにログインできます。Oracle Solaris にはいくつかのログイン方法が用意されています。カーネルゾーンの方法は非大域ゾーンの方法と同じです。詳細は、Creating and Using Oracle Solaris Zones の 第 7 章, Logging In to Non-Global Zonesを参照してください。
この例は、カーネルゾーン 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.