AI

From pressy's brainbackup
Jump to: navigation, search

AI

Setup

Some notes to by first impressions using the new Automated Installation Services for Oracle Solaris 11

# zfs create -o mountpoint=/export/repo rpool/ai/repo
# zfs create rpool/ai/repo/sol11
# mount -o ro -F hsfs /tmp/sol-11-1111-repo-full.iso /mnt
# rsync -aP /mnt/repo /export/repo/sol11
# umount /mnt
# pkgrepo rebuild -s /export/repo/sol11/repo
Initiating repository rebuild.
# zfs snapshot rpool/ai/repo/sol11@repo-s11.1.0.0.0
# pkgrepo info -s  /export/repo/sol11/repo
PUBLISHER PACKAGES STATUS           UPDATED
solaris   4401     online           2013-09-17T08:07:15.556538Z


# svccfg -s application/pkg/server \
> setprop pkg/inst_root=/export/repo/sol11/repo
# svccfg -s application/pkg/server setprop pkg/readonly=true
# svcadm refresh application/pkg/server
# svcadm enable application/pkg/server

# mount -F hsfs -o ro /downloads/s11.1.11.4.0/sol\-11_1_11_4_0\-incr\-repo.iso /mnt
# pkgrecv -s /mnt/repo/ -d /export/repo/sol11/repo '*'
Processing packages for publisher solaris ...
Retrieving and evaluating 390 package(s)...
PROCESS                                         ITEMS    GET (MB)   SEND (MB)
Completed                                     390/390   2822/2822   6433/6433

# umount /mnt

# pkgrepo rebuild -s /export/repo/sol11/repo
Initiating repository rebuild.
# zfs list -t snapshot
# zfs snapshot rpool/ai/repo/sol11@repo-s11.1.11.4.0
# zfs set snapdir=visible rpool/ai/repo/sol11
# svcadm restart svc:/application/pkg/server:default

# zfs create -o mountpoint=/export/install rpool/ai/install

# pkg set-publisher -g file:///export/repo/sol11/repo solaris

# pkg install install/installadm
[...]
# installadm create-service -n sparc-ai -a sparc \
> -s pkg:/install-image/solaris-auto-install@5.11-0.175.1.10.0.3.0 -d /export/install/sparc-ai -i 192.168.56.200 -c 25
/usr/bin/ksh93[1]: valid_networks[459]: get_SMF_masked_networks[546]: : cannot execute [Is a directory]
/usr/bin/ksh93[1]: valid_networks[459]: get_SMF_masked_networks[548]: : cannot execute [Is a directory]
/usr/bin/ksh93[1]: valid_networks[459]: get_SMF_masked_networks[553]: : cannot execute [Is a directory]
Usage:
create-service
                [-n|--service <svcname>]
                [-t|--aliasof <existing_service>]
                [-p|--publisher <prefix>=<origin>]
                [-a|--arch <architecture>]
                [-s|--source <FMRI/ISO>]
                [-b|--boot-args <boot property>=<value>,...]
                [-i|--ip-start <dhcp_ip_start>]
                [-c|--ip-count <count_of_ipaddr>]
                [-B|--bootfile-server <server_ipaddr>]
                [-d|--imagepath <imagepath>]
                [-y|--noprompt]

create-service: error:
DHCP server configuration is unavailable on hosts with multiple
network interfaces (-i and -c options are disallowed).
--> for any strange reason I had to remove the IPv6 interfaces... I got another error:
Framework error: code: 7 reason: Failed to connect to ::1: Network is unreachable
URL: 'http://pkg.oracle.com/solaris/support/versions/0/'
--> without having a clue which service to restart i rebooted the whole zone ;) 

# installadm create-service -n sparc-ai -a sparc -s pkg:/install-image/solaris-auto-install@5.11-0.175.1.10.0.3.0 -d /export/install/sparc-ai -i 192.168.56.200 -c 25
Warning: Service svc:/network/dns/multicast:default is not online.
   Installation services will not be advertised via multicast DNS.

Creating service from: pkg:/install-image/solaris-auto-install@5.11-0.175.1.10.0.3.0
DOWNLOAD                                PKGS         FILES    XFER (MB)   SPEED
Completed                                1/1         45/45  272.2/272.2    0B/s

PHASE                                          ITEMS
Installing new actions                       188/188
Updating package state database                 Done
Updating image state                            Done
Creating fast lookup database                   Done
Reading search index                            Done
Updating search index                            1/1

Creating sparc service: sparc-ai

Image path: /export/install/sparc-ai

Service discovery fallback mechanism set up
Creating SPARC configuration file

Starting DHCP server...

Adding IP range to local DHCP configuration

Refreshing install services
Warning: mDNS registry of service sparc-ai could not be verified.

Creating default-sparc alias

Service discovery fallback mechanism set up
Creating SPARC configuration file
Setting the default SPARC bootfile(s) in the local DHCP configuration
to:
http://192.168.56.113:5555/cgi-bin/wanboot-cgi

Refreshing install services
Warning: mDNS registry of service default-sparc could not be verified.



# mkdir -p /export/install/configs/manifests
# cd /export/install/configs/manifests
# installadm export -n sparc-ai -m orig_default -o orig_default.xml
# cp orig_default.xml sparc-ai.local.xml
# vi sparc-ai.local.xml
<!DOCTYPE auto_install SYSTEM "file:///usr/share/install/ai.dtd.1">
<auto_install>
  <ai_instance name="sparc-ai test">
    <target>
      <logical>
        <zpool name="rpool" is_root="true">
          <filesystem name="export" mountpoint="/export"/>
          <filesystem name="export/home"/>
          <be name="solaris"/>
        </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>
        </image>
      </destination>
      <source>
        <publisher name="solaris">
          <origin name="http://192.168.56.113/"/>
        </publisher>
      </source>
      <!--
        The version specified by the "entire" package below, is
        installed from the specified IPS repository.  If another build
        is required, the build number should be appended to the
        'entire' package in the following form:

            <name>pkg:/entire@0.5.11-0.build#</name>
      -->
      <software_data action="install">
        <name>pkg:/entire@0.5.11-0.175.1</name>
        <name>pkg:/group/system/solaris-large-server</name>
      </software_data>
    </software>
  </ai_instance>
</auto_install>
# 
# installadm create-manifest -n sparc-ai -d -f ./sparc\-ai.local.xml
#
# installadm list -m -n sparc-ai
Service/Manifest Name  Status   Criteria
---------------------  ------   --------
sparc-ai
   sparc-ai test       Default  None
   orig_default        Inactive None

# installadm create-client -e 00:10:e0:35:30:ba -n sparc-ai
Warning: Service svc:/network/dns/multicast:default is not online.
   Installation services will not be advertised via multicast DNS.
# vi /etc/inet/dhcpd4.conf
host t5-2-io {
  hardware ethernet 00:10:e0:35:30:ba ;
  fixed-address 192.168.56.201 ;
}
###########
# installadm list -c

Service Name Client Address     Arch   Image Path
------------ --------------     ----   ----------
sparc-ai     00:10:E0:35:30:B8  sparc  /export/install/sparc-ai
             00:10:E0:35:30:BA  sparc  /export/install/sparc-ai

Client Boot

Let's boot ;)


SPARC T5-2, No Keyboard
Copyright (c) 1998, 2013, Oracle and/or its affiliates. All rights reserved.
OpenBoot 4.35.0.a, 127.0000 GB memory available, Serial #104149176.
Ethernet address 0:10:e0:35:30:b8, Host ID: 863530b8.



{0} ok
{0} ok
{0} ok
{0} ok boot net:dhcp - install
Boot device: /pci@300/pci@1/pci@0/pci@1/network@0:dhcp  File and args: - install
1000 Mbps full duplex Link up
<time unavailable> wanboot info: WAN boot messages->console
<time unavailable> wanboot info: configuring /pci@300/pci@1/pci@0/pci@1/network@0: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
Tue Sep 17 16:14:31 wanboot progress: miniroot: Read 251058 of 251058 kB (100%)
Tue Sep 17 16:14:31 wanboot info: miniroot: Download complete
SunOS Release 5.11 Version 11.1 64-bit
Copyright (c) 1983, 2012, Oracle and/or its affiliates. All rights reserved.
Remounting root read/write
Probing for device nodes ...
Preparing network image for use
Downloading solaris.zlib
--2013-09-17 16:14:40--  http://192.168.56.113:5555/export/install/sparc-ai//solaris.zlib
Connecting to 192.168.56.113:5555... connected.
HTTP request sent, awaiting response... 200 OK
Length: 158720512 (151M) [text/plain]
Saving to: `/tmp/solaris.zlib'

100%[======================================>] 158,720,512  112M/s   in 1.4s

2013-09-17 16:14:42 (112 MB/s) - `/tmp/solaris.zlib' saved [158720512/158720512]

Downloading solarismisc.zlib
--2013-09-17 16:14:42--  http://192.168.56.113:5555/export/install/sparc-ai//solarismisc.zlib
Connecting to 192.168.56.113:5555... connected.
HTTP request sent, awaiting response... 200 OK
Length: 12876800 (12M) [text/plain]
Saving to: `/tmp/solarismisc.zlib'

100%[======================================>] 12,876,800  --.-K/s   in 0.1s

2013-09-17 16:14:42 (111 MB/s) - `/tmp/solarismisc.zlib' saved [12876800/12876800]

Downloading .image_info
--2013-09-17 16:14:42--  http://192.168.56.113:5555/export/install/sparc-ai//.image_info
Connecting to 192.168.56.113:5555... connected.
HTTP request sent, awaiting response... 200 OK
Length: 88 [text/plain]
Saving to: `/tmp/.image_info'

100%[======================================>] 88          --.-K/s   in 0s

2013-09-17 16:14:42 (7.47 MB/s) - `/tmp/.image_info' saved [88/88]

Done mounting image
Configuring devices.
Hostname: solaris
Service discovery phase initiated
Service name to look up: sparc-ai
Service discovery over multicast DNS failed
Service sparc-ai located at 192.168.56.113:5555 will be used
Service discovery finished successfully
Process of obtaining install manifest initiated
Using the install manifest obtained via service discovery

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.


solaris console login: 16:15:06    Using XML Manifest: /system/volatile/ai.xml
16:15:06    Using profile specification: /system/volatile/profile
16:15:06    Using service list file: /var/run/service_list
16:15:06    Starting installation.
16:15:06    0% Preparing for Installation
16:15:06    100% manifest-parser completed.
16:15:06    0% Preparing for Installation
16:15:07    1% Preparing for Installation
16:15:07    2% Preparing for Installation
16:15:07    3% Preparing for Installation
16:15:07    4% Preparing for Installation
16:15:11    7% target-discovery completed.
16:15:11    Selected Disk(s) : c0t5000CCA0160BCAB8d0
16:15:11    13% target-selection completed.
16:15:11    17% ai-configuration completed.
16:15:11    19% var-share-dataset completed.
16:15:23    21% target-instantiation completed.
16:15:24    21% Beginning IPS transfer
16:15:24    Creating IPS image
16:15:25     Startup: Retrieving catalog 'solaris' ... Done
16:15:26     Startup: Caching catalogs ... Done
16:15:26     Startup: Refreshing catalog 'solaris' ... Done
16:15:26    Installing packages from:
16:15:26        solaris
16:15:26            origin:  http://192.168.56.113/
16:15:27     Startup: Refreshing catalog 'solaris' ... Done
16:15:30    Planning: Solver setup ... Done
16:15:30    Planning: Running solver ... Done
16:15:30    Planning: Finding local manifests ... Done
16:15:30    Planning: Fetching manifests:   0/466  0% complete
16:15:38    Planning: Fetching manifests: 200/466  42% complete
16:15:43    Planning: Fetching manifests: 300/466  64% complete
16:15:48    Planning: Fetching manifests: 466/466  100% complete
16:15:57    Planning: Package planning ... Done
16:15:57    Planning: Merging actions ... Done
16:16:01    Planning: Checking for conflicting actions ... Done
16:16:03    Planning: Consolidating action changes ... Done
16:16:04    Planning: Evaluating mediators ... Done
16:16:06    Planning: Planning completed in 39.15 seconds
16:16:06    Please review the licenses for the following packages post-install:
16:16:06      runtime/java/jre-7                       (automatically accepted)
16:16:06      consolidation/osnet/osnet-incorporation  (automatically accepted,
16:16:06                                                not displayed)
16:16:06    Package licenses may be viewed using the command:
16:16:06      pkg info --license <pkg_fmri>
16:16:07    Download:     0/65063 items    0.0/607.0MB  0% complete
16:16:12    Download:  1103/65063 items    6.3/607.0MB  1% complete (1.3M/s)
16:16:17    Download:  2162/65063 items    9.0/607.0MB  1% complete (923k/s)
16:16:22    Download:  3164/65063 items   14.4/607.0MB  2% complete (830k/s)
16:16:27    Download:  4173/65063 items   26.2/607.0MB  4% complete (1.7M/s)
16:16:32    Download:  5123/65063 items   37.3/607.0MB  6% complete (2.3M/s)
16:16:37    Download:  6143/65063 items   64.3/607.0MB  10% complete (3.8M/s)
16:16:42    Download:  7042/65063 items   78.1/607.0MB  12% complete (4.0M/s)
16:16:47    Download:  7997/65063 items   86.5/607.0MB  14% complete (2.2M/s)
16:16:52    Download:  9333/65063 items   90.7/607.0MB  14% complete (1.3M/s)
16:16:57    Download: 10857/65063 items   92.1/607.0MB  15% complete (601k/s)
16:17:02    Download: 11907/65063 items  103.4/607.0MB  17% complete (1.2M/s)
16:17:07    Download: 12911/65063 items  107.6/607.0MB  17% complete (1.5M/s)
16:17:12    Download: 13903/65063 items  129.4/607.0MB  21% complete (2.6M/s)
16:17:17    Download: 14975/65063 items  140.9/607.0MB  23% complete (3.3M/s)
16:17:22    Download: 15934/65063 items  143.9/607.0MB  23% complete (1.6M/s)
16:17:27    Download: 16892/65063 items  147.5/607.0MB  24% complete (683k/s)
16:17:32    Download: 17856/65063 items  151.1/607.0MB  24% complete (740k/s)
16:17:37    Download: 18840/65063 items  154.8/607.0MB  25% complete (749k/s)
16:17:42    Download: 19802/65063 items  158.9/607.0MB  26% complete (785k/s)
16:17:47    Download: 20766/65063 items  162.8/607.0MB  26% complete (818k/s)
16:17:52    Download: 21810/65063 items  172.0/607.0MB  28% complete (1.3M/s)
16:17:57    Download: 22819/65063 items  211.7/607.0MB  34% complete (4.9M/s)
16:18:02    Download: 24125/65063 items  241.5/607.0MB  39% complete (6.8M/s)
16:18:07    Download: 24592/65063 items  308.3/607.0MB  50% complete (9.5M/s)
16:18:12    Download: 25439/65063 items  313.5/607.0MB  51% complete (7.3M/s)
16:18:17    Download: 26404/65063 items  320.4/607.0MB  52% complete (1.2M/s)
16:18:22    Download: 27344/65063 items  326.2/607.0MB  53% complete (1.3M/s)
16:18:27    Download: 28258/65063 items  331.2/607.0MB  54% complete (1.1M/s)
16:18:32    Download: 29189/65063 items  339.2/607.0MB  55% complete (1.3M/s)
16:18:37    Download: 30117/65063 items  350.3/607.0MB  57% complete (1.9M/s)
16:18:42    Download: 31021/65063 items  361.7/607.0MB  59% complete (2.2M/s)
16:18:47    Download: 32069/65063 items  365.3/607.0MB  60% complete (1.5M/s)
16:18:52    Download: 33211/65063 items  369.3/607.0MB  60% complete (785k/s)
16:18:57    Download: 34275/65063 items  374.8/607.0MB  61% complete (982k/s)
16:19:02    Download: 35236/65063 items  375.4/607.0MB  61% complete (628k/s)
16:19:07    Download: 36189/65063 items  378.3/607.0MB  62% complete (356k/s)
16:19:12    Download: 37312/65063 items  384.4/607.0MB  63% complete (889k/s)
16:19:17    Download: 38303/65063 items  396.3/607.0MB  65% complete (1.8M/s)
16:19:22    Download: 39515/65063 items  402.5/607.0MB  66% complete (1.8M/s)
16:19:27    Download: 40873/65063 items  410.2/607.0MB  67% complete (1.4M/s)
16:19:32    Download: 42056/65063 items  427.3/607.0MB  70% complete (2.5M/s)
16:19:37    Download: 43876/65063 items  433.3/607.0MB  71% complete (2.3M/s)
16:19:42    Download: 45650/65063 items  444.3/607.0MB  73% complete (1.7M/s)
16:19:47    Download: 46936/65063 items  450.6/607.0MB  74% complete (1.7M/s)
16:19:52    Download: 47915/65063 items  464.9/607.0MB  76% complete (2.1M/s)
16:19:57    Download: 48780/65063 items  476.8/607.0MB  78% complete (2.6M/s)
16:20:02    Download: 49844/65063 items  481.3/607.0MB  79% complete (1.6M/s)
16:20:07    Download: 50890/65063 items  500.7/607.0MB  82% complete (2.4M/s)
16:20:12    Download: 51970/65063 items  512.3/607.0MB  84% complete (3.0M/s)
16:20:17    Download: 52916/65063 items  542.5/607.0MB  89% complete (4.2M/s)
16:20:22    Download: 53901/65063 items  561.1/607.0MB  92% complete (5.2M/s)
16:20:27    Download: 54905/65063 items  567.2/607.0MB  93% complete (2.4M/s)
16:20:32    Download: 55881/65063 items  571.4/607.0MB  94% complete (1.1M/s)
16:20:37    Download: 57772/65063 items  572.9/607.0MB  94% complete (621k/s)
16:20:42    Download: 59803/65063 items  574.6/607.0MB  94% complete (319k/s)
16:20:47    Download: 60869/65063 items  584.5/607.0MB  96% complete (1.1M/s)
16:20:52    Download: 61847/65063 items  592.6/607.0MB  97% complete (1.8M/s)
16:20:57    Download: 62775/65063 items  597.9/607.0MB  98% complete (1.3M/s)
16:21:02    Download: 63975/65063 items  603.1/607.0MB  99% complete (1.0M/s)
16:21:07    Download: Completed 606.95 MB in 299.91 seconds (2.0M/s)
16:21:16     Actions:     1/89283 actions (Installing new actions)
16:21:21     Actions: 18097/89283 actions (Installing new actions)
16:21:26     Actions: 18959/89283 actions (Installing new actions)
16:21:31     Actions: 20246/89283 actions (Installing new actions)
16:21:36     Actions: 21636/89283 actions (Installing new actions)
16:21:41     Actions: 23234/89283 actions (Installing new actions)
16:21:46     Actions: 24933/89283 actions (Installing new actions)
16:21:51     Actions: 26330/89283 actions (Installing new actions)
16:21:56     Actions: 27502/89283 actions (Installing new actions)
16:22:02     Actions: 28071/89283 actions (Installing new actions)
16:22:07     Actions: 29369/89283 actions (Installing new actions)
16:22:12     Actions: 31077/89283 actions (Installing new actions)
16:22:17     Actions: 33379/89283 actions (Installing new actions)
16:22:22     Actions: 34826/89283 actions (Installing new actions)
16:22:27     Actions: 37249/89283 actions (Installing new actions)
16:22:32     Actions: 40289/89283 actions (Installing new actions)
16:22:37     Actions: 43352/89283 actions (Installing new actions)
16:22:42     Actions: 45159/89283 actions (Installing new actions)
16:22:47     Actions: 47228/89283 actions (Installing new actions)
16:22:52     Actions: 49091/89283 actions (Installing new actions)
16:22:57     Actions: 51534/89283 actions (Installing new actions)
16:23:02     Actions: 54488/89283 actions (Installing new actions)
16:23:07     Actions: 56468/89283 actions (Installing new actions)
16:23:12     Actions: 58642/89283 actions (Installing new actions)
16:23:17     Actions: 60416/89283 actions (Installing new actions)
16:23:22     Actions: 62697/89283 actions (Installing new actions)
16:23:28     Actions: 63592/89283 actions (Installing new actions)
16:23:33     Actions: 64844/89283 actions (Installing new actions)
16:23:38     Actions: 66427/89283 actions (Installing new actions)
16:23:43     Actions: 68070/89283 actions (Installing new actions)
16:23:48     Actions: 70278/89283 actions (Installing new actions)
16:23:53     Actions: 74005/89283 actions (Installing new actions)
16:23:58     Actions: 75598/89283 actions (Installing new actions)
16:24:03     Actions: 77782/89283 actions (Installing new actions)
16:24:08     Actions: 79933/89283 actions (Installing new actions)
16:24:13     Actions: 85681/89283 actions (Installing new actions)
16:24:18     Actions: 87761/89283 actions (Installing new actions)
16:24:23     Actions: 88283/89283 actions (Installing new actions)
16:24:24     Actions: Completed 89283 actions in 187.40 seconds.
16:24:24    Finalize: Updating package state database ...  Done
16:24:25    Finalize: Updating image state ...  Done
16:24:36    Finalize: Creating fast lookup database ...  Done
16:24:42    Version mismatch:
16:24:42    Installer build version: pkg://solaris/entire@0.5.11,5.11-0.175.1.10.0.3.0:20130720T004832Z
16:24:42    Target build version: pkg://solaris/entire@0.5.11,5.11-0.175.1.11.0.4.0:20130905T161253Z
16:24:42    23% generated-transfer-1304-1 completed.
16:24:42    25% initialize-smf completed.
16:24:43    Boot loader type SPARC ZFS Boot Block does not support the                                 'timeout' property. Ignoring.
16:24:43    Installing boot loader to devices: ['/dev/rdsk/c0t5000CCA0160BCAB8d0s0']
16:24:43    Setting boot devices in firmware
16:24:44    Setting openprom boot-device
16:24:45    35% boot-configuration completed.
16:24:45    37% update-dump-adm completed.
16:24:45    40% setup-swap completed.
16:24:46    42% device-config completed.
16:24:47    44% apply-sysconfig completed.
16:24:47    46% transfer-zpool-cache completed.
16:24:52    87% boot-archive completed.
16:25:10    89% transfer-ai-files completed.
16:25:11    99% create-snapshot completed.
16:25:11    Automated Installation succeeded.
16:25:11    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/log/install/install_log
solaris console login: root
Password:
Sep 20 14:01:03 solaris login: ROOT LOGIN /dev/console
Oracle Corporation      SunOS 5.11      11.1    July 2013
root@solaris:~#
root@solaris:~#
root@solaris:~# reboot
Sep 20 14:01:07 solaris reboot: initiated by root on /dev/console
syncing file systems... done
rebooting...
Resetting...


SC profile successfully generated.
Exiting System Configuration Tool. Log is available at:
/system/volatile/sysconfig/sysconfig.log.713
##........##### reboot

DONE ;)

This blog helped a lot: [1]

Update the Repo

# pkgrecv -s https://pkg.oracle.com/solaris/support \
> -d /export/repo/sol11/repo/ \
> --key /var/pkg/ssl/Oracle_Solaris_11_Support.key.pem --cert /var/pkg/ssl/Oracle_Solaris_11_Support.certificate.pem solaris '*'
Processing packages for publisher solaris ...
Retrieving and evaluating 4547 package(s)...
PROCESS                                         ITEMS    GET (MB)   SEND (MB)
Completed                                       85/85 652.0/652.0   1597/1597
# pkgrepo -s /export/repo/sol11/repo refresh
Initiating repository refresh.

Client Update

And you will see the updates on your clients:

root@ldom01:~# pkg publisher
PUBLISHER                   TYPE     STATUS P LOCATION
solaris                     origin   online F http://192.168.56.113/
root@ldom01:~#
root@ldom01:~# pkg list -af entire
NAME (PUBLISHER)                                  VERSION                    IFO
entire                                            0.5.11-0.175.1.12.0.5.0    ---
entire                                            0.5.11-0.175.1.11.0.4.0    i--
entire                                            0.5.11-0.175.1.0.0.24.2    ---
root@ldom01:~#
root@ldom01:~# pkg update --be-name=s11.1.12.5.0
            Packages to update:  38
       Create boot environment: Yes
Create backup boot environment:  No

DOWNLOAD                                PKGS         FILES    XFER (MB)   SPEED
Completed                              38/38     2154/2154  162.6/162.6 12.2M/s

PHASE                                          ITEMS
Removing old actions                         125/125
Installing new actions                       143/143
Updating modified actions                  4210/4210
Updating package state database                 Done
Updating package cache                         38/38
Updating image state                            Done
Creating fast lookup database                   Done

A clone of solaris exists and has been updated and activated.
On the next boot the Boot Environment s11.1.12.5.0 will be
mounted on '/'.  Reboot when ready to switch to this updated BE.


---------------------------------------------------------------------------
NOTE: Please review release notes posted at:

https://support.oracle.com/epmos/faces/DocContentDisplay?id=1501435.1
---------------------------------------------------------------------------

root@ldom01:~# init 6

Use Local Repo

If you want to set other server to use your "local" IPS repo, you need to change their publisher:

# pkg set-publisher -G '*' -M '*' -g http://192.168.56.113 solaris

Adding another Repo

There are more repositories than the "solaris" one. In my case, I also want to provide a cluster repository on the same machine.

root@zsol01:~# ls /downloads
osc-4_1-ga-repo-full.iso  sol-11_1-repo-full.iso
root@zsol01:~# mount -F hsfs /downloads/osc-4_1-ga-repo-full.iso /mnt
root@zsol01:~# mkdir /export/repo/sc4
root@zsol01:~# rsync -a /mnt/repo /export/repo/sc4
root@zsol01:~# pkgrepo -s /export/repo/sc4/repo/ refresh
root@zsol01:~# pkgrepo get -s /export/repo/sc4/repo/
SECTION    PROPERTY                     VALUE
publisher  prefix                       ha-cluster
repository check-certificate-revocation False
repository description                  This\ repository\ serves\ a\ copy\ of\ the\ Oracle\ Solaris\ Cluster\ 4.1\ Package\ Repository.
repository name                         Oracle\ Solaris\ Cluster\ 4.1\ Package\ Repository
repository signature-required-names     ()
repository trust-anchor-directory       /etc/certs/CA/
repository version                      4
root@zsol01:~#
root@zsol01:~# svccfg -s pkg/server add ha-cluster
root@zsol01:~# svccfg -s pkg/server:ha-cluster addpg pkg application
root@zsol01:~# svccfg -s pkg/server:ha-cluster setprop pkg/port=8080
root@zsol01:~# svccfg -s pkg/server:ha-cluster setprop pkg/inst_root=/export/repo/sc4/repo
root@zsol01:~# svccfg -s pkg/server list
:properties
default
ha-cluster
root@zsol01:~#
root@zsol01:~# svccfg -s pkg/server:ha-cluster addpg general framework
root@zsol01:~# svccfg -s pkg/server:ha-cluster addpropvalue general/enabled boolean: true
root@zsol01:~#
root@zsol01:~#
root@zsol01:~# svcadm refresh application/pkg/server:ha-cluster
root@zsol01:~# svcadm enable application/pkg/server:ha-cluster
root@zsol01:~# netstat -an | grep 8080
      *.8080               *.*                0      0 128000      0 LISTEN
127.0.0.1.48122      127.0.0.1.8080       130880      0 139264      0 TIME_WAIT
root@zsol01:~#

and on the client

root@clnode01:~# pkg set-publisher -G '*' -M '*' -g http://192.168.56.101:8080/ ha-cluster
root@clnode01:~# pkg publisher
PUBLISHER                   TYPE     STATUS P LOCATION
solaris                     origin   online F http://192.168.56.101/
ha-cluster                  origin   online F http://192.168.56.101:8080/
root@clnode01:~#

Updates would be fine aswell

root@zsol01:~# pkgrecv -s https://pkg.oracle.com/ha-cluster/support \
> -d /export/repo/sc4/repo/ \
> --key /var/pkg/ssl/Oracle_Solaris_Cluster_4_Support.key.pem \
> --cert /var/pkg/ssl/Oracle_Solaris_Cluster_4_Support.certificate.pem \
> ha-cluster '*'
Processing packages for publisher ha-cluster ...
Retrieving and evaluating 92 package(s)...
PROCESS                                         ITEMS    GET (MB)   SEND (MB)
Completed                                       51/51   53.7/53.7 185.3/185.3

root@zsol01:~#
root@zsol01:~# pkgrepo -s /export/repo/sc4/repo refresh
Initiating repository refresh.
root@zsol01:~#

on the client, you should be able to see the new content

root@clnode02:~#
root@clnode02:~# pkg unset-publisher ha-cluster
root@clnode02:~#  pkg set-publisher -G '*' -M '*' -g http://192.168.56.101:8080/ ha-cluster
root@clnode02:~#  pkg list -af ha-cluster/system/core
NAME (PUBLISHER)                                  VERSION                    IFO
ha-cluster/system/core (ha-cluster)               4.1-7.1                    ---
ha-cluster/system/core (ha-cluster)               4.1-0.18.2                 ---
root@clnode02:~#


another quick run

# pkg install install/installadm
# installadm create-service -n sap-ai -a sparc -d /ai/install
  0% : Service svc:/network/dns/multicast:default is not online.  Installation services will not be advertised via multicast DNS.
  0% : Creating service from: pkg:/install-image/solaris-auto-install
  0% : Using publisher(s):
  0% :     solarisstudio: http://server/solarisstudio/
  0% :     solaris: http://10.11.12.13:1250/
  0% :     ha-cluster: http://server/ha-cluster/
  5% : Refreshing Publisher(s)
11% : Startup Phase
15% : Planning Phase
61% : Download Phase
90% : Actions Phase
91% : Finalize Phase
91% : Creating sparc service: sap-ai
91% : Image path: /ai/install/sparc
91% : Setting "solaris" publisher URL in default manifest to:
91% :  http://10.11.12.13:1250/
91% : DHCP is not being managed by install server.
91% : SMF Service 'svc:/system/install/server:default' will be enabled
91% : Creating default-sparc alias
91% : Setting "solaris" publisher URL in default manifest to:
91% :  http://10.11.12.13:1250/
91% : DHCP is not being managed by install server.
91% :  No local DHCP configuration found. This service is the default
91% :  alias for all SPARC clients. If not already in place, the following should
91% :  be added to the DHCP configuration:
91% : Boot file: http://10.11.12.13:5555/cgi-bin/wanboot-cgi
91% : SMF Service 'svc:/system/install/server:default' will be enabled
100% : Created Service: 'sap-ai'
100% : Refreshing SMF service svc:/system/install/server:default
100% : Enabling SMF service svc:/system/install/server:default
100% : Warning: mDNS registry of service 'sap-ai' could not be verified.
100% : Warning: mDNS registry of service 'default-sparc' could not be verified.
# installadm list
Service Name  Status Arch  Type Secure Alias Aliases Clients Profiles Manifests
------------  ------ ----  ---- ------ ----- ------- ------- -------- ---------
default-sparc on     sparc pkg  no     yes   0       0       0        1
sap-ai        on     sparc pkg  no     no    1       0       0        1
#
# installadm export -n sap-ai -m orig_default -o orig_default.xml
# cp orig_default.xml sap-ai.xml
# vi sap-ai.xml
# installadm create-manifest -n sap-ai -d -f /ai/config/manifest/sap-ai.xml
# installadm list -m
Service Name  Manifest Name Type    Status   Criteria
------------  ------------- ----    ------   --------
default-sparc orig_default  derived default  none
sap-ai        sap-ai.xml    derived default  none
              orig_default  derived inactive none
# vi sap-ai.xml
# installadm update-manifest -n sap-ai -f /ai/config/manifest/sap-ai.xml
# sysconfig create-profile -o sap-ai
# installadm create-profile -n sap-ai -f /ai/config/profiles/sap-ai/server04.xml  -c mac=00:14:4f:fb:b9:6a
# installadm create-client -e 12:14:46:FB:89:64 -n sap-ai
# installadm create-profile -n sap-ai -f /ai/config/profiles/sap-ai/server.xml -c ipv4=10.11.12.32
# installadm create-client -e 90:e2:ba:9a:2a:6a -n sap-ai