JavaScript is required to for searching.
跳过导航链接
退出打印视图
安装 Oracle Solaris 11 系统     Oracle Solaris 11 Information Library (简体中文)
search filter icon
search icon

文档信息

前言

第 1 部分Oracle Solaris 11 安装选项

1.  安装选项概述

第 2 部分使用安装介质安装

2.  准备安装

3.  使用 LiveCD

4.  使用文本安装程序

5.  从介质引导的自动化安装

6.  取消配置或重新配置 Oracle Solaris 实例

第 3 部分使用安装服务器安装

7.  自动化安装多个客户机

8.  设置安装服务器

9.  定制安装

10.  置备客户机系统

11.  配置客户机系统

12.  安装和配置区域

13.  在首次引导期间运行定制脚本

14.  设置 Oracle 配置管理器以供 AI 客户机系统使用

15.  安装客户机系统

16.  自动化安装故障排除

客户机安装失败

检查安装日志和说明

检查 DNS

检查客户机引导错误

SPARC 网络引导错误和可能的原因

x86 网络引导错误和可能的原因

SPARC 和 x86 错误消息

在不启动安装的情况下引导安装环境

在不启动安装的情况下引导后启动安装

客户机安装失败

本节介绍了客户机安装失败时建议要采取的操作。

检查安装日志和说明

如果在客户机系统上执行的安装失败,可以在 /system/volatile/install_log 中找到日志。

用于此客户机的 AI 清单位于 /system/volatile/ai.xml 中。用于此客户机的系统配置文件位于 /system/volatile/profile/* 中。

检查 DNS

通过验证是否存在非空 /etc/resolv.conf 文件,检查是否在客户机上配置了 DNS。

如果 /etc/resolv.conf 不存在或为空,请检查 DHCP 服务器是否可向客户机提供 DNS 服务器信息:

# /sbin/dhcpinfo DNSserv

如果此命令不返回任何信息,那么说明未将 DHCP 服务器设置为向客户机提供 DNS 服务器信息。请与 DHCP 管理员联系,纠正此问题。

如果 /etc/resolv.conf 文件存在且正确配置了该文件,请检查以下可能的问题,并与系统管理员联系以获取解决方案:

检查客户机引导错误

请查看下列有关客户机系统引导时所出现错误的附加信息。

SPARC 网络引导错误和可能的原因

本节描述了在通过网络引导 SPARC 客户机时可能出现的错误或问题以及可能的原因。

等待 BOOTP/DHCP 应答超时

如果 DHCP 服务器未响应 SPARC 客户机的请求,将显示如下消息:

   ...
   OpenBoot 4.23.4, 8184 MB memory available, Serial #69329298.
   Ethernet address 0:14:4f:21:e1:92, Host ID: 8421e192.
   Rebooting with command: boot net:dhcp - install
   Boot device: /pci@7c0/pci@0/network@4:dhcp  File and args: 
   1000 Mbps FDX Link up
   Timed out waiting for BOOTP/DHCP reply
   Timed out waiting for BOOTP/DHCP reply
   Timed out waiting for BOOTP/DHCP reply
   Timed out waiting for BOOTP/DHCP reply

此超时消息意味着客户机发出了 DHCP 请求,但没有针对该请求的响应。此错误可能是由于 DHCP 配置问题而导致的。检查是否在 DHCP 服务器中正确配置了您的客户机。

引导装载失败

如果 AI 客户机开始下载 boot_archive,但失败并出现 "Boot load failed" 错误,那么意味着客户机的 DHCP 信息配置错误。

Rebooting with command: boot net:dhcp - install
   Boot device: /pci@7c0/pci@0/network@4:dhcp  File and args: 
   1000 Mbps FDX Link up
   HTTP: Bad Response: 500 Internal Server Error
   Evaluating: 

   Boot load failed

如果有另一个 DHCP 服务器响应了该客户机,就会发生此错误。检查此客户机的 DHCP 配置。如果配置看上去没有错误,那么应确定子网中是否存在另一个 DHCP 服务器。

内部服务器错误或 WAN Boot 警报

在 AI 客户机获取了 IP 地址和初始参数并开始下载引导归档文件后,客户机可能无法找到或下载 boot_archive

对于这两种问题,都应修复为该客户机配置的 boot_archive 文件。检查位于 $IMAGE/boot/boot_archiveboot_archive 的路径名和权限。

错误消息 "403: Forbidden" 或 "404: Not Found"

如果 AI 客户机成功下载了 boot_archive 并引导了 Oracle Solaris 内核,但未能获取一个映像归档文件,那么会显示消息 "ERROR 403: Forbidden" 和 "ERROR 404: Not Found"。将显示一个指示是哪个文件导致此问题的错误消息。例如,在 SPARC 客户机的以下输出中,solaris.zlib 文件在指定的位置不存在或无法访问。

<time unavailable> wanboot info: Starting DHCP configuration
<time unavailable> wanboot info: DHCP configuration succeeded
<time unavailable> wanboot progress: wanbootfs: Read 368 of 368 kB (100%)
<time unavailable> wanboot info: wanbootfs: Download complete
Fri Aug 26 16:26:52 wanboot progress: miniroot: Read 221327 of 221327 kB (100%)
Fri Aug 26 16:26:53 wanboot info: miniroot: Download complete
Warning: 'SUNW,UltraSPARC-IIIi' support will be removed in a future release of Solaris.
SunOS Release 5.11 Version snv_175 64-bit
Copyright (c) 1983, 2011, Oracle and/or its affiliates. All rights reserved.
WARNING: i2c_0 failed to add interrupt.
WARNING: i2c_0 operating in POLL MODE only

Hardware watchdog enabled
Remounting root read/write
Probing for device nodes ...
Preparing network image for use
Downloading solaris.zlib
--2011-08-26 23:19:57--  http://10.134.125.136:5555/export/auto_install/175s//solaris.zlib
Connecting to 10.134.125.136:5555... connected.
HTTP request sent, awaiting response... 404 Not Found
2011-08-26 23:19:57 ERROR 404: Not Found.

Could not obtain http://10.134.125.136:5555/export/auto_install/175s//solaris.zlib from install server
Please verify that the install server is correctly configured and reachable from the client
Requesting System Maintenance Mode

此问题可能是由于下列情况之一所导致的。

检查 DHCP 配置或者您在运行 installadm create-service 时指定的目标目录的内容。检查 WAN 引导配置。

自动化安装程序已禁用

在客户机系统上安装 Oracle Solaris OS 时,需要在引导时按以下方式包括 install 参数,以便启动安装。

ok boot net:dhcp - install

如果在未使用 install 引导参数的情况下进行了引导,SPARC 客户机会引导到自动化安装程序引导映像,但不会启动安装。此时将显示以下消息。

Auto-installer disabled. Enable the auto-installer service
by running the following command:
svcadm enable svc:/application/auto-installer:default

要启动自动化安装,可以按该消息所示登录并启用安装服务,或者可以通过将以上所示命令与 install 参数一起使用,重新引导系统。

x86 网络引导错误和可能的原因

本节描述了在通过网络引导 x86 客户机时可能出现的错误或问题以及可能的原因。

未收到 DHCP 或代理 DHCP 供给

如果 DHCP 服务器未响应 x86 客户机的请求,您将看到以下消息:

Intel(R) Boot Agent PXE Base Code (PXE-2.1 build 0.86)
   Copyright(C) 1997-2007, Intel Corporation

   CLIENT MAC ADDR 00 14 4F 29 04 12 GUID FF2000008 FFFF FFFF FFFF 7BDA264F1400
   DHCP......... No DHCP or ProxyDHCP offers were received
   PXE-MOF: Exiting Intel Boot Agent

超时消息意味着客户机发送了 DHCP 请求,但未收到响应。此问题可能是由于 DHCP 配置错误而引起的。检查是否在 DHCP 服务器中正确配置了客户机。

TFTP 错误或者系统在 GATEWAY 消息后挂起

DHCP 服务器在 DHCP 响应中提供 IP 地址和初始引导程序的位置。

在选择 GRUB 菜单项后系统挂起

如果客户机能够执行初始引导,但内核无法引导,那么系统将在用户从 GRUB 菜单中选择某一项后挂起。

在安装服务器上,检查此客户机的 menu.lst 文件是否指向有效的引导归档文件。在该服务器上,映像的引导目录应当回送挂载到 /etc/netboot 目录下,如 df -k 所生成的以下样例摘录所示:

/install/images/x86_snv175 \
28046887     8432439    19614448    31%    /etc/netboot/x86_snv175

如果您知道在 installadm create-service 命令中使用的目标目录的名称,那么可以使用这一信息来确定是否已挂载该目标目录。

所发送的 HTTP 请求导致 403 Forbidden 或 404 Not Found

在安装服务器上,如果某个安装程序在 /etc/netboot 下的 menu.lst 文件中所指定的位置不可访问或不存在,则客户机能够引导,但无法下载该文件。将显示一个指示是哪个文件导致此问题的错误消息。例如,在 x86 客户机上的以下输出中,solaris.zlib 文件在指定的位置不存在。

SunOS Release 5.11 Version snv_175 64-bit
Copyright (c) 1983, 2011, Oracle and/or its affiliates. All rights reserved.
Remounting root read/write
Probing for device nodes ...
Preparing network image for use
Downloading solaris.zlib
--2011-08-18 20:02:26--  http://10.134.125.136:5555//export/auto_install/s11-x86/solaris.zlib
Connecting to 10.134.125.136:5555... connected.
HTTP request sent, awaiting response... 404 Not Found
2011-08-18 20:02:26 ERROR 404: Not Found.

Could not obtain http://10.134.125.136:5555//export/auto_install/s11-x86/solaris.zlib from install server
Please verify that the install server is correctly configured and reachable from the client

Requesting System Maintenance Mode
(See /lib/svc/share/README for more information.)
Console login service(s) cannot run

检查您在运行 installadm create-service 命令时所指定的目标目录的内容。

自动化安装程序已禁用

对于通过网络进行引导的安装,在 x86 客户机系统上安装 Oracle Solaris OS 时,您必须选择 GRUB 引导菜单中的第二项,以启动自动化安装。通常,菜单项如下所示:

Oracle Solaris 11 11/11 Text Installer and command line
Oracle Solaris 11 11/11 Automated Install

如果选择了第一个 GRUB 菜单项或允许超时提示,那么系统将引导到自动化安装引导映像,但是不会启动安装。将显示以下消息:

Auto-installer disabled. Enable the auto-installer service
by running the following command:
svcadm enable svc:/application/auto-installer:default

要启动自动化安装,可以按该消息所示登录并启用安装服务,或者可以重新引导系统并选择第二个菜单项。

SPARC 和 x86 错误消息

以下错误是 SPARC 和 x86 安装的常见错误。

Automated Installation Failed 消息

如果安装期间发生失败,那么会显示以下消息:

Automated Installation failed. Please refer to /system/volatile/install_log file
   for details
   Apr  9 14:28:09 solaris svc.startd[7]: application/auto-installer:default
   failed fatally: transitioned to maintenance (see 'svcs -xv' for details)
无法联系有效软件包服务器

为了安装 Oracle Solaris OS,安装客户机需要访问 AI 清单中定义的 IPS 软件包系统信息库。如果客户机无法访问软件包系统信息库,安装将失败,并且 application/auto-installer 服务将转换到维护状态。以下输出是有关控制台上显示内容的示例:

15:54:46    Creating IPS image
15:54:46    Error occurred during execution of 'generated-transfer-1341-1' checkpoint.
15:54:47    Failed Checkpoints:
15:54:47
15:54:47        generated-transfer-1341-1
15:54:47
15:54:47    Checkpoint execution error:
15:54:47
15:54:47        Framework error: code: 6 reason: Couldn't resolve host 'pkg.example.com'
15:54:47        URL: 'http://pkg.example.com/solaris/release/versions/0/'.
15:54:47
15:54:47    Automated Installation Failed.  See install log at /system/volatile/install_log
Automated Installation failed
Please refer to the /system/volatile/install_log file for details
Aug 31 15:54:47 line2-v445 svc.startd[8]: application/auto-installer:default failed fatally:
transitioned to maintenance (see 'svcs -xv' for details)
...
SUNW-MSG-ID: SMF-8000-YX, TYPE: defect, VER: 1, SEVERITY: major
EVENT-TIME: Wed Aug 31 15:54:47 UTC 2011
PLATFORM: SUNW,Sun-Fire-V445, CSN: -, HOSTNAME: line2-v445
SOURCE: software-diagnosis, REV: 0.1
EVENT-ID: c8a5b809-ece4-4399-9646-d8c64d78aac7
DESC: A service failed - a start, stop or refresh method failed.
AUTO-RESPONSE: The service has been placed into the maintenance state.
IMPACT: svc:/application/auto-installer:default is unavailable.
REC-ACTION: Run 'svcs -xv svc:/application/auto-installer:default' to determine the generic reason
why the service failed, the location of any logfiles, and a list of other services impacted. Please
refer to the associated reference document at http://sun.com/msg/SMF-8000-YX for the latest service
procedures and policies regarding this diagnosis.

检查 /system/volatile/install_log 文件中是否存在与以下消息类似的消息:

TransportFailures: Framework error: code: 6 reason: Couldn't resolve host
'pkg.example.com'
URL: 'http://pkg.example.com/solaris/versions/0/'
TransportFailures: Framework error: code: 7 reason: Failed connect to
pkg.example.com:80; Connection refused
URL: 'http://pkg.example.com/solaris/versions/0/'
TransportFailures: http protocol error: code: 404 reason: Not Found
URL: 'http://pkg.oracle.com/mysolaris/versions/0/'

根据所看到的消息,尝试以下可能的补救措施:

找不到软件包

如果不能在 IPS 系统信息库中找到 AI 清单中指定的某个软件包,那么安装程序将会失败,从而无法在磁盘上安装任何软件包。在以下示例中,安装程序在 IPS 系统信息库中找不到软件包 entirity。以下输出是有关控制台上显示内容的示例:

14:04:02    Failed Checkpoints:
14:04:02
14:04:02        ips
14:04:02
14:04:02    Checkpoint execution error:
14:04:02
14:04:02        The following pattern(s) did not match any allowable packages.  Try
14:04:02        using a different matching pattern, or refreshing publisher information:
14:04:02
14:04:02                pkg:/entirity
14:04:02
14:04:02    Automated Installation Failed.  See install log at /system/volatile/install_log

以下输出是部分 /system/volatile/install_log 日志文件的示例:

PlanCreationException: The following pattern(s) did not match any allowable packages.
Try using a different matching pattern, or refreshing publisher information:

pkg:/entirity

检查所提到的软件包是否是有效的软件包。如果可从其他 IPS 系统信息库获取此软件包,请通过将另一个 publisher 元素添加到 source 元素来在 AI 清单中添加该 IPS 系统信息库。