I’d like to choose creating a local repository (IPS) as the first step of AI customization. Creating a local repository is not a MUST but it largely speeds up install service creation and installation itself. It makes us happier indeed.
Let’s start to create a local repository with web access (http) at port 90. There are several ways to go,
A. If your AI server can NOT directly access internet
1. From a computer that has internet access, go to Solaris 11 download page
2. Click Create a Local Repository to step in the page
3. Click “Accept License Agreement”
4. Click Oracle Solaris 11.2 Repository (Part 1) to download sol-11_2-repo-1of4.zip. you will need to a valid login for this.
5. Proceed to download the other three parts by clicking
Oracle Solaris 11.2 Repository (Part 2)
Oracle Solaris 11.2 Repository (Part 3)
Oracle Solaris 11.2 Repository (Part 4)
6. Move all files to a directory of AI server, e.g., /root, and then combine the files,
# cp sol-11_2-repo-1of4.zip sol-11_2-repo.zip
# cat sol-11_2-repo-2of4.zip >> sol-11_2-repo.zip
# cat sol-11_2-repo-3of4.zip >> sol-11_2-repo.zip
# cat sol-11_2-repo-4of4.zip >> sol-11_2-repo.zip
7. Create a local repository,
# mkdir -p /work/jumpstart/os-image/Install-repo-11
# cd /work/jumpstart/os-image/Install-repo-11
# unzip /root/sol-11_2-repo.zip
# svccfg -s pkg/server:default setprop pkg/inst_root=/work/jumpstart/os-image/Install-repo-11
# svccfg -s pkg/server:default setprop pkg/port=90
# svccfg -s pkg/server:default setprop general/enabled = boolean: true
# svcadm restart application/pkg/server:default
8. Verify that a pkg server has been setup by accessing http://<ip of AI server>:90 (e.g., http://192.168.1.115:90 )
9. If later there’s a new Solaris version with new repository file, just unzip it to the same directory. Different versions of repository can co-exist in the same directory.
B. If your AI server can directly access internet
1. Create local repository,
# pkgrepo create /work/jumpstart/os-image/Install-repo-11
# pkgrepo set -s /work/jumpstart/os-image/Install-repo-11 publisher/prefix=solaris
# svccfg -s pkg/server:default setprop pkg/inst_root=/work/jumpstart/os-image/Install-repo-11
# svccfg -s pkg/server:default setprop pkg/port=90
# svccfg -s pkg/server:default setprop general/enabled = boolean: true
# svcadm restart application/pkg/server:default
2. If you are not a contract customer you can only use the default publisher http://pkg.oracle.com/solaris/release to retrieve few baselines of packages,
# pkgrecv -s http://pkg.oracle.com/solaris/release -d /work/jumpstart/os-image/Install-repo-11 ‘*’
or retrieve all the few baselines the default publisher provides, so that you can install other versions of Solaris,
# pkgrecv -m all-timestamps -s http://pkg.oracle.com/solaris/release -d /work/jumpstart/os-image/Install-repo-11 ‘*’
3. If you are a contract customer, Congratulations, you can download full repository from Oracle’s supported repository, but firstly, you need to download a certificate from Oracle
* Go to https://pkg-register.oracle.com/ , click Request Certificates
* Login with your Oracle account and password
* Check the radio of “Oracle Solaris 11 Support”
* Accept the “MY ORACLE SUPPORT TERMS OF USE”
* Download key and save it as Oracle_Solaris_11_Support.key.pem
* Download certificate and save it as Oracle_Solaris_11_Support.certificate.pem
* Move these two files to AI server and put them to the directory /var/pkg/ssl
* Run the command to get latest version of packages,
# pkgrecv –key /var/pkg/ssl/Certificate_of_Solaris_11/Oracle_Solaris_11_Support.key.pem \
–cert /var/pkg/ssl/Certificate_of_Solaris_11/Oracle_Solaris_11_Support.certificate.pem \
-s https://pkg.oracle.com/solaris/support -d /work/jumpstart/os-image/Install-repo-11 ‘*’
or all versions of packages,
# pkgrecv -m all-timestamps –key /var/pkg/ssl/Certificate_of_Solaris_11/Oracle_Solaris_11_Support.key.pem \
–cert /var/pkg/ssl/Certificate_of_Solaris_11/Oracle_Solaris_11_Support.certificate.pem \
-s https://pkg.oracle.com/solaris/support -d /work/jumpstart/os-image/Install-repo-11 ‘*’
4. Restart pkg server by
# svcadm restart pkg/server:default
5. Verify your pkg server by accessing http://<ip of AI server>:90 (e.g., http://192.168.1.115:90 )