root@solaris11-1:/export/repoSolaris11# pkg set-publisher -G '*' -g /export/repoSolaris11/repo solaris
-G '*' 删除 solaris 发布者的所有现有源。
-g 将新建的本地系统信息库的 URI 添加为 solaris 发布者的新源
root@solaris11-1:/export/repoSolaris11# pkg publisher
PUBLISHER TYPE STATUS URI
solaris origin online file:///export/repoSolaris11/repo/
检查发布者的内容
root@solaris11-1:/home/test/image-s11# installadm list
Service Name Alias Of Status Arch Image Path
------------ -------- ------ ---- ----------
default-sparc s11-sparc on Sparc /install/images/s11-sparc
s11-sparc - on Sparc /install/images/s11-sparc
root@solaris11-1:/home/guo/image-s11#installadm list –m
Service Name Manifest Status
------------ -------- ------
default-sparc orig_default Default
s11-sparc orig_default Default
****查看已有的安装服务及AI清单****
这里我不做特殊设置,使用默认的AI清单。只需要将默认AI清单中 软件发布者地址更换成domain0的发布地址。
root@solaris11-1:/var/ai/service/default-sparc/AI_data# vi orig_default 修改默认AI清单
0} ok boot net:dhcp - install
Boot device: /pci@0,600000/pci@0/pci@8/pci@0/network@2:dhcp File and args: - install
1000 Mbps full duplex Link up
Timed out waiting for BOOTP/DHCP reply
<time unavailable> wanboot info: WAN boot messages->console
<time unavailable> wanboot info: configuring /pci@0,600000/pci@0/pci@8/pci@0/network@2:dhcp
1000 Mbps full duplex Link up
<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
Thu Feb 23 05:40:15 wanboot progress: miniroot: Read 213735 of 213735 kB (100%)
Thu Feb 23 05:40:16 wanboot info: miniroot: Download complete
SunOS Release 5.11 Version 11.0 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
--2012-02-23 06:06:45-- http://192.168.0.1:5555/export/a ... sparc//solaris.zlib
Connecting to 192.168.0.1:5555... connected.
HTTP request sent, awaiting response... 200 OK
Length: 126752256 (121M) [text/plain]
Saving to: `/tmp/solaris.zlib'
100%[======================================>] 126,752,256 80.1M/s in 1.5s
Done mounting image
Configuring devices.
Hostname: solaris
Service discovery phase initiated
Service name to look up: default-sparc
Service discovery finished successfully
Process of obtaining install manifest initiated
Using the install manifest obtained via service discovery
solaris console login:
Automated Installation started
The progress of the Automated Installation will be output to the console
Detailed logging is in the logfile at /system/volatile/install_log
Press RETURN to get a login prompt at any time.
06:07:03 Install Log: /system/volatile/install_log
06:07:03 Using XML Manifest: /system/volatile/ai.xml
06:07:03 Using profile specification: /system/volatile/profile
06:07:03 Using service list file: /var/run/service_list
06:07:03 Starting installation.
06:07:03 0% Preparing for Installation
06:07:03 100% manifest-parser completed.
06:07:03 0% Preparing for Installation
06:07:04 0% Preparing for Installation
06:07:04 0% Preparing for Installation
06:07:04 0% Preparing for Installation
06:07:04 1% Preparing for Installation
06:07:04 1% Preparing for Installation
06:07:04 1% Preparing for Installation
06:07:04 2% Preparing for Installation
06:07:04 2% Preparing for Installation
06:07:04 2% Preparing for Installation
06:07:04 3% Preparing for Installation
06:07:04 3% Preparing for Installation
06:07:04 3% Preparing for Installation
06:07:04 4% Preparing for Installation
06:07:04 4% Preparing for Installation
06:07:04 4% Preparing for Installation
06:07:08 7% target-discovery completed.
06:07:08 === Executing Target Selection Checkpoint ==
06:07:08 Selected Disk(s) : c2t0d0
06:07:08 13% target-selection completed.
06:07:08 17% ai-configuration completed.
06:07:09 19% var-shared-dataset completed.
06:07:20 21% target-instantiation completed.
06:07:21 21% Beginning IPS transfer
06:07:21 Creating IPS image
06:07:24 Installing packages from:
06:07:24 solaris
06:07:24 origin: http://192.168.0.1:80/
06:16:06 23% generated-transfer-848-1 completed.
06:16:06 25% initialize-smf completed.
06:16:08 Installing SPARC bootblk to root pool devices: ['/dev/rdsk/c2t0d0s0']
06:16:08 Setting openprom boot-device
06:16:09 35% boot-configuration completed.
06:16:09 37% update-dump-adm completed.
06:16:09 40% setup-swap completed.
06:16:10 42% device-config completed.
06:16:10 44% apply-sysconfig completed.
06:16:10 46% transfer-zpool-cache completed.
06:16:18 87% boot-archive completed.
06:16:18 89% transfer-ai-files completed.
06:16:18 99% create-snapshot completed.
06:16:18 Automated Installation succeeded.
06:16:18 You may wish to reboot the system at this time.
Automated Installation finished successfully
The system can be rebooted now
Please refer to the /system/volatile/install_log file for details
After reboot it will be located at /var/sadm/system/logs/install_log