用于安装非全局区域的此 AI 清单与用于安装全局区域的 AI 清单类似。有关 AI 清单元素和属性的信息,请参见 ai_manifest(4) 手册页。
请勿在非全局区域 AI 清单中使用以下元素或属性:
ai_instance 元素的 auto_reboot 属性
ai_instance 元素的 http_proxy 属性
target 元素的 disk 子元素
logical 元素的 noswap 属性
logical 元素的 nodump 属性
configuration 元素
仅 target 元素的 logical 子元素可以在非全局区域 AI 清单中使用。只能在 logical 元素中指定一个 zpool 子元素。
在 zpool 元素中,仅 filesystem 和 be 子元素可以在非全局区域 AI 清单中使用。
software 元素的 type 属性唯一支持的值是缺省值 IPS。
示例 12-1 缺省区域 AI 清单以下文件显示了非全局区域的缺省 AI 清单。如果没有为区域提供定制 AI 清单,则使用该清单。可以在 /usr/share/auto_install/manifest/zone_default.xml 中获取该清单。
target 部分为区域定义了 ZFS 文件系统。destination 部分指定要安装的语言环境。software_data 部分指定安装 solaris-small-server 软件包。solaris-small-server 软件包是一个组软件包,其中包含在所安装的大多数非全局区域中可能都需要的工具和设备驱动程序。要获取 solaris-small-server 组软件包中包含的软件包的完整列表,请使用在 Oracle Solaris 11.2 中添加和更新软件 中的列出组软件包中的所有可安装软件包中介绍的 pkg contents 命令。
请注意,未指定软件包源。有关系统信息库的信息,请参见 pkg.sysrepo(1M)。
<?xml version="1.0" encoding="UTF-8"?> <!-- Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved. --> <!DOCTYPE auto_install SYSTEM "file:///usr/share/install/ai.dtd.1"> <auto_install> <ai_instance name="zone_default"> <target> <logical> <zpool name="rpool"> <!-- Subsequent <filesystem> entries instruct an installer to create following ZFS datasets: <root_pool>/export (mounted on /export) <root_pool>/export/home (mounted on /export/home) Those datasets are part of standard environment and should be always created. In rare cases, if there is a need to deploy a zone without these datasets, either comment out or remove <filesystem> entries. In such scenario, it has to be also assured that in case of non-interactive post-install configuration, creation of initial user account is disabled in related system configuration profile. Otherwise the installed zone would fail to boot. --> <filesystem name="export" mountpoint="/export"/> <filesystem name="export/home"/> <be name="solaris"> <options> <option name="compression" value="on"/> </options> </be> </zpool> </logical> </target> <software type="IPS"> <destination> <image> <!-- Specify locales to install --> <facet set="false">facet.locale.*</facet> <facet set="true">facet.locale.de</facet> <facet set="true">facet.locale.de_DE</facet> <facet set="true">facet.locale.en</facet> <facet set="true">facet.locale.en_US</facet> <facet set="true">facet.locale.es</facet> <facet set="true">facet.locale.es_ES</facet> <facet set="true">facet.locale.fr</facet> <facet set="true">facet.locale.fr_FR</facet> <facet set="true">facet.locale.it</facet> <facet set="true">facet.locale.it_IT</facet> <facet set="true">facet.locale.ja</facet> <facet set="true">facet.locale.ja_*</facet> <facet set="true">facet.locale.ko</facet> <facet set="true">facet.locale.ko_*</facet> <facet set="true">facet.locale.pt</facet> <facet set="true">facet.locale.pt_BR</facet> <facet set="true">facet.locale.zh</facet> <facet set="true">facet.locale.zh_CN</facet> <facet set="true">facet.locale.zh_TW</facet> </image> </destination> <software_data action="install"> <name>pkg:/group/system/solaris-small-server</name> </software_data> </software> </ai_instance> </auto_install>