Anda di halaman 1dari 208

Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

ble
e r a
a nsf
o n -tr
a n
a s
h eฺ
e )
n e tฺa Guid
t e sฺ ent
m ira Stud
@ e his
a i
v se t
i q
dฺ to u
h
i ( sha ense
Qav lic
i d
ah
Sh
Transition to Oracle Solaris 11
Activity Guide
D73488GC30
Edition 3.0 | November 2014 | D89086

Learn more from Oracle University at oracle.com/education/


Author Copyright © 2014, Oracle and/or its affiliates. All rights reserved.

Venu Poddar Disclaimer

This document contains proprietary information and is protected by copyright and other
Technical Contributors intellectual property laws. You may copy and print this document solely for your own
and Reviewers use in an Oracle training course. The document may not be modified or altered in any
way. Except where your use constitutes "fair use" under copyright law, you may not
Juanita Heieck use, share, download, upload, copy, print, display, perform, reproduce, publish, license,
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

post, transmit, or distribute this document in whole or in part without the express
Kathy Slattery authorization of Oracle.
Alta Estad
The information contained in this document is subject to change without notice. If you
Alissa Bader Clark find any problems in the document, please report them in writing to: Oracle University,
Sharon Veach 500 Oracle Parkway, Redwood Shores, California 94065 USA. This document is not
warranted to be error-free.

Graphic Designer Restricted Rights Notice

Maheshwari Krishnamurthy If this documentation is delivered to the United States Government or anyone using the
documentation on behalf of the United States Government, the following notice is
ble
applicable:
e r a
nsf
Editors
Aju Kumar U.S. GOVERNMENT RIGHTS
-tr a
The U.S. Government’s rights to use, modify, reproduce, release, perform, display, or
Anwesha Ray o n
disclose these training materials are restricted by the terms of the applicable Oracle
n
Raj Kumar
s a
license agreement and/or the applicable U.S. Government contract.

a
h eฺ
Trademark Notice
)
Publishers e
tฺa Guid
Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names
n e
Sumesh Koshy
t e sฺ ent may be trademarks of their respective owners.

Syed Ali
m ira Stud
Srividya Rameshkumar
@ e his
a i
v se t
i q
dฺ to u
h
i ( sha ense
Q av lic
a h id
Sh
Table of Contents
Practices for Lesson 1: Course Introduction.................................................................................................1-1
Practices for Lesson 1: Overview ...................................................................................................................1-2
Practice 1-1: Getting Familiar with Your Practice Environment ......................................................................1-3
Practices for Lesson 2: Introducing the Oracle Solaris 11 New Features and Enhancements .................2-1
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

Practices for Lesson 2....................................................................................................................................2-2


Practices for Lesson 3: Managing Software Packages in Oracle Solaris 11 ..............................................3-1
Practices for Lesson 3: Overview ...................................................................................................................3-2
Practice 3-1: Configuring a Local IPS Package Repository ...........................................................................3-3
Practice 3-2: Configuring a Network Client to Access the IPS Server ............................................................3-7
Practice 3-3: Updating Oracle Solaris 11 to Oracle Solaris 11.2 OS (demonstration) ....................................3-10
Practice 3-4: Managing Software Packages ..................................................................................................3-11

bl
Practice 3-5: Managing the Boot Environments .............................................................................................3-25 e
r a
Practice 3-6: Testing Your Skills and Knowledge ...........................................................................................3-30
fe
Practices for Lesson 4: Installing the Oracle Solaris 11 Operating System ...............................................4-1 n s
n - tra
Practices for Lesson 4: Overview ...................................................................................................................4-2
no
Practice 4-1: Installing the Oracle Solaris 11 OS by Using the Text Installer .................................................4-3
a
h s
Practice 4-2: Installing the Oracle Solaris 11 OS by Using the Live Media Installer .......................................4-6
a.......................................4-10
Practice 4-3: Installing the Oracle Solaris 11 OS by Using the Automated Installer
a e ) d e ฺ

et t Gu i
Practice 4-4: Configuring Oracle Solaris 11 Instances ...................................................................................4-19
ฺ n
Practice 4-5: Customizing the Automated Installation ....................................................................................4-26
s Unified eArchive n Through Automated Installer 4-35
Practice 4-6: Deploying a System by Using an Oracle Solaris
a t e d
Practice 4-7: Testing Your Skills and Knowledge ir Stu
m...........................................................................................4-44
Practices for Lesson 5: Oracle Solarisi11 @ e h is
Network tAdministration Enhancements ..................................5-1
a v e
Practice 5-1: Managing h dฺqNetwork
Practices for Lesson 5: Overview
i
Reactive t o us
...................................................................................................................5-2
Configuration ...............................................................................5-3

( s hathe Capabilities
Practice 5-2: Exploring
n se of the ipadm Utility ...........................................................................5-12
a i
v Configuring
Practice 5-3: l e
icNetwork Virtualization Features .............................................................................5-16
i d Q
Practice 5-4: Configuring Elastic Virtual Switch (EVS) ...................................................................................5-31
a h Practice 5-5: Configuring Link Aggregation ....................................................................................................5-32
Sh Practice 5-6: Configuring IPMP ......................................................................................................................5-34
Practice 5-7: Configuring a Network Bridge ...................................................................................................5-49
Practice 5-8: Monitoring the Network .............................................................................................................5-52
Practice 5-9: Test Your Skills and Knowledge ...............................................................................................5-60
Practices for Lesson 6: Administering Oracle Solaris 11 Zones .................................................................6-1
Practices for Lesson 6: Overview ...................................................................................................................6-2
Practice 6-1: Migrating an Oracle Solaris 10 Zone to Oracle Solaris 11 ........................................................6-3
Practice 6-2: Migrating an Oracle Solaris 10 Global Zone to Oracle Solaris 11 .............................................6-10
Practice 6-3: Configuring a Kernel Zone (demonstration) ..............................................................................6-16
Practice 6-4: Cloning and Deploying a Kernel Zone by Using an Unified Archive (Demonstration) ...............6-17
Practice 6-5: Monitoring Zone Resource Utilization .......................................................................................6-18
Practices for Lesson 7: Oracle Solaris 11 ZFS Enhancements....................................................................7-1
Practices for Lesson 7: Overview ...................................................................................................................7-2
Practice 7-1: Migrating a ZFS File System .....................................................................................................7-3
Practice 7-2: Splitting a Mirrored ZFS Storage Pool.......................................................................................7-8
Practice 7-3: Identifying ZFS Snapshot Differences .......................................................................................7-11
Practice 7-4: Configuring ZFS Deduplication .................................................................................................7-12
Copyright © 2014. Oracle and/or its affiliates. All rights reserved.

Transition to Oracle Solaris 11 Table of Contents


i
Practice 7-5: Configuring a COMSTAR iSCSI Target ....................................................................................7-14
Practice 7-6: Test Your Skills and Knowledge ...............................................................................................7-19
Practices for Lesson 8: Oracle Solaris 11 Security Enhancements ............................................................8-1
Practices for Lesson 8: Overview ...................................................................................................................8-2
Practice 8-1: Managing Encryption Keys .......................................................................................................8-3
Practice 8-2: Configuring a ZFS-Encrypted Storage Pool ..............................................................................8-5
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

Practice 8-3: Configuring a ZFS-Encrypted File System ................................................................................8-8


Practice 8-4: Configuring Read-Only Zones ...................................................................................................8-9
Practice 8-5: Using BART to Audit System Files ............................................................................................8-14

bl e
e r a
a nsf
o n -tr
a n
a s
h eฺ
e )
n e tฺa Guid
t e sฺ ent
m ira Stud
@ e his
a i
v se t
i q
dฺ to u
h
i ( sha ense
Q av lic
i d
ah
Sh

Copyright © 2014. Oracle and/or its affiliates. All rights reserved.

Transition to Oracle Solaris 11 Table of Contents


ii
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

ble
e r a
a nsf
o n -tr
a n
a s
hLesson
Practicesefor ) e ฺ 1:
Course ฺ a i d
et Introduction
u
ฺ n
s 1 en t G
t e
m ir Stud
aChapter

@ e his
a i
v se t
i q
dฺ to u
h
i ( sha ense
Q av lic
i d
ah
Sh

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 1: Course Introduction


Chapter 1 - Page 1
Practices for Lesson 1: Overview
Practices Overview
This practice introduces you to the infrastructure that you will use to perform the practices.
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

ble
e r a
a nsf
o n -tr
a n
a s
h eฺ
e )
n e tฺa Guid
t e sฺ ent
m ira Stud
@ e his
a i
v se t
i q
dฺ to u
h
i ( sha ense
Q av lic
i d
ah
Sh

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 1: Course Introduction


Chapter 1 - Page 2
Practice 1-1: Getting Familiar with Your Practice Environment
Overview
This practice provides an introduction to your course assignment and the infrastructure that you
will use to perform the practices. The practices in this assignment are mapped to the respective
lessons.
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

Practices Infrastructure
This section presents the architectural overview of the infrastructure required for the practices.
Your practice environment is based on the Oracle VM VirtualBox virtualization software. The
environment consists of multiple virtual machines (VMs), which are configured on a private
internal network (192.168.0). Each VM can communicate with other VMs on the same private
network, as shown in the following diagram.
Note: Internet access is not configured for these VMs.
ble
e r a
a nsf
o n -tr
a n
a s
h eฺ
e )
n e tฺa Guid
t e sฺ ent
m ira Stud
@ e his
a i
v se t
i q
dฺ to u
h
i ( sha ense
Q av lic
i d
ah
Sh

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 1: Course Introduction


Chapter 1 - Page 3
The following image shows the configured VirtualBox VMs:
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

ble
e r a
a nsf
o n -tr
a n
a
h eฺ s
e )
n e tฺa Guid
t e sฺ ent
m ira Stud
@ e his
a i
v se t
i q
dฺ to u
a h
VirtualBoxv i
environment nse of the following VMs:
(sh iceconsists
Q a of the VMl
h i d Name Description
a
Sh This VM is installed with Oracle Solaris 11.2 Text Install for x86.
This VM provides NFS and DNS services. You can perform the
following tasks by using this VM:
S11-Server1 • Configure IPS and AI services.
• Use S11-Server1 as target for migrating a zone.
• Perform network, ZFS, and security enhancements
practices.
This VM is installed with Oracle Solaris 11.2 Live Media for x86 and
used as the IPS client machine. You will use this VM to verify
S11-Desktop
network configurations and configure this system as an iSCSI
initiator.
This VM is installed with Oracle Solaris 10 Update 11 for x86. It is
S10-Server1
used as a source for zone’s migration practice.
This VM is used to install Oracle Solaris 11.2 Text Install OS for
Text Install
x86.

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 1: Course Introduction


Chapter 1 - Page 4
Name of the VM Description
This VM is used to install Oracle Solaris 11.2 Live Media OS for
LiveCD Install
x86.
This VM is used as the Automatic Installer (AI) network client
S11-Client1
machine.
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

S11-Client2 This VM is used as the AI network client machine.


S11-Client3 This VM is used as the AI network client machine.
S11-Client4 This VM is used as the AI network client machine.
This VM is used in an optional practice to check the skill and
S11-Client5
knowledge of the user.
The VMs are further configured to communicate with the host machine through the shared
directory. The shared directories are as listed in the following table: ble
e r a
Resource Name Location Description
a nsf
Host share directory /opt/ora Various course files o n -tr
Demo files a n
Contains the demonstration file used
/opt/ora/demo
a
h eฺs in the course
e )
OVA files /opt/ora/images Contains
e tฺaa backup
u iofdall virtual
ฺ n
smachines n G
t in the course
used
t e e
m ira Ifwhile
S
any
t udperforming
virtual machine gets corrupted

@ e his delete the virtual amachine


practice, you can

a v i e t the respective VM from thisand import

dฺq to us
folder.
a h i But, after reimporting, you will have
sh ens e to redo previous practices to bring
i (
Q av lic the VM to the required start state of
the practice where the VM got
h i d corrupted.
a
Sh ISO files /opt/ora/iso Contains the S11.2 GA ISO files
required to perform practices

The details of the shared directories can be verified in the respective VM settings. Each VM has
an entry in the /etc/vfstab file, which stores information about the mount points and related
directories on the system.

User Credentials

VMs Credentials
• Username: oracle
• Password: oracle1
S11-Server1 Note: As the oracle user, use su to switch to the primary
administrator (root) role. The password is oracle1. The
root is configured as a role by default in Oracle Solaris 11.
The first username created on the system during the

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 1: Course Introduction


Chapter 1 - Page 5
installation is the initial privileged user who can assume the
primary administrator role.
• Username: oracle
S11-Desktop • Password: oracle1
Note: The root role password is oracle1.
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

• Username: root
S10-Server1
• Password: cangetin

Tasks
Perform the following steps to get familiar with your practice environment:
1. On your host system, start the Oracle VM VirtualBox Manager by double-clicking its icon on
your desktop.
ble
e r a
tra nsf
n -
2. In the Oracle VM VirtualBox Manager window, double-click the S11-Server1
a no VM to start it.
h a s button on the menu
Alternatively, you can select the S11-Server1 VM and click the Start
bar.
a e ) deฺ
e t ฺ u i
n
sฺ ent G
t e
m ira Stud
@ e his
a i
v se t
i q
dฺ to u
h
i ( sha ense
Q av lic
a h id
Sh

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 1: Course Introduction


Chapter 1 - Page 6
3. Log in to the S11-Server1 VM with the user ID oracle and password oracle1.
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

ble
e r a
a nsf
o n -tr
a n
a s
h eฺ
e )
n e tฺa Guid
t e sฺ ent
m ira Stud
@ e his
a i
v se t
i q
dฺ to u
h
i ( sha ense
Q av lic
i d
ah
Sh

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 1: Course Introduction


Chapter 1 - Page 7
4. Close the S11-Server1 VM by performing the following steps:
a. Click the close (X) button, which is located on the top-right corner of the VM’s window.
b. Select Power off the machine option in the Close Virtual Machine dialog box that
appears on closing a VM, and then click OK.
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

ble
e r a
a nsf
o n -tr
a n
a
h eฺ s
e )
n e tฺa Guid
t e sฺ ent
m ira Stud
@ e his
a i
v se t
i q
dฺ to u
h
ha nsVMe by double-clicking it in the VirtualBox Manager.
5. Open the S11-Desktop
( s
v
6. After the
a l i ce VM is powered ON, log in with the user ID oracle and password
i S11-Desktop
i d Q
oracle1. The GUI-based desktop is displayed.

h ah
S

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 1: Course Introduction


Chapter 1 - Page 8
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

ble
e r a
a nsf
o n -tr
a n
a
h eฺs
e )
n e tฺa Guid
7. Close the S11-Desktop VM.
t e sฺ ent
ira by S
8. Verify that no VMs are running at this time,
m t ud the status of the VMs in Oracle VM
viewing
VirtualBox Manager window.
@ e his
9. Do not open other VMs atathis i t
v pointsinetime.
q
idฺ to u
Best Practiceshah
( e n se steps in the practices with care and attention for a smooth
sthe instructional

v i
Follow
aexperience. lic
Q
id • Ensure that no more than three VMs are running at a time, while performing the
a h
Sh practices.
• Shut down the VMs when not required for a specific practice, to release system
resources for the primary VM in use.
• Halt the zones when not required to release system resources.
• When launching a VM for the first time, if you see the Select start-up disk appear,
click the Cancel button to continue.

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 1: Course Introduction


Chapter 1 - Page 9
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

ble
e r a
a nsf
o n -tr
a n
a s
h eฺ
e )
n e tฺa Guid
t e sฺ ent
m ira Stud
@ e his
a i
v se t
i q
dฺ to u
h
i ( sha ense
Q av lic
i d
ah
Sh

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 1: Course Introduction


Chapter 1 - Page 10
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

ble
e r a
a nsf
o n -tr
a n
a s
hLesson
Practicesefor ) e ฺ 2:
Introducing ฺ a
et t Gthe i d
u Oracle
s ฺ n n New Features and
aSolaris
t e d 11
e
e mir Enhancements
i s S tu
v i @ e thChapter
ฺ q a us 2

a h id to
sh ens e
i (
Q av lic
i d
ah
Sh

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 2: Introducing the Oracle Solaris 11 New Features and Enhancements
Chapter 2 - Page 1
Practices for Lesson 2
Practices Overview
There is no practice for Lesson 2.
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

ble
e r a
a nsf
o n -tr
a n
a s
h eฺ
e )
n e tฺa Guid
t e sฺ ent
m ira Stud
@ e his
a i
v se t
i q
dฺ to u
h
i ( sha ense
Q av lic
i d
ah
Sh

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 2: Introducing the Oracle Solaris 11 New Features and Enhancements
Chapter 2 - Page 2
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

ble
e r a
a nsf
o n -tr
a n
a s
hLesson
Practicesefor ) e ฺ 3:
Managing ฺ a
et tSoftware
u i d Packages
ฺ n
sOracle G
nSolaris 11
ain
t e d e
e mir Chapter
s S tu3
v i @ e thi
i d ฺqa o us
a h e t
h
(s icen s
a v i l
i d Q
ah
Sh

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 3: Managing Software Packages in Oracle Solaris 11


Chapter 3 - Page 1
Practices for Lesson 3: Overview
Practices Overview
This practice introduces you to the Image Packaging System (IPS) and provides a guided,
hands-on experience with managing software packages by using IPS. While performing the
practices, you apply package management best practices applicable to the Oracle Solaris 11
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

operating system.
The key areas explored in the practices are:
• Configuring a local IPS package repository
• Configuring a network client to access the IPS server
• Updating Oracle Solaris 11 to Oracle Solaris 11.2 OS (demonstration)
• Managing software packages
• Managing the boot environments ble
e r a
a nsf
o n -tr
a n
a s
h eฺ
e )
n e tฺa Guid
t e sฺ ent
m ira Stud
@ e his
a i
v se t
i q
dฺ to u
h
i ( sha ense
Q av lic
i d
ah
Sh

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 3: Managing Software Packages in Oracle Solaris 11


Chapter 3 - Page 2
Practice 3-1: Configuring a Local IPS Package Repository
Overview
IPS manages software in units of packages. An IPS package is a collection of directories, files,
links, drivers, dependencies, groups, users, and license information in a defined format. This
collection represents the installable objects of a package. Packages have attributes such as a
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

package name and description. When you install or upgrade to the Oracle Solaris 11 release,
the system initially has one publisher configured: the solaris publisher. The default publisher has
the http://pkg.oracle.com/solaris/release/ repository origin.
You can create your own local package repository. Having a local package repository is
necessary when your network clients do not have access to the web-based default repository.
Other reasons you might want to have a local copy of a package repository include:
• Performance: Having a local package repository allows clients to access packages at
local network speeds.
ble
• Security: You might not want your client systems to have access to the Internet. e r a
• Replication: You want to ensure that an installation that you perform next year is a nsf
exactly the same as the installation you perform today.
o n -tr
In your practice environment, your virtual machine client cannot access the default publisher for
a n
a s
software update services. So, your first task will be to create your own local package repository
h eฺ
)
and make it the default publisher so that the network client can be serviced by IPS.
e
n e tฺa Guid
Task
t e sฺto configure
e n t
Perform the following steps on the S11-Server1
i r a tud
VM a local IPS package repository:
1. Verify that no VMs are running at e mpointiofs time.
this S
2. Start the S11-Server1 VM and @ h
vi log sinewitht the user ID oracle and password oracle1.
q a
3. Run the su command
h i dฺto assume
t o uprimary administrator privileges.
( s ha nse su -
oracle@s11-server1:~$

a v i
Password:
l i ce
i d Q Oracle Corporation SunOS 5.11 11.2 June 2014

h ah root@s11-server1:~#
S 4. Determine the host name of this server.
root@s11-server1:~# hostname
s11-server1
5. Verify that this server can access DNS services.
root@s11-server1:~# nslookup s11-server1
Server: 192.168.0.112
Address: 192.168.0.112#53

Name: s11-server1.mydomain.com
Address: 192.168.0.112
6. Download the following repository files available at the Oracle Solaris download site to a
ZFS file system, such as rpool/export/repodir:
http://www.oracle.com/technetwork/server-storage/solaris11/downloads/index.html
Note: Do not run these commands in this lab. For this training purpose, these steps
have already been performed for you.

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 3: Managing Software Packages in Oracle Solaris 11


Chapter 3 - Page 3
• README file (README-zipped-repo.txt)
• Repository assembly script (install-repo.ksh)
• MD5 checksum file
• Four IPS repository parts (zip files)
# cd /export/repodir
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

# ls
install-repo.ksh sol-11_2-repo-3of4.zip
README-zipped-repo.txt sol-11_2-repo-4of4.zip
sol-11_2-repo-1of4.zip sol-11_2-repo-md5sums.txt
sol-11_2-repo-2of4.zip
7. Make the repository assembly script executable.
Note: Do not run this command in this practice. For training purpose, this step has
already been performed for you.
ble
# chmod +x install-repo.ksh
e r a
8. Create a ZFS file system for the local IPS repository with compression enabled.
a nsf
Note: Do not run this command in this practice. For training purpose, this step has
o n -tr
already been performed for you.
a n
a
h eฺ s
# zfs create -o compression=on –o atime=off rpool/export/IPSpkgrepos
e )
tฺa withGthe idZFS file system for the
# zfs create rpool/export/IPSpkgrepos/Solaris

9. Run the install-repo.ksh repository assembly n escript u


local IPS repository as an option, to build the
t e sฺ eas
repository n twell as to create the repository
ISO image.
m ira Stud
This script unzips and installs the e
zipped IPSisrepository image components into the
designated directory anda i @
v performs
also t h
e the following functions:
ฺ q u s
• id of downloaded
Validate checksums
a h to files (optional)
• sh each
Uncompress n e
s into a specified directory
part
i ( c e
v the repository
• a
Q Verify li image (optional)

a h id • Create an ISO file for mounting and distribution (optional)


Sh Note: Do not run this command in this practice. For training purpose, this step has
already been performed for you.
# ./install-repo.ksh -d /export/IPSpkgrepos/Solaris -c -v -I

Comparing checksums of downloaded files...done. Checksums match.

Uncompressing sol-11_2-repo-1of4.zip...done.
Uncompressing sol-11_2-repo-2of4.zip...done.
Uncompressing sol-11_2-repo-3of4.zip...done.
Uncompressing sol-11_2-repo-4of4.zip...done.
Repository can be found in /export/IPSpkgrepos/Solaris.
Initiating repository verification.
...
Building ISO image...done.
ISO image and instructions for using the ISO image are at:
/export/repodir/sol-11_2-repo.iso
/export/repodir/README-repo-iso.txt

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 3: Managing Software Packages in Oracle Solaris 11


Chapter 3 - Page 4
The repository image provides you with a complete archive of software packages to allow
you to set up a local network IPS repository that client systems can connect to.
10. Verify that the /export/IPSpkgrepos/Solaris file system has been configured with
the repository files.
root@s11-server1:~# ls -lh /export/IPSpkgrepos/Solaris
total 24
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

-rw-r--r-- 1 root root 3.2K Jun 24 21:45 COPYRIGHT


-rw-r--r-- 1 root root 1.6K Jun 24 21:45 NOTICES
-rw-r--r-- 1 root root 347 Jun 24 16:55 pkg5.repository
drwxr-xr-x 3 root root 3 Aug 10 10:43 publisher
-rwxr-xr-x 1 root root 5.8K Jun 24 21:45 README-repo-iso.txt
11. Assess the current IPS configuration on the S11-Server1 system.
root@s11-server1:~# svcs application/pkg/server
STATE STIME FMRI
ble
e r a
nsf
disabled 6:12:11 svc:/application/pkg/server:default

-tra
root@s11-server1:~# svcprop -p pkg/inst_root application/pkg/server
/var/pkgrepo n o n
s a
Note: This system is not currently configured as an IPS server (the service is disabled).
) a
h eฺ
The default location of the IPS repository is determined by the pkg/inst_root property.
e
tฺa Guid
The /var/pkgrepo directory is not the correct location of your local repository.
n e
t e sฺ ent
12. Determine whether the IPS service is currently available.
ra Stud
root@s11-server1:~# pkg search ientire
m
e hrespond
pkg: Some repositories failed
@
to
i s appropriately:
solaris:
q a vi package
s e t
Encountered h
i
Unable to contact
dฺ to uerror(s):
valid repository

stohacontact e configured publishers.


the following
( e n sany
i
Unable
v is likely
aThis lic a network configuration problem.
i d Q Framework error: code: 6 reason: Couldn't resolve host 'pkg.oracle.com'
ah
Sh
URL: 'http://pkg.oracle.com/solaris/release' (happened 4 times)
Searching for a package is a quick way of determining whether the IPS service is available.
The output displayed indicates that this system has no access to the IPS service.
13. Set the pkg/inst_root property of the application/pkg/server service to the
repository location (/export/IPSpkgrepos/Solaris).
root@s11-server1:~# svccfg -s application/pkg/server setprop \
pkg/inst_root=/export/IPSpkgrepos/Solaris

14. Set the pkg/readonly property of the application/pkg/server service to true.


root@s11-server1:~# svccfg -s application/pkg/server setprop pkg/readonly=true

15. Verify the inst_root property of the application/pkg/server service.


root@s11-server1:~# svcprop -p pkg/inst_root application/pkg/server
/export/IPSpkgrepos/Solaris

16. Refresh the application/pkg/server service.


root@s11-server1:~# svcadm refresh application/pkg/server

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 3: Managing Software Packages in Oracle Solaris 11


Chapter 3 - Page 5
17. Enable the application/pkg/server service.
root@s11-server1:~# svcadm enable application/pkg/server

18. Verify that the application/pkg/server service is enabled.


root@s11-server1:~# svcs application/pkg/server
STATE STIME FMRI
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

online 2:35:11 svc:/application/pkg/server:default


19. List the current package publishers.
root@s11-server1:~# pkg publisher
PUBLISHER TYPE STATUS P LOCATION
solaris origin online F http://pkg.oracle.com/solaris/release/
The preceding command output shows the current publisher. A publisher is a forward
domain name that identifies a person, group of persons, or an organization that publishes
one or more packages. The repository type origin is the location of a package repository
ble
that contains both package metadata (package manifests and catalogs) and package
e r a
content (package files). The default publisher URI is http://pkg.oracle.com/solaris/release/.
a nsf
20. Remove the current publisher URI (http://pkg.oracle.com/solaris/release/) and add a new
URI (http://s11-server1.mydomain.com) to the preferred publisher name solaris. o n -tr
a n
a s
root@s11-server1:~# pkg set-publisher -G '*' –g
h eฺ
http://s11-server1.mydomain.com/ solaris
\

e )
root@s11-server1:~# pkg publisher
n e tฺa Guid
PUBLISHER TYPE
t e sฺ PeLOCATION
STATUS n t
solaris ira online
origin
m S t udF http://s11-server1.mydomain.com/
21. Test IPS on the local server by @ e hforisthe entire package.
searching
root@s11-server1:~#apkg
i
v search e t
q
dฺACTIONtoVALUE
u s entire
INDEX
h i
( s ha nse PACKAGE
v i
apkg.descriptione
lic setincluding
Provides for power management support of the entire

i d Q operating system, the configuration of the maximum time allowed to

a h reach both minimum and full capacity, and whether or not to permit system

Sh
suspend and resume if the platform supports it.
pkg:/system/kernel/power@0.5.11-0.175.2.0.0.42.2
pkg.description set Provides support for suspend and resume of the entire
operating system. When the system is suspended, the entire system state is
preserved either in RAM or non-volatile storage until a resume operation is
conducted. The ability to suspend and resume is device dependent and not all
systems support the capability. pkg:/system/kernel/suspend-resume@0.5.11-
0.175.2.0.0.42.2
pkg.description set pixz compresses and decompresses files using multiple
processors. If the input looks like a tar(1) archive, it also creates an index
of all the files in the archive. This allows the extraction of only a small
segment of the tarball, without needing to decompress the entire archive.
pkg:/compress/pixz@1.0-0.175.2.0.0.42.1
pkg.fmri set solaris/entire
pkg:/entire@0.5.11-0.175.2.0.0.42.0
22. Display the status of the IPS repository.
root@s11-server1:~# pkgrepo info -s /export/IPSpkgrepos/Solaris
PUBLISHER PACKAGES STATUS UPDATED
solaris 4870 online 2014-06-25T03:55:23.627994Z

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 3: Managing Software Packages in Oracle Solaris 11


Chapter 3 - Page 6
Practice 3-2: Configuring a Network Client to Access the IPS Server
Overview
Now that you have a local package repository set up, you must configure the network clients to
access the new repository. By default, clients are configured to use the publisher
http://pkg.oracle.com/solaris/release/. In this task, you reconfigure the client to access the
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

http://s11-server1.mydomain.com/ package publisher.

Task
Perform the following steps on the S11-Desktop machine to configure a network client to access
the IPS server:
1. Verify whether S11-Server1 is running. Keep it minimized for the time being.
2. Start the S11-Desktop VM and log in with the user ID oracle and password oracle1.
ble
3. In the S11-Desktop VM, right-click the desktop background and open a terminal window.
e r a
4. In the terminal window, run the su command to assume primary administrator privileges.
a nsf
oracle@s11-desktop:~$ su -
o n -tr
Password:
a n
a s
Oracle Corporation SunOS 5.11
h eฺ
11.2 June 2014
root@s11-desktop:~#
e ) d
e ฺa byuiresolving
5. Verify whether S11-Desktop (client) can access DNStservices the IPS server
host name. n
sฺ ent G
t e
ira Stud
root@s11-desktop:~# nslookup s11-server1
m
Server:
e his
192.168.0.112
@
Address: i
v se t
192.168.0.112#53
a
i q
dฺ to u
h
Name: s11-server1.mydomain.com

i ( s a ense
Address:h192.168.0.112
6. Verify
Q lic can ping the IPS server.
avthat this client
a h id root@s11-desktop:~# ping s11-server1

Sh 7. List the current package publishers.


s11-server1 is alive

root@s11-desktop:~# pkg publisher


PUBLISHER TYPE STATUS P LOCATION
solaris origin online F http://pkg.oracle.com/solaris/release/
8. Remove the current publisher URI (http://pkg.oracle.com/solaris/release/) and add a new
URI (http://s11-server1.mydomain.com) to the preferred publisher name solaris.
root@s11-desktop:~# pkg set-publisher -G '*' –g \
http://s11-server1.mydomain.com/ solaris
9. Verify that the preferred publisher is http://s11-server1.mydomain.com/ .
root@s11-desktop:~# pkg publisher
PUBLISHER TYPE STATUS P LOCATION
solaris origin online F http://s11-server1.mydomain.com/

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 3: Managing Software Packages in Oracle Solaris 11


Chapter 3 - Page 7
10. Test the client access to the IPS server by opening the http://s11-server1.mydomain.com
URL in the Firefox browser.
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

ble
e r a
a nsf
o n -tr
a n
a s
h eฺ
e )
n e tฺa Guid
t e sฺ ent
m ira Stud
@ e his
a i
v se t
i q
dฺ to u
h
i ( sha ense
Q av lic
i d
ah
Sh

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 3: Managing Software Packages in Oracle Solaris 11


Chapter 3 - Page 8
11. Using the package repository browser, search for the entire package.
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

ble
e r a
a nsf
o n -tr
a n
a s
h eฺ
e )
n e tฺa Guid
t e sฺ ent
m ira Stud
12. Close the Firefox browser.
@ e his
a i
v se t
i q
dฺ to u
h
i ( sha ense
Q av lic
a h id
Sh

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 3: Managing Software Packages in Oracle Solaris 11


Chapter 3 - Page 9
Practice 3-3: Updating Oracle Solaris 11 to Oracle Solaris 11.2 OS
(demonstration)
Overview
IPS allows you to update the OS image to a new version of Oracle Solaris 11. Each package in
the image is updated from the publisher that provided the current installed version. A new boot
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

environment (BE) is created when a full image update is performed.


Note: Before viewing the demonstration file, it is necessary that you understand the
detailed procedure documented in the “Updating a system to Oracle Solaris 11.2” section of
the Student Guide.

Assumptions
Adobe Flash Player is already installed on the host machine before executing the
demonstration.
ble
e r a
Special note for playing the demo in the virtual machine:
a nsf
• To be able to view demo controls in the browser, it is recommended to switch to full
screen. o n -tr
a n
• s
To switch to full-screen mode in the browser window, go to View > Full Screen.
a
h eฺ
e )
Task
n e tฺa Guid
e ฺ which
For this practice, you are provided with a demonstration,
sOS n twill help you to understand how
to update a machine running the Oracle Solaris
i r t
a tud
11 to e
Oracle Solaris 11.2 OS.

@ em window.
1. On your host machine, open a terminal
h i s S
2. Change to the /opt/ora/demo/
q a vi directory.
s e t
i dฺ to u
# cd /opt/ora/demo/Updating_a_System_to_S11.2
h
sha ense OS_Update_Demo.swf standard.js
# ls

i (
lic System Software Using IPS.htm file in a web browser.
OS_Update_Demo.htm

Q
3. Open avthe Upgrading
a h id # firefox OS_Update_Demo.htm &
Sh 4. A browser window with the Flash demo is displayed.
5. Close the terminal window.
6. Close the web browser after you complete viewing the flash demo.

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 3: Managing Software Packages in Oracle Solaris 11


Chapter 3 - Page 10
Practice 3-4: Managing Software Packages
Overview
After you have made the IPS server available to the network clients, the client system
administrators have the option to manage software updates by using either CLI commands or
GUI-based utilities. In this task, you work with the CLI commands and GUI-based utilities to
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

perform common software update tasks such as adding, removing, and searching for packages.
You also learn how to perform a “dry run” on package installations, which enables you to see
the changes that will occur on the system when a package is installed, without actually installing
the package. To demonstrate the IPS capabilities, you manage the apptrace software
package.

Start State for the Practice


Verify whether S11-Server1 and S11-Desktop VMs are running. If not, then start them now and e
run the su command to assume primary administrator privileges.
r a bl
e
Refer to Practice 1 for the procedure to start the VMs.
a nsf
Task o n -tr
a n
a s
To begin with, you manage client packages by using the pkg command.
h eฺ
)
Perform the following steps on S11-Desktop VM to manage software packages:
e
n e tฺa Guid
1. In a terminal window on the S11-Desktop virtual machine, determine whether the

t e sฺ ent
apptrace software packages are currently installed.
ra Stud
i'apptrace'
root@s11-desktop:~# pkg list apptrace
m
e his installed
pkg list: No packages matching
@
2. Search the IPS package a
q vi sfore the
repository t apptrace software package.
h i dฺ pkgtosearch
root@s11-desktop:~# u apptrace
INDEX ha se VALUE
i ( s e n
ACTION

v lic set Apptrace utility for application tracing, including


PACKAGE

Q apkg.description
h i d shared objects pkg:/developer/apptrace@0.5.11-0.175.2.0.0.42.2
a
Sh
pkg.summary set Apptrace Utility
pkg:/developer/apptrace@0.5.11-0.175.2.0.0.42.2
basename file usr/bin/apptrace
pkg:/developer/apptrace@0.5.11-0.175.2.0.0.42.2
pkg.fmri set solaris/developer/apptrace
pkg:/developer/apptrace@0.5.11-0.175.2.0.0.42.2

3. Display the detailed information about the apptrace package.


root@s11-desktop:~# pkg info -r apptrace
Name: developer/apptrace
Summary: Apptrace Utility
Description: Apptrace utility for application tracing, including shared
objects
Category: Development/System
State: Not installed
Publisher: solaris
Version: 0.5.11
Build Release: 5.11
Branch: 0.175.2.0.0.42.2

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 3: Managing Software Packages in Oracle Solaris 11


Chapter 3 - Page 11
Packaging Date: June 24, 2014 06:39:19 PM
Size: 162.04 kB
FMRI: pkg://solaris/developer/apptrace@0.5.11,5.11-
0.175.2.0.0.42.2:20140624T183919Z
Note: Fault Management Resource Identifier (FMRI) is the identifier for a package and it
includes the package publisher, package name, and version. The pkg command uses
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

FMRIs, or portions of FMRIs, to operate on packages.


4. Perform a “dry run” on the apptrace package installation.
root@s11-desktop:~# pkg install -nv apptrace
Packages to install: 1
Estimated space available: 36.11 GB
Estimated space to be consumed: 19.83 MB
Create boot environment: No
Create backup boot environment: No
ble
Rebuild boot archive: No
e r a
a nsf
Changed packages:
solaris o n -tr
developer/apptrace a n
a
h eฺs
None -> 0.5.11,5.11-0.175.2.0.0.42.2:20140624T183919Z
e ) dinstallation will not
The dry run shows that one package will be installed. The
e t ฺa willuibe
package
impact the boot environment. No currently installed
s ฺ n nt G changed.
packages
5. Install the apptrace package.
i r a te ude
e
root@s11-desktop:~# pkg installm apptrace S t
Packages toi@install: h
t 1i s
v e
ฺqaenvironment:
Create boot
Create backupid o u s No
DOWNLOADha
h e t
boot environment: No

( s e n s PKGS FILES XFER (MB)


v i
SPEED
aCompleted lic
d Q 1/1 10/10 0.1/0.1

ahi
81.7k/s

Sh PHASE ITEMS
Installing new actions 29/29
Updating package state database Done
Updating package cache 0/0
Updating image state Done
Creating fast lookup database Done
Updating package cache 1/1

6. Verify the apptrace package installation.


root@s11-desktop:~# pkg verify -v apptrace
PACKAGE STATUS
pkg://solaris/developer/apptrace OK

7. Remove the apptrace package from the system image.


root@s11-desktop:~# pkg uninstall apptrace
Packages to remove: 1
Create boot environment: No
Create backup boot environment: No
Copyright © 2014, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 3: Managing Software Packages in Oracle Solaris 11


Chapter 3 - Page 12
PHASE ITEMS
Removing old actions 25/25
Updating package state database Done
Updating package cache 1/1
Updating image state Done
Creating fast lookup database Done
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

Updating package cache 1/1

8. Verify that the apptrace package has been removed.


root@s11-desktop:~# pkg list apptrace
pkg list: No packages matching 'apptrace' installed

Now, you will manage the apptrace package by using the graphical Package Manager
utility.
9. On the desktop background, double-click the Add More Software icon to display the
Package Manager GUI. Select the solaris publisher. ble
e r a
a nsf
o n -tr
a n
a s
h eฺ
e )
n e tฺa Guid
t e sฺ ent
m ira Stud
@ e his
a i
v se t
i q
dฺ to u
h
i ( sha ense
Q av lic
i d
ah
Sh

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 3: Managing Software Packages in Oracle Solaris 11


Chapter 3 - Page 13
10. In the File menu, click Manage Publishers.
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

ble
e r a
a nsf
o n -tr
a n
a s
h eฺ
e )
n e tฺa Guid
t e sฺ ent
m ira Stud
@ e his
a i
v se t
i q
dฺ to u
h
i ( sha ense
Q av lic
i d
ah
Sh

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 3: Managing Software Packages in Oracle Solaris 11


Chapter 3 - Page 14
11. Verify that the package publisher that you configured in Practice 3-1 is enabled and sticky.
Also, verify the origin of the IPS server. Click OK.
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

ble
e r a
a nsf
o n -tr
a n
a
h eฺs
e )
n e tฺa Guid
t e sฺ ent
m ira Stud
@ e his
a i
v se t
Note: When a publisher
i q
dฺoriginally.
is sticky,uthe client source updates from the same publisher that
a h
provided the package e to
i ( sh ens
Q av lic
ah id
Sh

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 3: Managing Software Packages in Oracle Solaris 11


Chapter 3 - Page 15
12. In the Package Manager search field, type apptrace and press the Return key.
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

ble
e r a
a nsf
o n -tr
a n
a
h eฺs
e )
n e tฺa Guid
t e sฺ ent
m ira Stud
@ e his
a i
v se t
q
idฺ thattotheuapptrace package is not currently installed on this
h
The status iconaindicates
system. (sh
e n se
av i lic
id Q
h ah
S

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 3: Managing Software Packages in Oracle Solaris 11


Chapter 3 - Page 16
13. Select the apptrace package. Note the contents of the General tab at the bottom of the
display. This information is derived from the apptrace manifest.
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

ble
e r a
a nsf
o n -tr
a n
a s
h eฺ
e )
n e tฺa Guid
t e sฺ ent
m ira Stud
@ e his
a i
v se t
i q
dฺ to u
h
i ( sha ense
Q av lic
i d
ah
Sh

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 3: Managing Software Packages in Oracle Solaris 11


Chapter 3 - Page 17
14. Click the Files tab to view the files listed in the apptrace manifest.
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

ble
e r a
a nsf
o n -tr
a n
a s
h eฺ
e )
n e tฺa Guid
t e sฺ ent
m ira Stud
@ e his
a i
v se t
i q
dฺ to u
h
i ( sha ense
Q av lic
i d
ah
Sh

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 3: Managing Software Packages in Oracle Solaris 11


Chapter 3 - Page 18
15. Click the Dependencies tab.
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

ble
e r a
a nsf
o n -tr
a n
a s
h eฺ
e )
n e tฺa Guid
t e sฺ ent
m ira Stud
@ e his
a i
v se t
i q
dฺ to u
h
i ( sha ense
Q av lic
i d
ah
Sh

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 3: Managing Software Packages in Oracle Solaris 11


Chapter 3 - Page 19
16. Click the Versions tab.
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

ble
e r a
a nsf
o n -tr
a n
a s
h eฺ
e )
n e tฺa Guid
t e sฺ ent
m ira Stud
@ e his
a i
v se t
i q
dฺ to u
h
i ( sha ense
Q av lic
i d
ah
Sh

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 3: Managing Software Packages in Oracle Solaris 11


Chapter 3 - Page 20
17. Select the apptrace package check box and click the Install/Update button. Then, click
Proceed in the Install Confirmation dialog box.
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

ble
e r a
a nsf
o n -tr
a n
a s
h eฺ
e )
n e tฺa Guid
t e sฺ ent
m ira Stud
@ e his
a i
v se t
i q
dฺ to u
h
i ( sha ense
Q av lic
i d
ah
Sh

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 3: Managing Software Packages in Oracle Solaris 11


Chapter 3 - Page 21
18. Verify that the apptrace package installed successfully. Close the Install/Update dialog
box.
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

ble
e r a
a nsf
o n -tr
a n
a s
h eฺ
e )
n e tฺa Guid
t e sฺ ent
m ira Stud
@ e his
a i
v se t
i q
dฺ to u
h
i ( sha ense
Q av lic
i d
ah
Sh

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 3: Managing Software Packages in Oracle Solaris 11


Chapter 3 - Page 22
19. Select the apptrace package check box and click the Remove button. Then click
Proceed in the Remove Confirmation dialog box.
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

ble
e r a
a nsf
o n -tr
a n
a s
h eฺ
e )
n e tฺa Guid
t e sฺ ent
m ira Stud
@ e his
a i
v se t
i q
dฺ to u
h
i ( sha ense
Q av lic
i d
ah
Sh

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 3: Managing Software Packages in Oracle Solaris 11


Chapter 3 - Page 23
20. Verify that the apptrace package was successfully removed. Close the Remove dialog
box.
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

ble
e r a
a nsf
o n -tr
a n
a s
h eฺ
e )
n e tฺa Guid
t e sฺ ent
m ira Stud
@ e his
a i
v se t
i q
dฺ to u
h
i ( sha ense
Q
21. Close
lic Manager window.
avthe Package
a h id
Sh

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 3: Managing Software Packages in Oracle Solaris 11


Chapter 3 - Page 24
Practice 3-5: Managing the Boot Environments
Overview
With multiple boot environments (BEs), the process of updating software becomes a low-risk
operation because you can create backup boot environments before making any software
updates to your system. If needed, you have the option of booting to a backup boot
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

environment.
During this practice, you will create a new full boot environment based on the current BE. The
current BE does not have the diffstat package installed. You make the new BE the active
boot environment and you update it with the diffstat package. You reboot to the original boot
environment to prove that the two BEs are now logically separated.
You also mount and update an inactive BE. You also create a clone and a snapshot of the
current BE.
bl e
Start State for the Practice
fe r a
Verify whether S11-Server1 VM is running. If not, start it now and run the su command to n s
assume primary administrator privileges.
n - tra
Refer to Practice 1 for the procedure to start the VMs.
a no
Task ) h as ฺ
Perform the following steps to manage boot environment:tฺa
e ide
ฺ n e G u
tes uBEs.
1. In the S11-Server1 virtual machine, list the current
en t
root@s11-server1:~# beadm list ira
t d
e m Policy s S
hi -------
BE Active Mountpoint Space Created
v i @-----
e t
--
/ฺq
a u3.42G
------ ---------- ------
s static 2014-07-07 01:05
solaris NR
h i d t o
i (
reboot (R). shaindicates
The Active field
e n sewhether the boot environment is active now (N) and active on
Q
2. Cloneavthe currentlicactive BE. Name the clone solaris-1.
a hid root@s11-server1:~# beadm create solaris-1
Sh 3. List the current BEs.
root@s11-server1:~# beadm list
BE Active Mountpoint Space Policy Created
-- ------ ---------- ----- ------ -------
solaris NR / 3.42G static 2014-07-07 01:05
solaris-1 - - 145.0K static 2014-07-09 03:52

4. Activate the solaris-1 BE. Display the list of BEs. Note that solaris-1 is pending
activation on reboot.
root@s11-server1:~# beadm activate solaris-1

root@s11-server1:~# beadm list


BE Active Mountpoint Space Policy Created
-- ------ ---------- ----- ------ -------
solaris N / 43.0K static 2014-07-07 01:05
solaris-1 R - 3.42G static 2014-07-09 03:52

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 3: Managing Software Packages in Oracle Solaris 11


Chapter 3 - Page 25
5. Reboot the S11-Server1 virtual machine.
root@s11-server1:~# init 6

Notice that solaris-1 is now the default boot entry in the GRUB menu.
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

ble
e r a
a nsf
o n -tr
a n
a
h eฺs
e )
n e tฺa Guid
t e sฺ ent
6. After S11-Server1 has rebooted, log inias
m S t ud user and use su to root.
rathe oracle
e BEs.his
7. In a terminal window, list the current
@
i
v list
root@s11-server1:~#abeadm e t
q
dฺ Mountpoint s
u Space Policy Created
BE
h i
Active
t o
--
i ( sha------
- en/
e
s---------- ----- ------ -------

a v
solaris
l ic - 43.0K static 2014-07-07 01:05

d Q solaris-1 NR 3.42G static 2014-07-09 03:52

h ahi Note: The solaris-1 image is now active.


S 8. Verify that the diffstat package is not currently installed on the new active BE.
root@s11-server1:~# pkg list diffstat
pkg list: No packages matching 'diffstat' installed

9. Install the diffstat package on the new active BE.


root@s11-server1:~# pkg install diffstat
Packages to install: 1
Create boot environment: No
Create backup boot environment: No
DOWNLOAD PKGS FILES XFER (MB)
SPEED
Completed 1/1 6/6 0.0/0.0
74.8k/s

PHASE ITEMS
Installing new actions 28/28
Updating package state database Done
Updating package cache 0/0
Copyright © 2014, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 3: Managing Software Packages in Oracle Solaris 11


Chapter 3 - Page 26
Updating image state Done
Creating fast lookup database Done
Updating package cache 1/1

10. Activate the solaris BE. Display the list of BEs. Note that solaris is pending activation
on reboot.
root@s11-server1:~# beadm activate solaris
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

root@s11-server1:~# beadm list


BE Active Mountpoint Space Policy Created
-- ------ ---------- ----- ------ -------
solaris R - 3.43G static 2014-07-07 01:05
solaris-1 N / 89.59M static 2014-07-09 03:52
11. Reboot the S11-Server1 virtual machine. After S11-Server1 has rebooted, log in as the
oracle user and su to root.
ble
e r a
nsf
root@s11-server1:~# init 6
Notice that Oracle Solaris 11.2 is now the default boot entry in the GRUB menu.
-tra
12. Verify that the solaris image is now active and that the diffstat package is not
n o n
installed.
s a
) a
h eฺ
root@s11-server1:~# beadm list
BE
tฺa e id
Active Mountpoint Space
Policy Created
------ e------- Gu
--
n
sฺ 2014-07-07
t 01:05
------ ---------- -----
n
solaris
t eNR
static /
d e 3.47G

m ira static
solaris-1 -
S t u2014-07-09
- 94.03M
03:52

@ e hi s
v i e t
ฺqa matching
root@s11-server1:~# pkg list diffstat

i d
pkg list: No packages
t o us 'diffstat' installed
h
ha BE.nse
13. Mount the inactive
( s
a v i l ice beadm mount solaris-1 /solaris-1
root@s11-server1:~#

i d Q
h ah root@s11-server1:~# beadm list
S BE
--
Active Mountpoint Space Policy Created
------ ---------- ----- ------ -------
solaris NR / 3.47G static 2014-07-07 01:05
solaris-1 - /solaris-1 94.02M static 2014-07-09 03:52

14. Verify that the diffstat package is installed in the inactive package.
root@s11-server1:~# pkg -R /solaris-1 verify -v diffstat
PACKAGE STATUS
pkg://solaris/text/diffstat OK

15. Remove the diffstat package from the mounted inactive BE.
root@s11-server1:~# pkg -R /solaris-1 uninstall diffstat
Packages to remove: 1
PHASE ITEMS
Removing old actions 23/23
Updating package state database Done
Updating package cache 1/1
Updating image state Done

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 3: Managing Software Packages in Oracle Solaris 11


Chapter 3 - Page 27
Creating fast lookup database Done
Updating package cache 1/1

root@s11-server1:~# pkg -R /solaris-1 list diffstat


pkg list: No packages matching 'diffstat' installed
16. Unmount the inactive BE.
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

root@s11-server1:~# beadm unmount solaris-1

17. Create a snapshot of the solaris BE. Name the snapshot backup.
root@s11-server1:~# beadm create solaris@backup

18. Display the list of snapshots associated with the solaris BE.
root@s11-server1:~# beadm list -a solaris
BE/Dataset/Snapshot Active Mountpoint Space Policy
Created
ble
------------------- ------ ---------- -----
r
------
e a
nsf
-------
solaris
-tr a static
rpool/ROOT/solaris
2014-07-07 01:05
NR /
n o n
2.88G

s a
rpool/ROOT/solaris/var
2014-07-07 01:05
) a
h eฺ
- /var 323.72M static

rpool/ROOT/solaris/var@2014-07-09-03:52:28
t - e
ฺa u- id 748.5K static
2014-07-09 03:52 e
ฺn -nt G -
e s
at tude
rpool/ROOT/solaris/var@backup 21.0K static
2014-07-09 04:34
i r
m is S
e
rpool/ROOT/solaris/var@install - - 205.91M static
2014-07-07 01:13
a v i@ e th
ฺ q u s
rpool/ROOT/solaris@2014-07-09-03:52:28 - - 16.19M static
id
2014-07-09 03:52
a h to
s h n s e
rpool/ROOT/solaris@backup - - 0 static
(
avi lice
2014-07-09 04:34
rpool/ROOT/solaris@install - - 55.14M static

ah19. id Q 2014-07-07 01:13

Create a new boot environment from the solaris@backup snapshot. Name this BE as
Sh solaris-2.
root@s11-server1:~# beadm create -e solaris@backup solaris-2

root@s11-server1:~# beadm list


BE Active Mountpoint Space Policy Created
-- ------ ---------- ----- ------ -------
solaris NR / 3.47G static 2014-07-07 01:05
solaris-1 - - 94.16M static 2014-07-09 03:52
solaris-2 - - 70.0K static 2014-07-09 04:35

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 3: Managing Software Packages in Oracle Solaris 11


Chapter 3 - Page 28
20. Delete the solaris-2 BE and view the results.
root@s11-server1:~# beadm destroy solaris-2
Are you sure you want to destroy solaris-2? This action cannot be
undone(y/[n]): y

root@s11-server1:~# beadm list


Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

BE Active Mountpoint Space Policy Created


-- ------ ---------- ----- ------ -------
solaris NR / 3.47G static 2014-07-07 01:05
solaris-1 - - 94.16M static 2014-07-09 03:52

21. Rename the original solaris-1 BE to solaris-alt.


root@s11-server1:~# beadm rename solaris-1 solaris-alt
22. List the boot environments.
root@s11-server1:~# beadm list ble
e r a
nsf
BE Active Mountpoint Space Policy Created
-- ------ ---------- ----- ------ -------
-tra
solaris NR / 3.47G static 2014-07-07 01:05
n o n
solaris-alt - - 94.16M
s a static 2014-07-09 03:52

) a
h eฺ
e
tฺa Guid
n e
t e sฺ ent
m ira Stud
@ e his
a i
v se t
i q
dฺ to u
h
i ( sha ense
Q av lic
i d
ah
Sh

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 3: Managing Software Packages in Oracle Solaris 11


Chapter 3 - Page 29
Practice 3-6: Testing Your Skills and Knowledge
Overview
In this practice, you get to apply the skills and knowledge you gained from the lecture and
guided practices. You are challenged with completing the following tasks without the benefit of a
step-by-step guide.
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

Hint: Use all the available resources, such as man pages, student guide, activity guide, and
your instructor, to successfully complete each task.
Note: This practice is optional. Check with your instructor to determine if you have enough
time available to complete this practice. If you begin this practice and run out of time, set
this practice aside and return to it if time permits.

Task 1: Manage Software Packages


Perform the following task on the S11-Server1 VM. ble
e r a
nsf
1. Determine the current status of the IPS repository.
2. Display detailed information about the snort software package.
-tra
3. Determine if the snort package is currently installed in the system.
n o n
4. s a
Perform a “dry run” installation of the snort package.
5. Install the snort package. ) a
h eฺ
e
tฺa Guid
e
6. Verify that the snort package was installed correctly.
n
7. Remove the snort package. t e sฺ ent
m ira Stud
Task 2: Manage the Boot Environment
@ e h(BE) is
i t
v S11-Server1
Perform the following tasks onathe e VM.
ฺ q u s
a h id environments
1. List the current bootable to (BEs).
e
sh BEetonasBE named solaris11.
2. Clone the active
i (
3. Activate
Q lic and reboot the system.
av BE solaris11
4.id Create a snapshot of the active BE (solaris11).
a h
Sh 5. Create a new boot environment named solaris11-1 from the BE snapshot.
6. Activate the original BE (solaris) and reboot the system.
7. Destroy the solaris11 and solars11-1 BEs.

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 3: Managing Software Packages in Oracle Solaris 11


Chapter 3 - Page 30
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

ble
e r a
a nsf
o n -tr
a n
a s
hLesson
Practicesefor ) e ฺ 4:
Installing ฺ a
et the i d
uOracle Solaris
ฺ n
sOperating t G
n System
a11
t e d e
e mir Chapter
s S tu4
v i @ e thi
i d ฺqa o us
a h e t
h
(s icen s
a v i l
i d Q
ah
Sh

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 4: Installing the Oracle Solaris 11 Operating System


Chapter 4 - Page 1
Practices for Lesson 4: Overview
Practices Overview
This practice introduces you to the operating system installation methods and provides guided,
hands-on experience with both interactive and hands-free operating system installation. While
performing the practices, you apply Oracle Solaris 11 installation best practices.
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

The key areas explored in these practices are:


• Installing the Oracle Solaris 11 OS by using the Text Installer
• Installing the Oracle Solaris 11 OS by using the Live Media installer
• Installing the Oracle Solaris 11 OS by using the Automated Installer
• Configuring Oracle Solaris 11 Instances
• Customizing the Automated Installation
• Deploying a System by Using an Oracle Solaris Unified Archive through Automated ble
e r a
nsf
Installer

-tra
n o n
s a
) a
h eฺ
e
tฺa Guid
n e
t e sฺ ent
m ira Stud
@ e his
a i
v se t
i q
dฺ to u
h
i ( sha ense
Q av lic
i d
ah
Sh

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 4: Installing the Oracle Solaris 11 Operating System


Chapter 4 - Page 2
Practice 4-1: Installing the Oracle Solaris 11 OS by Using the Text
Installer
Overview
When you install the Oracle Solaris 11 OS by using the Text installer, you must first download
the Oracle Solaris 11 Text installer image from the following site:
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

http://www.oracle.com/technetwork/server-storage/solaris11/downloads/index.html.
The Text installation download is in an ISO image format that can be burned to a CD/DVD or
used directly within Oracle VM Server or other virtualization software.
Note: For training purposes, the Text installer ISO has already been downloaded for you. The
ISO image file can be found in the /opt/ora/iso directory of the VirtualBox host machine.

Start State for the Practice


ble
1. Power off S11-Server1 and S11-Desktop VMs.
e r a
2. In the VirtualBox Manager, verify whether the status of all VMs is Powered-off.
a nsf
3. Select the Text-Install VM in the VirtualBox Manager and verify that the appropriate ISO
image is mounted on the DVD. If the Text-Install ISO is not mounted in the Text-Install o n -tr
a
virtual machine DVD drive, you can find the ISO file in the /opt/ora/iso directory on the
n
host system. a s
h eฺ
e )
n e tฺa Guid
t e sฺ ent
m ira Stud
@ e his
a i
v se t
i q
dฺ to u
h
i ( sha ense
Q av lic
i d
ah
Sh

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 4: Installing the Oracle Solaris 11 Operating System


Chapter 4 - Page 3
Task
Perform the following steps to install the Oracle Solaris 11 OS by using the Text installer:
1. Click the Start button on the menu bar of the VirtualBox Manager. This will boot the Text-
Install VM from the Text installer on the DVD to begin the OS installation.
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

ble
e r a
a nsf
o n -tr
a n
a s
h eฺ
e )
n e tฺa Guid
t e sฺ ent
m ira Stud
@ e his
a i
v se t
i q
dฺ to u
h
i ( sha ense
av lic
Q After you click Start, a Select start-up disk dialog box might appear for you to select
i d Note:
ah a virtual optical disk. You may click Cancel to proceed.
Sh 2. During the OS installation process, use the following configuration data to complete the
Text installation.
Note: The Text installer program may direct you to press F2 or ESC+2 to move to the next
step in the installation process. If pressing F2 does not work, try pressing ESC+2 keys.
• Keyboard layout: Use your local keyboard layout
• Language: Use your local language
• Installation menu: Install Oracle Solaris
• Discovery Selection: Local Disks
• Disk Selection: Default option
• GPT Partitions: Use the entire disk
• Computer Name: solaris-text
• Network configuration: Manually
− Network Interface: net0
− IP Address: 192.168.0.141

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 4: Installing the Oracle Solaris 11 Operating System


Chapter 4 - Page 4
− Configure DNS: Yes
− DNS Server IP address: 192.168.0.112
− Search domain: mydomain.com
− Alternate Name Service: None
• Time zone: Use your local region.
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

• Language: Use your local language


• Language Territory: Use your local language territory
• Date and time: Set to current date and time.
• Keyboard: Use your local keyboard
• Root password: oracle1
• User account:
− Your real name: oracle ble
e r a
nsf
− Username: oracle
− Password: oracle1
-tra
• Support registration: Default options n o n
• Support: Network Configuration: Default (no proxy)s a
) a
h eฺ
3. e
After the Text installation has completed, press F8 to reboot.
tฺa Guid
4. e
After the system has successfully rebooted, log in to the system and verify that the
n
t e sฺ ent
configuration setup performed in step 2 is operational.
5. ira Stud
Shut down (power off) the Text-Install virtual machine.
m
@ e his
a i
v se t
i q
dฺ to u
h
i ( sha ense
Q av lic
i d
ah
Sh

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 4: Installing the Oracle Solaris 11 Operating System


Chapter 4 - Page 5
Practice 4-2: Installing the Oracle Solaris 11 OS by Using the Live
Media Installer
Overview
When you install the Oracle Solaris 11 OS by using the Live Media installer, you must first
download the Oracle Solaris 11 Live Media install image from the following site:
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

http://www.oracle.com/technetwork/server-storage/solaris11/downloads/index.html.
The Live Media installation download is in an ISO image format that can be burned to a
CD/DVD or used directly within Oracle VM Server or other virtualization software.
Note: For training purposes, the Live Media installer ISO has already been downloaded for
you. The ISO image file can be found in the /opt/ora/iso directory of the VirtualBox
host machine.

Start State for the Practice ble


e r a
nsf
1. In the VirtualBox Manager, verify whether the status of all VMs is Powered-off.
2. Select the LiveCD-Install VM in the VirtualBox Manager and verify that the appropriate ISO
-tra
image is mounted on the DVD. If the Live Media ISO is not mounted in the LiveCD-Install
n o n
a
VM DVD drive, you can find the ISO file in the /opt/ora/iso directory on the host
s
system.
) a
h eฺ
e
tฺa Guid
n e
t e sฺ ent
m ira Stud
@ e his
a i
v se t
i q
dฺ to u
h
i ( sha ense
Q av lic
i d
ah
Sh

Note: After you click Start, a Select start-up disk dialog box might appear for you to select
a virtual optical disk. You may click Cancel to proceed.

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 4: Installing the Oracle Solaris 11 Operating System


Chapter 4 - Page 6
Task
Perform the following steps to install the Oracle Solaris 11 OS by using the Live Media installer:
1. Click the Start button on the menu bar of the VirtualBox Manager. This will boot the LiveCD-
Install VM from the Live Media installer on the DVD to begin the OS installation.
Note: Choose the default boot option in the GRUB menu. Also, click Capture for keyboard,
mouse, and mouse pointer integration pop-up messages.
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

ble
e r a
a nsf
o n -tr
a n
a s
h eฺ
e )
n e tฺa Guid
t e sฺ ent
m ira Stud
@ e his
a i
v se t
i q
dฺ to u
h
i ( sha ense
Q av lic
i d
ah
Sh

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 4: Installing the Oracle Solaris 11 Operating System


Chapter 4 - Page 7
2. In the GRUB menu, select Oracle Solaris 11.2 to start installing the Oracle Solaris 11.2
operating system.
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

ble
e r a
a nsf
o n -tr
a n
a
h eฺ s
e )
n e tฺa Guid
t e sฺ ent
m ira Stud
@ e his
3. During the Live Media desktop
a i
v onsyour t you are asked to select the keyboard layout
initialization,
e
and language. Set these
i d ฺ q based u local environment.
h t o
s
username(andhapassword
Note: When booting
n s eas jack
the Live Media image, the solaris console login, by default, accepts the
and displays the Live Media desktop. This is useful when
you a
are
e Media as a troubleshooting
viusing thelicLive tool. If you do log in with the username
Q
id and password as jack, the default root password is solaris.
a h
Sh

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 4: Installing the Oracle Solaris 11 Operating System


Chapter 4 - Page 8
4. When the Live Media desktop is initialized, double-click the Install Oracle Solaris icon on
the desktop to begin the OS installation.
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

ble
e r a
a nsf
o n -tr
a n
a
h eฺ s
e )
n e tฺa Guid
t e sฺ ent
5. During the OS installation process, use rthe
Media installation: m S t udconfiguration data to complete the Live
i a following
Note: Press Back or Next v @e e through
toinavigate t his the screens.
• Disk Discovery:
i d qa Disksus
ฺLocal
a h e o
toption

i ( sh eUse
Disk Selection: s
Default
n

a v
Disk li
Partition: c the whole disk

i Q
d • Time Zone, Date and Time: Click the city closest to your install location
h
a • User account:
Sh − Your real name: oracle
− Log-in name: oracle
− User password: oracle1
• Computer name: solaris-live
• Support registration: Default options
• Support: Network Configuration: Default (no proxy)
6. After the Live Media installation has completed, press Reboot.
7. After the system has successfully rebooted, log in to the system with the username oracle
and password oracle1. Verify that the configuration setup mentioned in step 5 is
operational.
8. Shut down (power off) the LiveCD-Install virtual machine.

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 4: Installing the Oracle Solaris 11 Operating System


Chapter 4 - Page 9
Practice 4-3: Installing the Oracle Solaris 11 OS by Using the
Automated Installer
Overview
Deploying the Oracle Solaris 11 operating system with the Automated Installer (AI) involves
three tasks:
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

• Verifying that the system meets AI requirements


• Configuring the AI server
• Deploying the OS to network clients
Before you install the Oracle Solaris 11 OS by using AI, you must first download the Oracle
Solaris 11 AI install image from the following site:
http://www.oracle.com/technetwork/server-storage/solaris11/downloads/index.html.
The AI installation download is in an ISO image format that can be burned to a CD or a DVD or ble
used directly within Oracle VM Server or other virtualization software. e r a
Note: For training purposes, the AI ISO has already been downloaded for you. The ISO a nsf
image file can be found in the /opt/ora/iso directory of the S11-Server1 virtual
o n -tr
machine.
a n
a
h eฺs
Start State for the Practice
e )
1. Verify that no VMs are running at this point of time. tฺa
e u id
2. Start the S11-Server1 VM and log in with the user n
sฺ ID oracle
n G
t and password oracle1.
t e e
3. Run the su command to assume primary
m S ud privileges.
iraadministrator
t
oracle@s11-server1:~$ su - e is
i @ t h
Password:
ฺ q av SunOS
u s e
h i d
Oracle Corporation
t o 5.11 11.2 June 2014

i ( sha ense
root@s11-server1:~#

TaskQ
v ic
1:aVerifying lthe System AI Requirements
a h id the following steps to verify the system requirements for the AI OS installation:
Perform
Sh 1. Determine the build number of the installed operating system.
root@s11-server1:~# cat /etc/release
Oracle Solaris 11.2 X86
Copyright (c) 1983, 2014, Oracle and/or its affiliates. All rights reserved.
Assembled 23 June 2014
2. Verify that the networking service is online and the operating system is configured with a
static IP address.
root@s11-server1:~# svcs network/physical:default
STATE STIME FMRI
online 5:37:12 svc:/network/physical:default

root@s11-server1:~# ipadm show-addr


ADDROBJ TYPE STATE ADDR
lo0/v4 static ok 127.0.0.1/8
net0/v4 static ok 192.168.0.112/24
lo0/v6 static ok ::1/128
net0/v6 addrconf ok fe80::a00:27ff:fe9c:83e1/10
Copyright © 2014, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 4: Installing the Oracle Solaris 11 Operating System


Chapter 4 - Page 10
3. Verify that DNS is operational.
root@s11-server1:~# nslookup s11-server1
Server: 192.168.0.112
Address: 192.168.0.112#53

Name: s11-server1.mydomain.com
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

Address: 192.168.0.112

Task 2: Configuring the AI Server


After you have verified that the server meets the AI requirements, you are now ready to
configure the AI server. In this task, you configure the AI server to automatically install an
Oracle Solaris 11 desktop client using the AI default settings.
Note: Because you are not using the default IPS service, you will need to adjust the default
AI service accordingly.
ble
Perform the following steps to configure the AI server:
e r a
1. On the S11-Server1 virtual machine, enable the svc:/network/dns/multicast server
tra nsf
in the AI server.
n -
a no
root@s11-server1:~# svcadm enable svc:/network/dns/multicast:default

) h as ฺ
ฺae uide
root@s11-server1:~# svcs | grep dns
online
e t
5:37:22 svc:/network/dns/client:default
online
s ฺn nt G
5:37:48 svc:/network/dns/server:default
e
online
r at tude
2:05:45 svc:/network/dns/multicast:default
i
2. em his S
Create a directory for your AI server.
@
a
root@s11-server1:~# mkdir
q vi –pse/export/ai/basic_ai
t
3. Update the netmasks
h i dฺ file. to u
i ( sha ensevi /etc/netmasks
root@s11-server1:~#
v ic 255.255.255.0
Qa192.168.0.0l
...

d
h ahi
S root@s11-server1:~# getent netmasks 192.168.0.0
192.168.0.0 255.255.255.0
Note: DHCP requires that the network mask for the local subnet be configured in the
/etc/netmasks file.
4. Set the DHCP server to be managed by AI server with the following values:
• DHCP base IP address: 192.168.0.121
• DHCP IP address range: 20
root@s11-server1:~# installadm set-server –i 192.168.0.121 –c 20 –m
Creating DHCP server configuration file
Adding DHCP IP range: 192.168.0.121 [20]
Unable to determine a route for network 192.168.0.0. Setting the route
temporarily to 0.0.0.0; this should be changed to an appropriate value in the
DHCP configuration file. Please see dhcpd(8) for further information.
Warning: AI server will now manage DHCP
Changed Server
Enabling SMF service svc:/network/dhcp/server:ipv4

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 4: Installing the Oracle Solaris 11 Operating System


Chapter 4 - Page 11
root@s11-server1:~# svcs -a | grep dhcp
disabled Jul_09 svc:/network/dhcp/server:ipv6
disabled Jul_09 svc:/network/dhcp/relay:ipv6
disabled 6:43:27 svc:/network/dhcp/relay:ipv4
online 1:43:31 svc:/network/dhcp/server:ipv4
5. Use the installadm create-service command to create an AI service based on the
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

following information:
• Service name: basic_ai
• AI ISO image location: /opt/ora/iso/sol-11_2-ai-x86.iso
• Target directory: /export/ai/basic_ai
root@s11-server1:~# installadm create-service -n basic_ai \
-s /opt/ora/iso/sol-11_2-ai-x86.iso -d /export/ai/basic_ai
0% : Creating service from: /opt/ora/iso/sol-11_2-ai-x86.iso
ble
33% : Transferring contents
e r a
nsf
33% : Creating i386 service: basic_ai
33% : Image path: /export/ai/basic_ai
-tr a
33% : Setting "solaris" publisher URL in default manifest to:
n o n
33% : http://s11-server1.mydomain.com/
s a
) a
33% : SMF Service ‘svc:/system/install/server:default’ will be enabled
h eฺ
e
33% : SMF Service ‘svc:/network/tftp/udp6:default’ will be enabled
tฺa Guid
33% : Creating default-i386 alias
n e
t e sฺ ent
33% : Setting "solaris" publisher URL in default manifest to:
33% :
ira Stud
http://s11-server1.mydomain.com/
m
e his
33% : Setting the default PXE bootfile(s) in the local DHCP configuration to:
@
33% : i
v se t
bios clients (arch 00:00): default-i386/boot/grub/pxegrub2
a
33% : q
dฺ to u
uefi clients (arch 00:07): default-i386/boot/grub/grub2netx64.efi
i
33% :
h
( sha ense
33% : SMF Service ‘svc:/system/install/server:default’ will be enabled
i
Q av lic
33% : SMF Service ‘svc:/network/tftp/udp6:default’ will be enabled

i d 100% : Created Service: 'basic_ai'

ah 100% : Refreshing SMF service svc:/network/tftp/udp6:default


Sh 100% : Refreshing SMF service svc:/system/install/server:default
100% : Restarting SMF service svc:/network/dhcp/server:ipv4
100% : Enabling SMF Service ‘svc:/system/install/server:default’
100% : Enabling SMF Service ‘svc:/network/tftp/udp6:default’
100% : Service 'basic_ai' has been added to the mDNS registry
100% : Service 'default-i386' has been added to the mDNS registry

Note: You can remove an AI service and associated clients by using the installadm
delete-service -r svcname command.
6. Use the installadm list command to verify that your AI service is installed.
root@s11-server1:~# installadm list
Service Name Status Arch Type Secure Alias Aliases Clients Profiles Manifests
------------ ------ ---- ---- ------ ----- ------- ------- -------- ---------
basic_ai on i386 iso no no 1 0 0 1
default-i386 on i386 iso no yes 0 0 0 1

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 4: Installing the Oracle Solaris 11 Operating System


Chapter 4 - Page 12
7. Use the installadm create-client command to add the client MAC addresses for
the S11-Client1 and S11-Client2 virtual machines to the basic_ai service. To obtain the
MAC address, in the VirtualBox Manager:
a. Go to VirtualBox Manager.
b. Select S11-Client1 or S11-Client2.
c. Click Settings on the menu bar of the VirtualBox Manager.
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

d. In the Settings dialog box, select Network in the left pane.


e. In the Network tab, under Adapter 1, expand Advanced section to view the MAC
address.
Make a note of the MAC address. You will be using it frequently in this practice.
f. Close the S11-Client1 Settings window.
root@s11-server1:~# installadm create-client -e 08:00:27:85:C7:D1 -n basic_ai
Adding host entry for 08:00:27:85:C7:D1 to local DHCP configuration.
ble
Created Client: '08:00:27:85:C7:D1'
e r a
Restarting SMF service svc:/network/dhcp/server:ipv4
a nsf
root@s11-server1:~# installadm create-client -e 08:00:27:85:C7:D3 -n basic_ai
o n -tr
a
Adding host entry for 08:00:27:85:C7:D3 to local DHCP configuration. n
a
h eฺ
Created Client: '08:00:27:85:C7:D3's
e )
tฺatheG idwas added to AI server
Restarting SMF service svc:/network/dhcp/server:ipv4
e u
8. Use the installadm list –c command to verify n that
sฺ ent client
basic_ai. t e
ra -cStud
m ilist
@ e Arch
root@s11-server1:~# installadm
h isSecure Custom Args Custom Grub
i
Service Name Client Address
t
av use ---- ------ ----------- -----------
ฺ q
------------ --------------
d
i08:00:27:85:C7:D1
basic_ai
a h e to i386 no no no

i ( sh ens 08:00:27:85:C7:D3 i386 no no no


9. Create
Q licto store your manifest files.
va directory
aroot@s11-server1:~#
h i d mkdir –p /var/tmp/manifests
a Note: Do not place manifest copies under the service directory that was created by the
Sh installadm utility. The service directory structure is private to installadm and must not
be used for storage by users.
10. Copy the default manifest file to the /var/tmp/manifests/basic_ai.xml file.
root@s11-server1:~# cp \
/export/ai/basic_ai/auto_install/manifest/default.xml \
/var/tmp/manifests/basic_ai.xml

11. Modify the /var/tmp/manifests/basic_ai.xml file XML tag elements by using the
following:
• Change
<ai_instance name="default">
to
<ai_instance name="basic_ai" auto_reboot="true" >
• Change
<origin name="http://pkg.oracle.com/solaris/release"/>

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 4: Installing the Oracle Solaris 11 Operating System


Chapter 4 - Page 13
to
<origin name="http://s11-server1.mydomain.com"/>
• Change:
<name>pkg:/group/system/solaris-large-server</name>
to
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

<name>pkg:/group/system/solaris-small-server</name>

12. Use the diff command to view the differences between the basic_ai.xml file and the
default.xml file.
root@s11-server1:~# diff /var/tmp/manifests/basic_ai.xml \
/export/ai/basic_ai/auto_install/manifest/default.xml
9c9
< <ai_instance name="basic_ai" auto_reboot="true">
---
ble
> <ai_instance name="default">
e r a
nsf
72c72
< <origin name="http://s11-server1.mydomain.com"/>
-tra
---
n o n
>
a
<origin name="http://pkg.oracle.com/solaris/release"/>
s
90c90
) a
h eฺ
< e
tฺa Guid
<name>pkg:/group/system/solaris-small-server</name>
---
n e
>
e sฺ ent
<name>pkg:/group/system/solaris-large-server</name>
t
ira Snamed
13. Create a MAC address–based criteria manifest
m t ud criteria_basic_ai.xml in the
/var/tmp/manifests directory.eUse theis
Client1 and S11-Client2 in v i
the @
same e t h MACorder
sequential
addresses of the network clients S11-
to avoid any error.
q a s
i dฺ vito/var/tmp/manifests/criteria_basic_ai.xml
root@s11-server1:~#
h
u
i ( sha ename="mac">
n se
<ai_criteria_manifest>

av <range>lic
<ai_criteria

id Q
a h 08:00:27:85:C7:D1

Sh 08:00:27:85:C7:D3
</range>
</ai_criteria>
</ai_criteria_manifest>
Note: If the AI client does not match the criteria for a service (in this case, a specific MAC
address), the AI service will use the default manifest when installing the OS.
14. Add the manifest_demo manifest and criteria manifest to the basic_ai service.
root@s11-server1:~# installadm create-manifest -n basic_ai \
-f /var/tmp/manifests/basic_ai.xml \
-C /var/tmp/manifests/criteria_basic_ai.xml
Created Manifest: 'basic_ai'
When a custom AI manifest (basic_ai.xml in this example) is defined for this install
service and the client matches the criteria that have been specified (in the
criteria_basic_ai.xml file) for the custom AI manifest, the client will use that
manifest. In a case where the client characteristics match multiple AI manifests, the client
characteristics are evaluated in the order of mac, ipv4, platform, arch, cpu, and mem.

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 4: Installing the Oracle Solaris 11 Operating System


Chapter 4 - Page 14
If the client does not match the criteria for any custom AI manifest, the client uses the
default AI manifest.
15. Use the installadm list –m command to verify that your manifests have been added
to the basic_ai service.
root@s11-server1:~# installadm list -m
Service Name Manifest Name Type Status Criteria
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

------------ ------------- ---- ------ --------


basic_ai basic_ai xml active mac = 08:00:27:85:C7:D1 -
08:00:27:85:C7:D3
orig_default derived default none

default-i386 orig_default derived default none

Task 3: Deploying the OS to a Network Client


ble
After you have completed AI server configuration, it is time to test your work by deploying the
e r a
Oracle Solaris 11 operating system to a network client. This practice will be an example of
a nsf
performing a text installation over the network.
Perform the following steps to deploy the OS to a network client: o n -tr
1. Verify that the S11-Server1 VM is running. a n
a s
h eฺ
2. In the VirtualBox Manager, start the S11-Client1VM. This will boot the S11-Client1 virtual
e )
n e tฺa Guid
machine. If the AI server is configured correctly, you should see the OS installation begin.

t e sฺ ent
After you click the Start button, a Select start-up disk dialog box might appear for you to
select a virtual optical disk. You may click the Cancel button to proceed.
m ira Stud
Note: If the S11-Client1 virtual machine fails to boot with a “No bootable medium found”
@ e his
a i
error, change the virtual machine adapter. To change the adapter type, open the Oracle VM
v se t
VirtualBox Manager, select the S11-Client1 virtual machine, and click Settings. In the
i q
dฺ to u
Settings dialog box, select Network and click Advanced under Adapter 1. Select another
h
i ( sha ense
from the Adapter Type menu. Restart the S11-Client1 virtual machine.

av lic
3. When the S11-Client1 system starts the GNU GRUB menu, select the Oracle Solaris
Q
11.2 Text Installer and command line boot option.
i d
ah
Sh

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 4: Installing the Oracle Solaris 11 Operating System


Chapter 4 - Page 15
Note:
• When you choose the “default” boot option, the interactive system configuration menus
you used during the “Text Install” practice will be available to you during this OS
installation. Also, the IPS server is not used.
• The OS installation will take a while to complete.
4. During the OS installation process, use the configuration data that follows to complete the
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

Text installation.
Note: The Text installer program directs you to press F2 or ESC+2 to move to the next step
in the installation process. If pressing ESC + 2 does not work, try pressing F2.
• Installation menu: Install Oracle Solaris
• Discovery Selection: Local Disks
• Disks: Default option
• GPT Partitions: Use the entire disk
ble
• Computer name: s11-client1 e r a
• Network configuration: Automatically a nsf
• Time zone: Use your local region o n -tr
• Language: Use your local language a n
a s
h eฺ
• )
Date and time: Set to current date and time

e
tฺa Guid
Keyboard: Use your local keyboard
n e
• Root password: oracle1
t e sฺ ent
• User account:
m ira Stud
− Your real name: oracle @ e his
a i
v se t
− Username: oracle
i q
dฺ to u
h
sha ehas
− Password: e
oracle1
(
5. After thei installation n scompleted, reboot (by pressing F8) the S11-Client1 virtual
a v
machine. l ic
i d Q
h ah7. VerifyS11-Client1
6. After completes the initial boot, log in as the oracle user and su to root.
S that the S11-Client1 virtual machine network configuration is set up correctly.
root@s11-client1:~# ipadm show-addr
ADDROBJ TYPE STATE ADDR
lo0/v4 static ok 127.0.0.1/8
net0/v4 dhcp ok 192.168.0.121/24
net1/v4 dhcp ok 192.168.0.122/24
net2/v4 dhcp ok 192.168.56.105/24
lo0/v6 static ok ::1/128
net2/v6 addrconf ok fe80::a00:27ff:fe87:a490/10

root@s11-client1:~# ping 192.168.0.112


192.168.0.112 is alive
8. Shut down (power off) the S11-Client1 virtual machine.
9. Open the VirtualBox Manager window.
10. Verify that the S11-Server1 virtual machine is running.

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 4: Installing the Oracle Solaris 11 Operating System


Chapter 4 - Page 16
11. From VirtualBox Manager, start the S11-Client2 VM. This will boot the S11-Client2 VM. If
the AI server is configured correctly, you should see the OS installation begin.
After you click the Start button, a Select start-up disk dialog box might appear for you to
select a virtual optical disk. You may click the Cancel button to proceed.
12. When the S11-Client2 system starts the GNU GRUB menu, select the Oracle Solaris
11.2 Automated Install boot option.
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

ble
e r a
a nsf
o n -tr
a n
a
h eฺs
e )
n e tฺa Guid
t e sฺ ent
m ira Stud
@ e his
Note:
a i
v se t
• When you choose
i q
dฺOS installation.
this u the interactive system configuration is not available
boot option,
a
to you duringh this e t o IPS is used during the OS installation.
h
(s installation s
n will take a while to complete.
• Thei OS
v l i c e
•Qa The message traffic indicates that the IPS server is providing the installation packages.
i d
h ah 13. Note the disk activity icon in the IPS server (S11-Server1) virtual machine window.
S

Green indicates a read operation is being performed.


14. After the installation has completed, reboot (by pressing F8) the S11-Client2 virtual
machine.
15. The SCI tool will be invoked during the OS startup. Enter the following system configuration
information:
Note: It may take some time to display the SCI tool.
• Computer Name: s11-client2
• Network configuration: Automatically
• Time zone: Use your local region
• Language: Use your local language
• Language Territory: Use your local language territory
Copyright © 2014, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 4: Installing the Oracle Solaris 11 Operating System


Chapter 4 - Page 17
• Date and time: Set to current date and time
• Keyboard: Use your local keyboard
• Root password: oracle1
• User account:
− Your real name: oracle
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

− Username: oracle
− Password: oracle1
• Support registration: Default options
• Support: Network Configuration: Default (no proxy)
16. After S11-Client2 completes the initial boot, log in as the oracle user and use su to root.
17. Verify that the S11-Client2 virtual machine network configuration is set up correctly.
root@s11-client2:~# ipadm show-addr
ble
e r a
nsf
ADDROBJ TYPE STATE ADDR
lo0/v4 static ok 127.0.0.1/8
-tra
net0/v4
net1/v4
dhcp
dhcp
ok
ok
192.168.0.124/24
192.168.0.123/24 n o n
s a
lo0/v6
net0/v6
static

) a
ok
h eฺ
addrconf ok
::1/128
fe80::a00:27ff:fe85:c7d3/10
net1/v6 e
tฺa Guid
addrconf ok fe80::a00:27ff:fe85:c7d4/10
n e
t e sฺ ent
ira Stud
root@s11-client2:~# ping 192.168.0.112
192.168.0.112 is alive
m
e virtual is machine.
i @
18. Shut down (power off) the S11-Client2 t h
ฺ q av use
a h id to
sh ens e
i (
Q av lic
a h id
Sh

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 4: Installing the Oracle Solaris 11 Operating System


Chapter 4 - Page 18
Practice 4-4: Configuring Oracle Solaris 11 Instances
Overview
After the Oracle Solaris 11 operating system is installed, the instance must be configured with
attributes such as host name, IP address, naming services, and user credentials. The
sysconfig utility is the interface for configuring, reconfiguring, and unconfiguring the Solaris
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

instance. A Solaris instance is defined as a boot environment in either a global or a nonglobal


zone.
There are three operations that are performed using the sysconfig utility:
• Unconfiguration
• Configuration
• System configuration (SC) profile creation
During this practice, you work with the sysconfig utility to unconfigure and configure Solaris
ble
11 images, and create SC profiles.
e r a
a nsf
Task 1: Unconfigure an Oracle Solaris 11 Image
Perform the following steps to unconfigure a configured Solaris 11 image: o n -tr
a n
a s
1. Verify whether the S11-Server1 VM is running. If not, start it now using user ID oracle and
h eฺ
)
password oracle1. Then, assume the root role using password as oracle1.
e
n e tฺa Guid
2. Open the Oracle VM VirtualBox Manager and start the S11-Client1 VM.
3. Determine the current host name and IP address.
t e sฺ ent
root@s11-client1:~# hostname
m ira Stud
s11-client1
@ e his
a i
v se t
i
root@s11-client1:~#
d ฺ q ipadm ushow-addr
ADDROBJ a h e t o
( s h n sTYPE STATE ADDR

a v i
lo0/v4
net0/v4 l i c e static
dhcp
ok
ok
127.0.0.1/8
192.168.0.121/24

i d Q net1/v4 dhcp ok 192.168.0.122/24


ah
Sh
net2/v4 dhcp ok 192.168.56.105/24
lo0/v6 static ok ::1/128
net2/v6 addrconf ok fe80::a00:27ff:fe87:a490/10

Note: The default network interface is net0.


4. Use the sysconfig utility to return the Oracle Solaris 11 to an unconfigured (pristine)
state.
Note: After running the sysconfig command, wait for a few minutes for the prompt to
return.
root@s11-client1:~# sysconfig unconfigure
This program will unconfigure your system.

Do you want to continue (yes/[no])? yes


...
...
...
Unconfiguration could place the system in an undesirable state
See smf(5) for layer information.

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 4: Installing the Oracle Solaris 11 Operating System


Chapter 4 - Page 19
Do you want to continue (yes/[no])? yes
Please wait while services are unconfigured. This may take a few moments...
root@s11-client1:~# <Press Enter key>

Enter user name for system maintenance (control-d to bypass): root


Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

Enter root password (control-d to bypass): solaris


single-user privilege assigned to root on /dev/console.
Entering System Maintenance Mode
...
root@unknown:~#
Note: The prompt displayed after entering the system maintenance mode could differ from
what is shown in the preceding output.
ble
5. Determine the current host name and IP address.
e r a
root@unknown:~# ipadm show-addr
a nsf
ADDROBJ TYPE STATE ADDR
o n -tr
lo0/v4 static ok
a
127.0.0.1/8
n
lo0/v6
net2/v4
static
dhcp
ok
a
h eฺ
disabled
s ::1/128
?
e )
tฺa Guid
net2/v6 addrconf disabled ::

n e
sฺ ent
net0/v4 dhcp disabled ?
net1/v4
t e dhcp disabled ?
6. Determine if the default user account m oracle ud
ira stillSexists.
t
root@unknown:~# logins @
e his
a i
v se t
| grep oracle
root@unknown:~#
i q
dฺ a pristine usystem. The next time the system is booted, the System
At this point, youhhave
a will be t o
Configuration
( shTool e n serun. System Configuration Tool helps you establish a new system
v i
configuration.
a lic
Q
7. d Reboot the system.
h a i
h root@unknown:~# init 6
S ...
...
8. When the System Configuration Tool is available, use the following properties to configure
the system:
Note: The System Configuration Tool may direct you to press F2 or ESC + 2 to move to the
next step in the installation process. If pressing F2 does not work, try pressing ESC + 2.
• Host name: s11-client1
• Network configuration: Manually
− Network Interface: net0 (e1000g0)
− IP Address: 192.168.0.142
− Configure DNS: Yes
− DNS Server IP address: 192.168.0.112
− Search domain: mydomain.com
− Alternate Name Service: None

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 4: Installing the Oracle Solaris 11 Operating System


Chapter 4 - Page 20
• Time zone: Use your local region
• Language: Use your local language
• Language Territory: Use your local language territory
• Date and time: Set to current date and time
• Keyboard: Use your local keyboard
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

• Root password: oracle1


• User account:
− Your real name: oracle
− Username: oracle
− Password: oracle1
SC profile successfully generated as:
/etc/svc/profile/sysconfig/sysconfig-20140711-055510/sc_profile.xml
ble
e r a
Exiting System Configuration Tool. Log is available at:
a nsf
/system/volatile/sysconfig/sysconfig.log.224
o n -tr
Hostname: s11-client1
a n
a s
h eฺ
s11-client1 console login:
e )
a use usuidto root.
9. Log in to virtual machine S11-Client1 as user oracletฺand
ฺ n e t G
10. Determine the current host name and IP address.
e s n
root@s11-client1:~# hostname
i r at tude
s11-client1
@ em his S
q a vi show-addr
s e t
h i dฺ TYPEto uSTATE
root@s11-client1:~# ipadm
ADDROBJ
lo0/v4sh
a s e ADDR

v i ( c e n static ok 127.0.0.1/8

Q anet0/v4 li static ok 192.168.0.142/24

h i d net0/v6
lo0/v6 static ok ::1/128

h a addrconf ok fe80::a00:27ff:fe85:c7d1/10
S
Task 2: Configure the Oracle Solaris 11 Image Using a System Configuration
Profile
The sysconfig utility can be used to generate a system configuration (SC) profile using the
create-profile subcommand. The resulting XML profile can later be used with the
sysconfig configure command to configure systems non-interactively. Valid SC profile
names must include a .xml extension.
Perform the following steps to configure the Oracle Solaris 11 image using an SC profile:
1. On the S11-Client1 virtual machine, create an SC profile.
root@s11-client1:~# sysconfig create-profile -o /var/tmp/iloves11_profile
Use the following system configuration attributes while creating the SC profile:
• Host name: iloves11
• Network configuration: Manually
− Network Interface: net0 (e1000g0)
− IP Address: 192.168.0.143
Copyright © 2014, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 4: Installing the Oracle Solaris 11 Operating System


Chapter 4 - Page 21
− Configure DNS: Yes
− DNS Server IP address: 192.168.0.112
− Search domain: mydomain.com
− Alternate Name Service: None
• Time zone: Use your local region
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

• Language: Use your local language


• Keyboard: Use your local keyboard
• Root password: oracle2
• User account:
− Your real name: oracle2
− Username: oracle2
− Password: oracle2 ble
e r a
a nsf
o n -tr
a n
a s
h eฺ
e )
n e tฺa Guid
t e sฺ ent
m ira Stud
@ e his
a i
v se t
i q
dฺ to u
h
i ( sha ense
Q av lic
i d
ah
Sh

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 4: Installing the Oracle Solaris 11 Operating System


Chapter 4 - Page 22
The System Configuration Summary should look similar to the following:
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

ble
e r a
a nsf
o n -tr
a n
a s
h eฺ
e )
n e tฺa Guid
t e sฺ ent
m ira Stud
@ e his
a i
v se t
i q
dฺ SCtoprofile.
u
h
sha ensecd /var/tmp
2. Explore the newly created
i (
lic
root@s11-client1:~#

Q av
a h id root@s11-client1:/var/tmp# more iloves11_profile/sc_profile.xml
Sh <?xml version='1.0' encoding='US-ASCII'?>
<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
<!-- Auto-generated by sysconfig -->
<service_bundle type="profile" name="sysconfig">
<service version="1" type="service" name="system/identity">
<instance enabled="true" name="node">
<property_group type="application" name="config">
<propval type="astring" name="nodename" value="iloves11"/>
</property_group>
</instance>
</service>
<service version="1" type="service" name="network/install">
<instance enabled="true" name="default">
root@s11-client1:/var/tmp#

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 4: Installing the Oracle Solaris 11 Operating System


Chapter 4 - Page 23
3. Use the iloves11_profile/sc_profile.xml profile to reconfigure the system.
Note: After running the sysconfig command, wait for a few minutes for the prompt to
return.
root@s11-client1:/var/tmp# sysconfig configure -c
/var/tmp/iloves11_profile/sc_profile.xml
This program will re-configure your system.
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

Do you want to continue (yes/[no])? yes


Please wait while services are unconfigured. This may take a few moments...
root@s11-client:/var/tmp# <Press Enter key>
...
iloves11 console login:
4. Log in to the system as user oracle2 with password oracle2 and su to root with
password oracle2.

bl e
Task 3: Set the Host Name, Time Zone, and Naming Service
fe r a
The primary repository for all naming services configuration is the SMF repository. You cann suse

n - tra
the SMF utilities such as svccfg, svcprop, and svcadm to set and modify any configuration
parameter for the host name and a naming service.
n o
Perform the following steps to reconfigure the host name, time zone, and a
s naming service:
h a
1. On the S11-Client1 virtual machine, change the host name )to client6. ฺ
ฺ a e i d e
ฺ n et t Gusetprop
root@iloves11:~# svccfg -s svc:/system/identity:node
config/nodename=client6
t e s e n
a
iridentity:node d
root@iloves11:~# svcadm refresh svc:/system/identity:node
tu
root@iloves11:~# svcadm restart
e m s S
...
Hostname: client6 av
i@ e thi
i q
dฺiloves11
t o us rpcbind terminating on signal.
h
Jul 10 23:51:10 rpcbind:
...
i ( sha ense
avPress Enter
Note:
Q licif the prompt does not return.
a h id root@iloves11:~# exit
Sh logout
oracle@iloves11:~$ exit
logout

client6 console login: oracle2


Password: oracle2
oracle@client6:~$ su -
Password: oracle2
root@client6:~#
2. On the S11-Client1 virtual machine, change the time zone to US/Central.
root@client6:~# svccfg -s timezone:default \
setprop timezone/localtime=US/Central

root@client6:~# svcadm refresh timezone:default

root@client6:~# date
Fri Jul 11 01:53:51 CDT 2014
Copyright © 2014, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 4: Installing the Oracle Solaris 11 Operating System


Chapter 4 - Page 24
3. On the S11-Client1 virtual machine, configure the DNS naming service using these
properties.
• Nameserver address: 192.168.0.112
• DNS search: mydomain.com
root@client6:~# svccfg
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

svc:> select dns/client


svc:/network/dns/client> setprop config/search=mydomain.com
svc:/network/dns/client> setprop config/nameserver=192.168.0.112
svc:/network/dns/client> select dns/client:default
svc:/network/dns/client:default> refresh
svc:/network/dns/client:default> select name-service/switch
svc:/system/name-service/switch> setprop config/host="files dns"
svc:/system/name-service/switch> select system/name-service/switch:default
svc:/system/name-service/switch:default> refresh
ble
svc:/system/name-service/switch:default> validate
e r a
svc:/system/name-service/switch:default> exit
a nsf
root@client6:~# svcadm enable dns/client
o n -tr
root@client6:~# svcadm refresh name-service/switch
a n
root@client6:~# grep host /etc/nsswitch.conf
a s
h eฺ
hosts: files dns
e )
root@client6:~# tail -4 /etc/resolv.conf e
n tฺa Guid
# See resolv.conf(4) for details. es
ฺ n t
t
ira Stud e
m
e his
search mydomain.com
i @
v se t
nameserver
a
192.168.0.112
q
h i dฺnslookup
t o u
a se
sh192.168.0.112
root@client6:~# s11-server1

i ( e n
lic
Server:
v
aAddress:
i d Q 192.168.0.112#53

ah
Sh Name: s11-server1.mydomain.com
Address: 192.168.0.112
root@client6:~#
4. Power off the S11-Client1 virtual machine.

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 4: Installing the Oracle Solaris 11 Operating System


Chapter 4 - Page 25
Practice 4-5: Customizing the Automated Installation
Overview
Automatic Installation allows you to customize your Oracle Solaris 11 installations by adding
system configuration (SC) profiles. SC profiles are used to customize the system attributes such
as host name, IP address, naming services, and use credentials of the AI clients.
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

Task 1: Customizing an AI Service


Now that you have AI working, you are ready to customize the AI service. In this task, you
configure the AI server to automatically install an Oracle Solaris 11 desktop client using the AI
custom system configuration profile.
Perform the following steps on S11-Server1 VM to customize the AI service:
1. Disable the basic_ai AI service and show the results.
bl e
root@s11-server1:~# installadm list

fe r a
Service Name Status Arch Type Secure
s
Alias Aliases Clients Profiles Manifests
n
tr2a
------------ ------ ---- ---- ------
----- ------- ------- -------- ---------
basic_ai on i386 iso no no 1 2 0
n -
0 no
default-i386 on i386 iso no yes 0 0
a 1

) h as ฺ
ฺae uide
root@s11-server1:~# installadm set-service –D –n basic_ai
Changed Server Status Service: 'basic_ai'
e t
s ฺn nt G
Refreshing SMF service svc:/system/install/server:default
e
i r at tude
em his Alias
root@s11-server1:~# installadm
@
list S Aliases Clients Profiles Manifests
vi ----
Service Name Status Arch
------------ ------a----
q s e t
Type Secure

dฺ i386 u ------ ----- ------- ------- -------- ---------


basic_ai
a h i
off
t o iso no no 1 2 0 2

sh ens
default-i386 on ei386 iso no yes 0 0 0 1
i (
2.
Qa
Remove lic AI service and show the results.
v the basic_ai
d
ahi
root@s11-server1:~# installadm delete-service -r basic_ai

Sh WARNING: The service you are deleting, or a dependent alias, is the


alias for the default i386 service. Without the 'default-i386'
service, i386 clients will fail to boot unless explicitly assigned to
a service using the create-client subcommand.
Are you sure you want to delete this alias? [y|N]: y
Removing this service's bootfile(s) from local DHCP configuration
Deleted Service: 'default-i386'
Removing host entry '08:00:27:85:C7:D1' from local DHCP configuration.
Removing host entry '08:00:27:85:C7:D3' from local DHCP configuration.
Warning: mDNS registry of service basic_ai could not be verified.
Deleted Service: 'basic_ai'
Refreshing SMF service svc:/system/install/server:default
Restarting SMF service svc:/network/dhcp/server:ipv4

root@s11-server1:~# installadm list


There are no services configured on this server.

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 4: Installing the Oracle Solaris 11 Operating System


Chapter 4 - Page 26
Note: The output might differ.
3. Create a directory for the custom AI service.
root@s11-server1:~# mkdir –p /export/ai/custom_ai

4. Use the installadm create-service command to create another AI service based on


the following information:
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

• Service name: custom_ai


• AI ISO image location: /opt/ora/iso/sol-11_2-ai-x86.iso
• Target directory: /export/ai/custom_ai
root@s11-server1:~# installadm create-service -n custom_ai \
-s /opt/ora/iso/sol-11_2-ai-x86.iso -d /export/ai/custom_ai
0% : Creating service from: /opt/ora/iso/sol-11_2-ai-x86.iso
33% : Transferring contents
33% : Creating i386 service: custom_ai
ble
33% : Image path: /export/ai/custom_ai
e r a
33% : Setting "solaris" publisher URL in default manifest to:
ansf
33% : http://s11-server1.mydomain.com/
o n -tr
33% : Creating default-i386 alias
a n
a
h eฺs
33% : Setting "solaris" publisher URL in default manifest to:
33% : http://s11-server1.mydomain.com/
e )
tฺa Guid
33% : Setting the default PXE bootfile(s) in the local DHCP configuration to:
33% :
n e
bios clients (arch 00:00): default-i386/boot/grub/pxegrub2

t
33% :
e sฺ ent
uefi clients (arch 00:07): default-i386/boot/grub/grub2netx64.efi

m ira Stud
33% :

@ e his
100% : Created Service: 'custom_ai'

a i
v se t 100% : Refreshing SMF service svc:/system/install/server:default

i q
dฺ to u 100% : Restarting SMF service svc:/network/dhcp/server:ipv4
h
sha ense
100% : Service 'custom_ai' has been added to the mDNS registry

i ( 100% : Service 'default-i386' has been added to the mDNS registry

5. Use
Q lic list command to verify that your AI service is installed.
athev installadm
a h id root@s11-server1:~# installadm list
Sh Service Name Status Arch Type Secure Alias Aliases Clients Profiles Manifests
------------ ------ ---- ---- ------ ----- ------- ------- -------- ---------
custom_ai on i386 iso no no 1 0 0 1
default-i386 on i386 iso no yes 0 0 0 1

6. Use the installadm create-client command to add the MAC address of S11-Client3
VM to the custom_ai service.
root@s11-server1:~# installadm create-client -e 08:00:27:85:C7:D5 -n custom_ai
Adding host entry for 08:00:27:85:C7:D5 to local DHCP configuration.
Created Client: '08:00:27:85:C7:D5'
Restarting SMF service svc:/network/dhcp/server:ipv4

7. Use the installadm list –c command to verify that the client was added to AI server
custom_ai.
root@s11-server1:~# installadm list -c
Service Name Client Address Arch Secure Custom Args Custom Grub
------------ -------------- ---- ------ ----------- -----------
custom_ai 08:00:27:85:C7:D5 i386 no no no

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 4: Installing the Oracle Solaris 11 Operating System


Chapter 4 - Page 27
8. Copy the /var/tmp/manifests/basic_ai.xml file to the
/var/tmp/manifests/custom_ai.xml file.
root@s11-server1:~# cp /var/tmp/manifests/basic_ai.xml \
/var/tmp/manifests/custom_ai.xml

9. Modify the /var/tmp/manifests/custom_ai.xml file XML tag elements such that it


reflects the following detail:
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

• AI instance name (ai_instance name): custom_ai


10. Use the diff command to view the differences between the custom_ai.xml file and the
basic_ai.xml file.
root@s11-server1:~# diff /var/tmp/manifests/custom_ai.xml \
/var/tmp/manifests/basic_ai.xml
9c9
< <ai_instance name="custom_ai" auto_reboot="true">
ble
---
e r a
> <ai_instance name="basic_ai" auto_reboot="true">
a nsf
11. Create a MAC address–based criteria manifest named criteria_custom_ai.xml in the
/var/tmp/manifests directory. Use the MAC addresses of the network client S11- o n -tr
Client3. a n
a
h eฺ s
)
root@s11-server1:~# vi /var/tmp/manifests/criteria_custom_ai.xml
e
<ai_criteria_manifest>
n e tฺa Guid
<ai_criteria name="mac">
t e sฺ ent
ira Stud
<value>
08:00:27:85:C7:D5
m
e his
</value>
</ai_criteria> av
i @ e t
q
dฺ to u s
h i
</ai_criteria_manifest>
haclient does
Note: If thesAI
( n senot match the criteria for a service (in this case, a specific MAC
i e
c will use the default manifest when installing the OS.
v the AIliservice
address),
a
id the results. 12. Q
Add the custom_ai manifest and criteria manifest to the custom_ai service and show
a h
Sh root@s11-server1:~# installadm create-manifest –n custom_ai \
-f /var/tmp/manifests/custom_ai.xml \
–C /var/tmp/manifests/criteria_custom_ai.xml
Created Manifest: ‘custom_ai’

root@s11-server1:~# installadm list -c -m


Service Name Client Address Arch Secure Custom Args Custom Grub
------------ -------------- ---- ------ ----------- -----------
custom_ai 08:00:27:85:C7:D5 i386 no no no
Service Name Manifest Name Type Status Criteria
------------ ------------- ---- ------ --------
custom_ai custom_ai xml active mac = 08:00:27:85:C7:D5
orig_default derived default none
default-i386 orig_default derived default none

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 4: Installing the Oracle Solaris 11 Operating System


Chapter 4 - Page 28
13. Use the sysconfig utility to create a profile for S11-Client3:
root@s11-server1:~# sysconfig create-profile \
-o /var/tmp/manifests/client3_profile
Use the following properties while creating the profile for S11-Client3:
• Host name: s11-client3
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

• Network configuration: Manually


− Network Interface: net0 (e1000g0)
− IP Address: 192.168.0.144
− Configure DNS: Yes
− DNS Server IP address: 192.168.0.112
− Search domain: mydomain.com
− Alternate Name Service: None
ble
• Time zone: Use your local region
e r a
• Language: Use your local language
a nsf
• Local: Territory: Use your local territory
o n -tr
• Keyboard: Use your local keyboard a n
• Root password: oracle1 a s
h eฺ
e )
• User account:
n e tฺa Guid
− Your real name: oracle
t e sฺ ent
− Username: oracle
m ira Stud
− Password: oracle1 @e h is
i
avDefault e t
• q
Support registration:
ฺ u soptions
• h id Configuration:
Support: Network
a to Default (no proxy)
h s e
v i (s icen
Q a l
i d
ah
Sh

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 4: Installing the Oracle Solaris 11 Operating System


Chapter 4 - Page 29
Note: The sysconfig create-profile utility launches a system configuration tool
similar to the System Configuration Tool you used during the Text installation in
Practice 4-1.
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

ble
e r a
a nsf
o n -tr
a n
a s
h eฺ
e )
n e tฺa Guid
t e sฺ ent
m ira Stud
@ e his
a i
v se t
i q
dฺ to u
h
i ( sha ense
Q av lic
i d
ah
Sh

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 4: Installing the Oracle Solaris 11 Operating System


Chapter 4 - Page 30
The System Configuration Summary should look similar to the following:
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

ble
e r a
a nsf
o n -tr
a n
a s
h eฺ
e )
n e tฺa Guid
t e sฺ ent
m ira Stud
@ e his
a i
v se t
i ฺ
dtheq u
a
14. View the contentshof t o
S11-Client3
e profile.
h s
(s icen more /var/tmp/manifests/client3_profile/sc_profile.xml
v i
root@s11-server1:~#
l
a<?xml version='1.0'
i d Q encoding='UTF-8'?>

a h <!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">

Sh <!-- Auto-generated by sysconfig -->


<service_bundle type="profile" name="sysconfig">
<service version="1" type="service" name="system/identity">
<instance enabled="true" name="node">
<property_group type="application" name="config">
<propval type="astring" name="nodename" value="s11-client3"/>
</property_group>
</instance>
</service>
<service version="1" type="service" name="network/install">
<instance enabled="true" name="default">
<property_group type="application" name="install_ipv6_interface">
<propval type="astring" name="stateful" value="yes"/>
<propval type="astring" name="address_type" value="addrconf"/>
<propval type="astring" name="name" value="net0/v6"/>
<propval type="astring" name="stateless" value="yes"/>
</property_group>
<property_group type="application" name="install_ipv4_interface">
Copyright © 2014, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 4: Installing the Oracle Solaris 11 Operating System


Chapter 4 - Page 31
<propval type="net_address_v4" name="static_address"
value="192.168.0.144/24"/>
<propval type="astring" name="name" value="net0/v4"/>
<propval type="astring" name="address_type" value="static"/>
</property_group>
</instance>
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

</service>
<service version="1" type="service" name="network/physical">
<instance enabled="true" name="default">
<property_group type="application" name="netcfg">
<propval type="astring" name="active_ncp" value="DefaultFixed"/>
</property_group>
</instance>
</service>
<service version="1" type="service" name="system/name-service/switch">
ble
<property_group type="application" name="config">
e r a
<propval type="astring" name="default" value="files"/>
a nsf
<propval type="astring" name="host" value="files dns"/>
o n -tr
</property_group>
a n
<instance enabled="true" name="default"/>
a s
h eฺ
</service>
e )
n e tฺa Guid
<service version="1" type="service" name="network/dns/client">

sฺ ent
<property_group type="application" name="config">
t e
<property type="net_address" name="nameserver">

m
<net_address_list> ira Stud
@ e his
<value_node value="192.168.0.112"/>

a i
v se t
</net_address_list>

i q
dฺ to u
</property>
h
sha ense
<property type="astring" name="search">

i (
lic
<astring_list>

Q av <value_node value="mydomain.com"/>
i d
ah
</astring_list>

Sh </property>
</property_group>
<instance enabled="true" name="default"/>
</service>
<service version="1" type="service" name="system/name-service/cache">
<instance enabled="true" name="default"/>
</service>
<service version="1" type="service" name="system/keymap">
<instance enabled="true" name="default">
<property_group type="application" name="keymap">
<propval type="astring" name="layout" value="US-English"/>
</property_group>
</instance>
</service>
<service version="1" type="service" name="system/environment">
<instance enabled="true" name="init">
<property_group type="application" name="environment">
<propval type="astring" name="LANG" value="en_US.UTF-8"/>
Copyright © 2014, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 4: Installing the Oracle Solaris 11 Operating System


Chapter 4 - Page 32
</property_group>
</instance>
</service>
<service version="1" type="service" name="system/timezone">
<instance enabled="true" name="default">
<property_group type="application" name="timezone">
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

<propval type="astring" name="localtime" value="US/Pacific"/>


</property_group>
</instance>
</service>
<service version="1" type="service" name="system/config-user">
<instance enabled="true" name="default">
<property_group type="application" name="root_account">
<propval type="astring" name="type" value="role"/>
<propval type="astring" name="login" value="root"/>
ble
e r a
nsf
<propval type="astring" name="password"
value="$5$tojgJh1/$aiar2510EovNtw
PXjP8Kbg03HUU898qK3AZjDnUI/6/"/>
-tra
</property_group>
n o n
s a
<property_group type="application" name="user_account">

) a
h eฺ
<propval type="astring" name="roles" value="root"/>
e
tฺa Guid
<propval type="astring" name="shell" value="/usr/bin/bash"/>
n e
sฺ ent
<propval type="astring" name="login" value="oracle"/>
t e
<propval type="astring" name="password"
ira Stud
value="$5$8Opso2ip$dLraJuYovRCoST
m
e his
w43169/Pguv.GmxqdUfuSMcCpAfi9"/>
@
a i
v se t
<propval type="astring" name="type" value="normal"/>
q
dฺ to u
<propval type="astring" name="sudoers" value="ALL=(ALL) ALL"/>
i
h
sha ense
<propval type="count" name="gid" value="10"/>

i ( <propval type="astring" name="description" value="oracle"/>

Q av lic
<propval type="astring" name="profiles" value="System Administrator"/>

i d </property_group>
ah
Sh
</instance>
</service>
<service version="1" type="service" name="system/fm/asr-notify">
<instance enabled="true" name="default">
<property_group type="application" name="autoreg">
<propval type="astring" name="user" value="anonymous@oracle.com"/>
</property_group>
</instance>
</service>
<service version="1" type="service" name="system/ocm">
<instance enabled="true" name="default">
<property_group type="application" name="reg">
<propval type="astring" name="user" value="anonymous@oracle.com"/>
</property_group>
</instance>
</service>
</service_bundle>

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 4: Installing the Oracle Solaris 11 Operating System


Chapter 4 - Page 33
15. Add the system configuration profile manifest to custom_ai service and show the results.
root@s11-server1:~# installadm create-profile –n custom_ai \
-f /var/tmp/manifests/client3_profile/sc_profile.xml \
–p client3_profile -C /var/tmp/manifests/criteria_custom_ai.xml
Created Profile: 'client3_profile'
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

root@s11-server1:~# installadm list -p -n custom_ai


Service Name Profile Name Criteria
------------ ------------ --------
custom_ai client3_profile mac = 08:00:27:85:C7:D5
16. Validate the system configuration profile.
root@s11-server1:~# installadm validate -n custom_ai -p client3_profile
Validating static profile client3_profile...
Passed
ble
root@s11-server1:~#
e r a
Task 2: Deploying the OS to a Network Client a nsf
After you have completed AI server configuration, it is time to test your work by deploying the o n -tr
Oracle Solaris 11 operating system to a network client. a n
a s
h eฺ
Perform the following steps to deploy the OS to a network client:
e )
n e tฺa Guid
1. Verify that the S11-Server1 virtual machine is running.

t e sฺ ent
2. In the VirtualBox Manager, start the S11-Client3 VM. If the AI server is configured correctly,
you should see the OS installation begin in the VM.
m ira Stud
After you click Start, a Select start-up disk dialog box might appear for you to select a
@ e his
a i
virtual optical disk. You may click Cancel to proceed.
v se t
Note: Perform the next step as soon as possible.
i q
dฺ to u
h
3. When the S11-Client3 system starts the GNU GRUB menu, select the Oracle Solaris

i ( sha ense
11.2 Automated Install boot option.
av
Note:
Q lic
i d • When you choose this boot option, the interactive system configuration is not available
ah
Sh •
to you during this OS installation. IPS is used during the OS installation.
The message traffic indicates that the IPS server is providing the installation package.
When the AI installation completes, you should see messages similar to these.
• The installation takes some time to complete.
4. After the OS installation is complete, reboot from the hard disk and log in as oracle.
Check the system configuration to verify that the OS is configured according to the profile.
5. Shut down and power off the S11-Client3 virtual machine.

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 4: Installing the Oracle Solaris 11 Operating System


Chapter 4 - Page 34
Practice 4-6: Deploying a System by Using an Oracle Solaris Unified
Archive Through Automated Installer
Overview
You can use Oracle Solaris Automated Installer feature to deploy a system using Solaris Unified
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

Archives. Once an archive is created, you can store the archive as a file until it is needed.
Deployment scenarios include system recovery and system migration, as well as system
cloning.
Note:
• For this training, a Solaris Unified Archive is already been created for you. The
archive file can be found in the /opt/ora/labs directory of the S11-Server1 virtual
machine.
• Ensure that you successfully complete Practice 4-5: Customizing the Automated e
Installation before proceeding with the current practice.
r a bl
e
Task 1: Creating an Oracle Solaris Unified Archive File
t ra nsf
n -
server’s web directory for universal access: a no to the AI
In this task, you create a recovery archive of a source host and copy the archive

h
1. Create a recovery archive of a source host by using the archiveadm
) as ฺcommand:
Note: Do not run this command in the lab. For thisttraining
e u ide the step of creating
ฺae purpose,
s ฺn nfor
the archive on a test system has already been performed t Gyou.
e
Initializing Unified Archivem irat -rS
root@test-system:# archiveadm create
ude
/opt/ora/labs/ra-allzones.uar
t
@ e /opt/ora/labs/ra-allzones.uar
creation
h is
resources...
i
Unified Archive initialized:
av use t
ฺ q
Logging to: /system/volatile/archive_log.12516

Dataset h a hid discovery...


Executing dataset
e to
( s install n
discovery
e scomplete
i
v creation
aMedia
Creating c
li complete
media for zone(s)...
Q
d Preparing archive system image...
ahi
Sh Beginning archive stream creation...
Archive stream creation complete
Beginning final archive assembly...
Archive creation complete
2. View the recovery archive information:
root@s11-server1:# archiveadm info /opt/ora/labs/ra-allzones.uar
Archive Information
Creation Time: 2014-06-23T10:45:59Z
Source Host: solaris-text
Architecture: i386
Operating System: Oracle Solaris 11.2 X86
Deployable Systems: global

root@s11-server1:# archiveadm info -v /opt/ora/labs/ra-allzones.uar


Archive Information
Creation Time: 2014-06-23T10:45:59Z
Source Host: solaris-text

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 4: Installing the Oracle Solaris 11 Operating System


Chapter 4 - Page 35
Architecture: i386
Operating System: Oracle Solaris 11.2 X86
Recovery Archive: Yes
Unique ID: 133f97aa-7021-4717-f7b3-e8313d489f9c
Archive Version: 1.0
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

Deployable Systems
'global'
OS Version: 0.5.11
OS Branch: 0.175.2.0.0.37.0
Active BE: be-wireshark
Brand: solaris
Zones: zone11,zone12
Size Needed: 13.3GB
Unique ID: b7c504b3-7a7a-679c-a113-cc377cec2d59
ble
e r a
nsf
AI Media: 0.175.2_ai_i386.iso
Root-only: Yes
-tr a
n o n
In the preceding output, observe that the ra-allzones.uar archive contains a global
a
zone and two nonglobal zones. a s
h eฺ
3. e )
Copy the ra-allzones.uar recovery archive file to the AI server, such that it could be
e tฺa Guid
accessed from the target host during automated installation process:
n
t e sฺ ent
root@s11-server1:# mkdir -p /var/ai/image-server/images/archives

m ira Stud
@ e install/server:default
root@s11-server1:# svccfg -s
h is = archives \
i
av use t
setprop all_services/webserver_files_dir
ฺ q
id svcadm
a h
root@s11-server1:#
e to refresh install/server:default
i ( sh ens
v lic
aroot@s11-server1:# cp /opt/ora/labs/ra-allzones.uar \

ah4. id Q /var/ai/image-server/images/archives/
Verify the access to the recovery archive from a browser on the S11-Desktop VM by using
Sh the following URL:
http://192.168.0.112:5555/archives/

Task 2: Configure an AI Manifest and Profile for the Client


In this task, you configure the AI server to automatically install an Oracle Solaris 11 client by
using the AI custom system configuration profile.
Perform the following steps on S11-Server1 VM to customize the custom_ai AI service:
1. Use the installadm list command to verify that your custom_ai AI service is already
installed and configured.
root@s11-server1:~# installadm list
Service Name Status Arch Type Secure Alias Aliases Clients Profiles Manifests
------------ ------ ---- ---- ------ ----- ------- ------- -------- ---------
custom_ai on i386 iso no no 1 1 1 2
default-i386 on i386 iso no yes 0 0 0 1

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 4: Installing the Oracle Solaris 11 Operating System


Chapter 4 - Page 36
2. Use the installadm create-client command to add the MAC address of S11-Client4
VM to the custom_ai service.
root@s11-server1:~# installadm create-client -e 08:00:27:85:C7:D7 -n custom_ai
Adding host entry for 08:00:27:85:C7:D7 to local DHCP configuration.
Created Client: '08:00:27:85:C7:D7'
Restarting SMF service svc:/network/dhcp/server:ipv4
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

3. Use the installadm list –c command to verify that the client was added to AI server
custom_ai.
root@s11-server1:~# installadm list -c
Service Name Client Address Arch Secure Custom Args Custom Grub
------------ -------------- ---- ------ ----------- -----------
custom_ai 08:00:27:85:C7:D5 i386 no no no
08:00:27:85:C7:D7 i386 no no no

4. Copy the default archive manifest file to the /var/tmp/manifests/archive_ai.xml ble


e r a
nsf
file to create a custom manifest file for using the unified archive file.
root@s11-server1:~# cp \
-tra
/export/ai/custom_ai/auto_install/manifest/default_archive.xml
n o n\

a
/var/tmp/manifests/archive_ai.xml
s
5. a
Modify the /var/tmp/manifests/archive_ai.xml file XML tag elements such that it
) h eฺ
e
reflects the following details:
tฺa Guid
n e
• AI instance name (ai_instance name): custom_ai
t e sฺ ent
m
allzones.uar, where 192.168.0.112 t udIP address of the AI server.
• Archive File URI (file uri): http://192.168.0.112:5554/archives/ra-
ira isSthe
@ e his
a v i e t
6. View the contents of the /var/tmp/manifests/archive_ai.xml manifest file:

i
<?xml version="1.0"
t o us
dฺq encoding="UTF-8"?>
h
sha ense
<!--

v i ( c 2013, 2014, Oracle and/or its affiliates. All rights reserved.


Q aCopyright li(c)
a h id -->
Sh <!--
Default manifest for the Automated Installer to install from a Solaris
Unified
Archive located on the recovery media.
-->
<!DOCTYPE auto_install SYSTEM "file:///usr/share/install/ai.dtd.1">
<auto_install>
<ai_instance name="custom_ai">
<target>
<logical>
<zpool name="rpool" is_root="true">
<!--
Subsequent <filesystem> entries instruct an installer to create
the following ZFS datasets:

<root_pool>/export (mounted on /export)


<root_pool>/export/home (mounted on /export/home)

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 4: Installing the Oracle Solaris 11 Operating System


Chapter 4 - Page 37
Those datasets are part of the standard environment and should
always be created.

Those datasets, and others, will often be included in the content


of the unified archive and will be created automatically upon
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

installation from the unified archive. In such cases, the archive


overrides any <filesystem>, <be> or <zvol> entries that conflict
with the archive contents. These conflicts are reported in the
installation log file.
-->
<filesystem name="export" mountpoint="/export"/>
<filesystem name="export/home"/>
</zpool>
</logical>
ble
e r a
nsf
</target>
<software type="ARCHIVE">
-tra
<source>
<!-- n o n
s a
) a
Specify the location of the archive via file path or HTTP/HTTPS URL.
h eฺ
<file uri="/tmp/myarchive.uar"/> ฺa
t e id
n e G u
t e sฺ ent
<file uri="/net/someserver/dir/myarchive.uar"/>

ira Stud
<file uri="http://someserver/dir/myarchive.uar"/>

<credentials> e
m
<file uri="https://someserver/dir/myarchive.uar">
is
<key a
i
v se@ t h
i d ฺ q src="http://someserver/creds/mykey.pem"/>
u
h <cert
t o
src="http://someserver/creds/mycert.pem"/>

i ( sha </credentials>
e n se src="http://someserver/creds/myca_cert.pem"/>
<ca_cert

Q av lic
</file>
i d
ah
Sh The default setting supports archive deployment via recovery media.
Bootable recovery media is pre-configured to include the archive
at file:///.cdrom/archive.uar and to install the archived system
from that archive.
-->
<!--
<file uri="file:///.cdrom/archive.uar"/>
-->
<file uri="http://192.168.0.112:5555/archives/ra-allzones.uar"/>
</source>
<software_data action="install">
<!--
Specify the name of the system from within the archive by its
zonename. The '*' is used as shorthand for "all systems" with
recovery archives as well as single-system clone archives.
-->
<name>*</name>
</software_data>
Copyright © 2014, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 4: Installing the Oracle Solaris 11 Operating System


Chapter 4 - Page 38
</software>
</ai_instance>
</auto_install>

7. Use the diff command to view the differences between the archive_ai.xml file and
the default_archive.xml file.
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

root@s11-server1:~# diff /var/tmp/manifests/archive_ai.xml \


/export/ai/custom_ai/auto_install/manifest/default_archive.xml
13c13
< <ai_instance name="custom_ai">
---
> <ai_instance name="default">
60,63c60
< <!--
< <file uri="file:///.cdrom/archive.uar"/>
ble
< -->
e r a
< <file uri="http://192.168.0.112:5555/archives/ra-allzones.uar"/>
a nsf
8. Create a MAC address–based criteria manifest by updating the
o n -tr
criteria_archive_ai.xml available in the /var/tmp/manifests directory. Use the
a n
MAC addresses of the network client S11-Client4.
a
h eฺ s
e )
root@s11-server1:~# vi /var/tmp/manifests/criteria_archive_ai.xml
<ai_criteria_manifest>
n e tฺa Guid
<ai_criteria name="mac">
t e sฺ ent
ira Stud
<value>
08:00:27:85:C7:D7 m
e his
</value>
</ai_criteria> av
i @ e t
q
dฺ to u s
h i
</ai_criteria_manifest>
haclient does
Note: If thesAI
( n senot match the criteria for a service (in this case, a specific MAC
i e
c will use the default manifest when installing the OS.
v the AIliservice
address),
id the results. 9. Qa
Add the custom_ai manifest and criteria manifest to the custom_ai service and show
a h
Sh root@s11-server1:~# installadm create-manifest -m archive_ai \
-n custom_ai \
-f /var/tmp/manifests/archive_ai.xml \
-C /var/tmp/manifests/criteria_archive_ai.xml
Created Manifest: ‘archive_ai’

root@s11-server1:~# installadm list -c -m


Service Name Client Address Arch Secure Custom Args Custom Grub
------------ -------------- ---- ------ ----------- -----------
custom_ai 08:00:27:85:C7:D5 i386 no no no
08:00:27:85:C7:D7 i386 no no no
Service Name Manifest Name Type Status Criteria
------------ ------------- ---- ------ --------
custom_ai archive_ai xml active mac = 08:00:27:85:C7:D7
custom_ai xml active mac = 08:00:27:85:C7:D5
orig_default derived default none
default-i386 orig_default derived default none

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 4: Installing the Oracle Solaris 11 Operating System


Chapter 4 - Page 39
10. Use the sysconfig utility to create a profile for S11-Client4:
root@s11-server1:~# sysconfig create-profile \
-o /var/tmp/manifests/client4_profile
Use the following properties when creating a profile for S11-Client4:
• Host name: s11-client4
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

• Network configuration: Manually


− Network Interface: net0 (e1000g0)
− IP Address: 192.168.0.145
− Configure DNS: Yes
− DNS Server IP address: 192.168.0.112
− Search domain: mydomain.com
− Alternate Name Service: None
ble
• Time zone: Use your local region e r a
• Language: Use your local language a nsf
• Local: Territory: Use your local territory
o n -tr
• Keyboard: Use your local keyboard a n
• Root password: oracle1 a s
h eฺ
e )
• User account:
n e tฺa Guid
− Your real name: oracle
t e sฺ ent
− Username: oracle
m ira Stud
− Password: oracle1 i@e h is
avDefault e t
• ฺ q
Support registration: u soptions
• a h id Configuration:
Support: Network to Default (no proxy)
s h n s e
(
Q avi lice
i d
ah
Sh

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 4: Installing the Oracle Solaris 11 Operating System


Chapter 4 - Page 40
Note: The sysconfig create-profile utility launches a system configuration tool
similar to the System Configuration Tool you used during the Text installation in
Practice 4-1.
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

ble
e r a
a nsf
o n -tr
a n
a s
h eฺ
e )
n e tฺa Guid
t e sฺ ent
m ira Stud
@ e his
a i
v se t
i q
dฺ to u
h
i ( sha ense
Q av lic
i d
ah
Sh

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 4: Installing the Oracle Solaris 11 Operating System


Chapter 4 - Page 41
The System Configuration Summary should look similar to the following:
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

ble
e r a
a nsf
o n -tr
a n
a s
h eฺ
e )
n e tฺa Guid
t e sฺ ent
m ira Stud
@ e his
a i
v se t
q
idฺ toprofile
u
h h
11. Add the systemaconfiguration
e manifest to custom_ai service and show the results.
( s n s
a i ice installadm create-profile –n custom_ai
-fv /var/tmp/manifests/client4_profile/sc_profile.xml
root@s11-server1:~#
l
\

Q
id Created Profile: 'client4_profile'
–p client4_profile -C /var/tmp/manifests/criteria_archive_ai.xml
\

a h
Sh
root@s11-server1:~# installadm list -p -n custom_ai
Service Name Profile Name Criteria
------------ ------------ --------
custom_ai client3_profile mac = 08:00:27:85:C7:D5
client4_profile mac = 08:00:27:85:C7:D7
12. Validate the system configuration profile.
root@s11-server1:~# installadm validate -n custom_ai -p client4_profile
Validating static profile client4_profile...
Passed
root@s11-server1:~#

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 4: Installing the Oracle Solaris 11 Operating System


Chapter 4 - Page 42
Task 3: Deploying the OS to a Network Client
After you have completed AI server configuration, it is time to test your work by deploying the
Oracle Solaris 11 operating system to a network client.
Perform the following steps to deploy the OS to a network client:
1. Verify that the S11-Server1 virtual machine is running.
2. In the VirtualBox Manager, start the S11-Client4 VM. If the AI server is configured correctly,
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

you should see the OS installation begin in the VM.


Note: Perform the next step as soon as possible.
3. When the S11-Client4 system starts the GNU GRUB menu, select the Oracle Solaris
11.2 Automated Install boot option.
Note:
• When you choose this boot option, the interactive system configuration is not available
to you during this OS installation. The specified Oracle Solaris Unified Archive file is
ble
used during the OS installation.
e r a
• The archive-based installation takes about 20-30 minutes to complete.
a nsf
4. After the OS installation is complete, reboot from the hard disk.
o n -tr
In the GRUB menu, select the be-wireshark-recovery option, as shown in the
a n
following image: a s
h eฺ
e )
n e tฺa Guid
t e sฺ ent
m ira Stud
@ e his
a i
v se t
i q
dฺ to u
h
i ( sha ense
Q av lic
i d
ah
Sh

Note: If you are working inside an Oracle VM VirtualBox environment, after the system
reboots completely, you will need to uninstall and then reinstall the Oracle Solaris Guest
Additions software to get rid of all the warning and error messages that are shown in the
s11-client4 console.
5. Log in as oracle user and switch to the root role. The password for both is oracle1.
6. Check the system configuration to verify that the various OS configurations, such as
hostname, IP addresses of the host and zones are same as the source system that you
used to create the recovery archive.
7. Shut down and power off the S11-Client4 virtual machine.

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 4: Installing the Oracle Solaris 11 Operating System


Chapter 4 - Page 43
Practice 4-7: Testing Your Skills and Knowledge
Overview
In this practice, you get to apply the skills and knowledge you gained from the lecture and
guided practices. You are challenged with completing the following tasks without the benefit of a
step-by-step guide.
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

Hint: Use all the available resources, such as man pages, student guide, activity guide, and
your instructor, to successfully complete each task.
Note: This practice is optional. Check with your instructor to determine if you have enough
time available to complete this practice. If you begin this practice and run out of time, set
this practice aside and return to it if time permits.

Task 1: Remove an AI Service


Perform the following tasks on the S11-Server1 VM:
ble
1. Determine the name of the current AI service. e r a
2. Remove the current AI service from the system. a nsf
o n -tr
Task 2: Manage the Boot Environment
a n
a s
Perform the following task on the S11-Server1 VM:
h eฺ
e )
Add a new AI service to the system using these AI service configuration properties:
• AI service name: my_ai n e tฺa Guid
t e sฺ ent
ira Stud
• Source AI ISO image: /opt/ora/iso/sol-11_2-ai-x86.iso
m
• Target directory: /export/ai/my_ai
@ e his
i
avAI Service
e t
Task 3: Add a Client toฺq the u s
d on thetS11-Server1
Perform the following a h i
task o VM:
s h n s e
(
Add a client ito the my_ai
v i ce AI service using these properties:
a l
•Q Client virtual machine: S11-Client5
i d
h ah • Client MAC address: 08:00:27:85:C7:D9
S
Task 4: Create a Manifest for the New AI Service
Perform the following task on the S11-Server1 VM:
Create a manifest for the my_ai service by using the manifest configuration properties:
• AI instance name (ai_instance name): my_ai
• Auto-reboot (auto_reboot): true
• IPS origin URI: http://s11-server1.mydomain.com
• IPS package: solaris-small-server
• Criteria: MAC address 08:00:27:85:C7:D9

Task 5: Create a System Configuration Profile for the AI Client


Perform the following task on the S11-Server1 VM:
Create a system configuration profile for AI client S11-Client5 using the manifest configuration
properties:
• Host name: s11-client5
Copyright © 2014, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 4: Installing the Oracle Solaris 11 Operating System


Chapter 4 - Page 44
• Network type: Manually
• IPv4 interface name: net0
• Static IP address: 192.168.0.146
• Default route: None
• DNS Name Service: Configure DNS.
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

• DNS Server Addresses: 192.168.0.112


• DNS Search List: mydomain.com
• Alternate name Service: None
• Time zone: Choose your local time zone.
• Root password: oracle1
• Your real name: oracle1
• Username: oracle ble
e r a
• User password: oracle1
a nsf
Task 6: Install the Oracle Solaris 11 OS on the AI Client o n -tr
a
After you have completed AI server configuration, it is time to test your work by deploying the
n
a s
h eฺ
Oracle Solaris 11 operating system to the network client. Open the Oracle VM VirtualBox
e )
Manager and start the S11-Client5 VM. Monitor the installation of the Oracle Solaris 11 OS on
the network client.
n e tฺa Guid
t e sฺ ent
m ira Stud
@ e his
a i
v se t
i q
dฺ to u
h
i ( sha ense
Q av lic
i d
ah
Sh

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 4: Installing the Oracle Solaris 11 Operating System


Chapter 4 - Page 45
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

ble
e r a
a nsf
o n -tr
a n
a s
h eฺ
e )
n e tฺa Guid
t e sฺ ent
m ira Stud
@ e his
a i
v se t
i q
dฺ to u
h
i ( sha ense
Q av lic
i d
ah
Sh

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 4: Installing the Oracle Solaris 11 Operating System


Chapter 4 - Page 46
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

ble
e r a
a nsf
o n -tr
a n
a s
hLesson
Practicesefor ) e ฺ 5:
Oracle ฺ a
etSolaris i d
u11 Network
s ฺ n n t G
aAdministration
t e d e
e mir Enhancements
i s S tu
v i @ e thChapter
ฺ q a us 5

a h id to
sh ens e
i (
Q av lic
i d
ah
Sh

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 5: Oracle Solaris 11 Network Administration Enhancements


Chapter 5 - Page 1
Practices for Lesson 5: Overview
Practices Overview
The practices of this lesson introduce you to the important new networking features found in
Oracle Solaris 11. These practices provide guided, hands-on experience in working with these
new features. During the practices, you apply network administration best practices applicable
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

to the Oracle Solaris 11 operating system.


The key areas explored in these practices are:
• Managing reactive profiles
• Exploring the capabilities of the ipadm utility
• Configuring network virtualization features
• Configuring link aggregation
• Creating IPMP configurations ble
e r a
nsf
• Configuring a network bridge
• Monitoring the network
-tra
n o n
s a
) a
h eฺ
e
tฺa Guid
n e
t e sฺ ent
m ira Stud
@ e his
a i
v se t
i q
dฺ to u
h
i ( sha ense
Q av lic
i d
ah
Sh

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 5: Oracle Solaris 11 Network Administration Enhancements


Chapter 5 - Page 2
Practice 5-1: Managing Reactive Network Configuration
Overview
Reactive network configuration simplifies basic network configuration by automatically
addressing basic Ethernet and WiFi configurations. The basic network configuration includes
connecting to wired or wireless network at startup and displaying notifications about the status
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

of your currently active network connection from the desktop. Reactive or automatic network
configuration also simplifies some of the more complex networking tasks, such as the creation
and management of system-wide network profiles, for example, the configuration of naming
services, IP Filter, and IP Security (IPsec), all of which are features of Oracle Solaris. The key
components of reactive network are the Network Profiles, which allow you to specify various
network configurations to be created depending on the current network conditions.
In this practice, you perform the following tasks:
• Assess the current reactive network configuration.
ble
• Create and deploy a profile. e r a
tra nsf
-
Task 1: Assess the Current Reactive Network Configuration Profile
n
Note: For Reactive Network to configure the host’s network interface automatically,
a no DHCP
h a s 11 OS by Using the
service must be available. In the practice titled “Installing the Oracle Solaris
Automated Installer” (Practice 4-3), you configured DHCP by using
e ) the ฺ
installadm
e utility.
Perform the following steps to configure a Reactive Network
e tฺaprofile: u id
1. Verify that the S11-Server1 is running. If the VM n n G
sฺis noterunning,
t start it at this time.
t e
2. Start the S11-Desktop VM and log in with
m irathe user
S t uIDdoracle and password oracle1.
3. Minimize the S11-Server1 VM andeperformis the remaining steps in S11-Desktop VM.
i @ t h
ฺ q av use
a h id to
sh ens e
i (
Q av lic
a h id
Sh

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 5: Oracle Solaris 11 Network Administration Enhancements


Chapter 5 - Page 3
4. Click the Network Preferences icon to determine which NCPs and network interfaces
(NCUs) are currently enabled by Reactive Network.
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

ble
e r a
a nsf
o n -tr
a n
a s
h eฺ
e )
n e tฺa Guid
t e sฺ ent
m ira Stud
@ e his
a i
v se t
i q
dฺ to u
h
ha nNetwork
5. Click OK tosclose the
( e se Preferences window.
i c and su to root.
ava terminalliwindow
6 OpenQ
7.id Display the current network configuration for this system.
h
a
Sh root@s11-desktop:~# ipadm show-addr
ADDROBJ TYPE STATE ADDR
lo0/v4 static ok 127.0.0.1/8
net0/v4 static ok 192.168.0.111/24
lo0/v6 static ok ::1/128

8. List all available networking profiles and their current states.


root@s11-desktop:~# netadm list
TYPE PROFILE STATE
ncp Automatic disabled
ncp DefaultFixed disabled
ncp start_state online
ncu:phys net0 online
ncu:ip net0 online
loc Automatic offline
loc NoNet offline
loc User disabled

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 5: Oracle Solaris 11 Network Administration Enhancements


Chapter 5 - Page 4
loc DefaultFixed offline
loc aces online

9. List the Automatic NCP.


root@s11-desktop:~# netadm list Automatic
TYPE PROFILE STATE
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

ncp Automatic disabled


loc Automatic offline

10. List the DefaultFixed profile.


root@s11-desktop:~# netadm list DefaultFixed
TYPE PROFILE STATE
ncp DefaultFixed disabled
loc DefaultFixed offline

11. List the start_state profile. e


r a bl
root@s11-desktop:~# netadm list start_state
e
TYPE PROFILE STATE
a nsf
ncp start_state online
o n -tr
ncu:phys net0
a
online
n
ncu:ip net0
a s
h eฺ
online
12. List the reactive network location profiles.
e )
root@s11-desktop:~# netadm list -p loc
n e tฺa Guid
TYPE PROFILE STATE
t e sฺ ent
loc Automatic
ira Stud
offline
m
loc NoNet
@ edisabled
offline
h is
loc User
i
av uoffline
e t
loc
ฺ q
DefaultFixed s
loc
a h id
aces to online
e
h andnips network configuration units (NCUs) in the active network
sphys
i (
13. Lists all the
v profiles ice (NCPs).
a
configuration l
Q root@s11-desktop:~# netadm list -c phys
i d
h ah TYPE PROFILE STATE
S ncu:phys net0 online

root@s11-desktop:~# netadm list -c ip


TYPE PROFILE STATE
ncu:ip net0 online
14. List all profiles and their auxiliary states.
root@s11-desktop:~# netadm list -x
TYPE PROFILE STATE AUXILIARY STATE
ncp Automatic disabled disabled by administrator
ncp DefaultFixed disabled disabled by administrator
ncp start_state online active
ncu:phys net0 online interface/link is up
ncu:ip net0 online interface/link is up
loc Automatic offline conditions for activation are unmet
loc NoNet offline conditions for activation are unmet
loc User disabled disabled by administrator

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 5: Oracle Solaris 11 Network Administration Enhancements


Chapter 5 - Page 5
loc DefaultFixed offline conditions for activation are unmet
loc aces online active

15. Use the netcfg export command to create backups of the start_state and aces
profiles.
root@s11-desktop:~# netcfg export -f start_state_ncp_backup ncp start_state
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

root@s11-desktop:~# netcfg export -f aces_loc_backup loc aces

root@s11-desktop:~# ls *backup
aces_loc_backup start_state_ncp_backup

16. Use the netcfg utility to select the start_state profile and list its NCUs.
root@s11-desktop:~# netcfg
netcfg> select ncp start_state
netcfg:ncp:start_state> list ble
e r a
nsf
ncp:start_state
management-type reactive
-tra
NCUs:
n o n
phys net0
s a
ip net0
) a
h eฺ
17. Select the phys NCU and display its properties. e
tฺa Guid
netcfg:ncp:start_state:ncu:net0> list sฺ
netcfg:ncp:start_state> select ncu phys net0
n e t
t e e n
ncu:net0
m ira Stud
type
@ e his
link
class
a i phys
t
v "start_state"
e
parent
q
dฺ to utrue s
h i
activation-mode manual

sha ense
enabled

i (
netcfg:ncp:start_state:ncu:net0>
c
end

avthe ip NCU
18. Select
Q li and display its properties.
a h id netcfg:ncp:start_state> select ncu ip net0
Sh netcfg:ncp:start_state:ncu:net0> list
ncu:net0
type interface
class ip
parent "start_state"
enabled true
ip-version ipv4
ipv4-addrsrc static
ipv4-addr "192.168.0.111/24"
netcfg:ncp:start_state:ncu:net0> end
netcfg:ncp:start_state> end
netcfg>

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 5: Oracle Solaris 11 Network Administration Enhancements


Chapter 5 - Page 6
19. Select the aces location profile and list its properties.
netcfg> select loc aces
netcfg:loc:aces> list
loc:aces
activation-mode manual
enabled true
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

nameservices dns
nameservices-config-file "/etc/nsswitch.dns"
dns-nameservice-configsrc manual
dns-nameservice-domain "mydomain.com"
dns-nameservice-servers "192.168.0.112"
netcfg:loc:aces> end
netcfg> exit
root@s11-desktop:~#
ble
e r a
nsf
Task 2: Create and Deploy a Network Profile
Perform the following steps to configure a network profile:
-tra
1. Create an NCP named oracle_profile.
n o n
s a
root@s11-desktop:~# netcfg

) a
h eฺ
netcfg> create ncp oracle_profile

2. Create a phys NCU for data link net1.


e
tฺa Guid
n e
ฺ net1nt
netcfg:ncp:oracle_profile> create ncu s
r t e phys
a t... de
i
Created ncu 'net1'. Walking properties u
@ em his S
activation-mode (manual) [manual|prioritized]> manual

avi use t
mac-address> <Press Return>
autopush> <Pressฺq
mtu> <Press h
a id Return>
to
sh ens
Return>
e
v i (
netcfg:ncp:oracle_profile:ncu:net1>
c
list

Q ancu:net1 li
h i d type link

h a class phys
S parent "oracle_profile"
activation-mode manual
enabled true
netcfg:ncp:oracle_profile:ncu:net1> end
Committed changes
netcfg:ncp:oracle_profile> list
ncp:oracle_profile
management-type reactive
NCUs:
phys net1

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 5: Oracle Solaris 11 Network Administration Enhancements


Chapter 5 - Page 7
3. Create an ip NCU for data link net1.
netcfg:ncp:oracle_profile> create ncu ip net1
Created ncu 'net1'. Walking properties ...
ip-version (ipv4,ipv6) [ipv4|ipv6]> ipv4
ipv4-addrsrc [dhcp|static]> static
ipv4-addr> 192.168.0.111
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

ipv4-default-route> <Press Return>


netcfg:ncp:oracle_profile:ncu:net1> list
ncu:net1
type interface
class ip
parent "oracle_profile"
enabled true
ip-version ipv4
ble
ipv4-addrsrc static
e r a
nsf
ipv4-addr "192.168.0.111"
netcfg:ncp:oracle_profile:ncu:net1> verify
-tra
All properties verified
n o n
netcfg:ncp:oracle_profile:ncu:net1> commit
s a
Committed changes
) a
h eฺ
netcfg:ncp:oracle_profile:ncu:net1> end
e
tฺa Guid
e
netcfg:ncp:oracle_profile> list ncu ip net1
n
ncu:net1
t e sฺ ent
type
ira Stud
interface
m
class
@ e his
ip
parent
a i
v se t"oracle_profile"
enabled
i q
dฺ to u
true
h
ip-version ipv4

i ( sha ense
ipv4-addrsrc static

Q av lic
ipv4-addr "192.168.0.111"

i d netcfg:ncp:oracle_profile> end

ah netcfg>
Sh 4. Create a location (loc) NCP named classroom.
netcfg> create loc classroom
Created loc 'classroom'. Walking properties ...
activation-mode (manual) [manual|conditional-any|conditional-all]>
conditional-all
conditions> "system-domain is mydomain.com"
nameservices (dns) [dns|files|nis|ldap]> dns
nameservices-config-file ("/etc/nsswitch.dns")> <Press Return>
dns-nameservice-configsrc (dhcp) [manual|dhcp]> manual
dns-nameservice-domain> "mydomain.com"
dns-nameservice-servers> "192.168.0.112"
dns-nameservice-search> <Press Return>
dns-nameservice-sortlist> <Press Return>
dns-nameservice-options> <Press Return>
nfsv4-domain> <Press Return>
ipfilter-config-file> <Press Return>
ipfilter-v6-config-file> <Press Return>

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 5: Oracle Solaris 11 Network Administration Enhancements


Chapter 5 - Page 8
ipnat-config-file> <Press Return>
ippool-config-file> <Press Return>
ike-config-file> <Press Return>
ikev2-config-file> <Press Return>
ipsecpolicy-config-file> <Press Return>
netcfg:loc:classroom> list
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

loc:classroom
activation-mode conditional-all
conditions "system-domain is mydomain.com"
enabled false
nameservices dns
nameservices-config-file "/etc/nsswitch.dns"
dns-nameservice-configsrc manual
dns-nameservice-domain "mydomain.com"
dns-nameservice-servers "192.168.0.112"
ble
e r a
nsf
netcfg:loc:classroom> verify
All properties verified
-tra
netcfg:loc:classroom> commit
Committed changes n o n
s a
netcfg:loc:classroom> end
netcfg> exit ) a
h eฺ
e
tฺathat exist iatdthe current scope.
5. Use the netcfg list command to display all profiles
n e G u
root@s11-desktop:~# netcfg list
t e sฺ ent
NCPs:
m ira Stud
Automatic
@ e his
DefaultFixed i
av use t
start_stateฺq

a h id to
oracle_profile
sh ens e
i (
Locations:

Q lic
av Automatic
h i d NoNet

h a User
S DefaultFixed
aces
classroom

6. Use the netcfg export command to create backups of your oracle_profile and
classroom profiles.
root@s11-desktop:~# netcfg export -f oracle_ncp_backup ncp oracle_profile

root@s11-desktop:~# netcfg export -f classroom_loc_backup loc classroom

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 5: Oracle Solaris 11 Network Administration Enhancements


Chapter 5 - Page 9
7. Destroy the classroom profile and show the results.
root@s11-desktop:~# netcfg destroy loc classroom

root@s11-desktop:~# netcfg list


NCPs:
Automatic
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

DefaultFixed
start_state
oracle_profile
Locations:
Automatic
NoNet
User
DefaultFixed
ble
aces
e r a
8. Recover the classroom profile from your backup and show the results.
a nsf
root@s11-desktop:~# netcfg -f classroom_loc_backup
o n -tr
Configuration read.
a n
a s
h eฺ
root@s11-desktop:~# netcfg list
e )
NCPs:
n e tฺa Guid
sฺ ent
Automatic
DefaultFixed
t e
start_state
m ira Stud
oracle_profile
@ e his
Locations:
a i
v se t
i
Automaticq
dฺ to u
h
sha ense
NoNet

i (
lic
User

Q av DefaultFixed
i d
ah
aces

Sh 9.
classroom

Use the netcfg enable command to enable classroom and oracle_profile


profiles.
root@s11-desktop:~# netadm enable classroom
Enabling loc 'classroom'

root@s11-desktop:~# netadm enable oracle_profile


Enabling ncp 'oracle_profile'

10. Reboot the system to verify that oracle_profile and classroom are the default
profiles.
root@s11-desktop:~# init 6

11. After the system reboots, log in as oracle and use su to root.

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 5: Oracle Solaris 11 Network Administration Enhancements


Chapter 5 - Page 10
12. Open the Network Preferences dialog box.
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

ble
e r a
a nsf
o n -tr
a n
a
h eฺs
e )
n e tฺa Guid
t e sฺ ent
m ira Stud
@ e his
a i
v se t
i q
dฺ to u
h
ha interface
Note: The(snetwork e n se net1 is now connected to the network.
i lic to verify communication with a remote host.
athev ping command
13. Use
Q
a h id root@s11-desktop:~# ping s11-server1
Sh s11-server1 is alive
14. Shut down (power off) the S11-Desktop VM.

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 5: Oracle Solaris 11 Network Administration Enhancements


Chapter 5 - Page 11
Practice 5-2: Exploring the Capabilities of the ipadm Utility

Overview
The ipadm command provides a set of subcommands that you use to manage network
interfaces, IP addresses, and TCP/IP protocol properties. The ipadm utility replaces some of
the ifconfig command functionality for IP interface-related tasks.
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

Task
Perform the following steps in S11-Server1 VM to explore the capabilities of the ipadm utility:
1. Verify whether S11-Desktop VM is powered off.
2. Verify that S11-Server1 VM is running. If not, start the VM at this time with the user ID
oracle and password oracle1. su to root.
3. In the S11-Server1 system, run the dladm show-phys command to determine the state of
ble
the physical network interfaces currently configured in the system.
e r a
root@s11-server1:~# dladm show-phys
transf
LINK MEDIA STATE SPEED DUPLEX
n -DEVICE
net1 Ethernet
a
unknown 1000
no e1000g1
full
net2 Ethernet
a s
h eฺ
e1000g2 unknown 1000 full
net0 Ethernet
e ) e1000g0 up 1000 full
net3
e t ฺa uid
Ethernet e1000g3 unknown 1000 full

4. Run the dladm show-link command to determine


s ฺn thenstate
t Gof each network link
currently configured in the system.
r e
at tude
i
emMTUhis STATE
root@s11-server1:~# dladm show-link
@
S
LINK
a v i
CLASS
e t unknown OVER
net1
i d ฺq physo us 1500 unknown --
phys 1500
net2
a h e t --
net0 sh s phys
i ( c e n 1500 up --

Q av
net3
li phys 1500 unknown --

5.id Run the ipadm show-if command to show network interface configuration information.
a h
Sh root@s11-server1:~# ipadm show-if
IFNAME CLASS STATE ACTIVE OVER
lo0 loopback ok yes --
net0 ip ok yes --
6. Rename link net1 to training1 and show the results.
root@s11-server1:~# dladm rename-link net1 training1

root@s11-server1:~# dladm show-phys


LINK MEDIA STATE SPEED DUPLEX DEVICE
training1 Ethernet unknown 1000 full e1000g1
net2 Ethernet unknown 1000 full e1000g2
net0 Ethernet up 1000 full e1000g0
net3 Ethernet unknown 1000 full e1000g3

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 5: Oracle Solaris 11 Network Administration Enhancements


Chapter 5 - Page 12
root@s11-server1:~# dladm show-link
LINK CLASS MTU STATE OVER
training1 phys 1500 unknown --
net2 phys 1500 unknown --
net0 phys 1500 up --
net3 phys 1500 unknown --
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

7. Run the ipadm command to create an IP interface for link training1 and show the
results.
root@s11-server1:~# ipadm create-ip training1
root@s11-server1:~# ipadm show-if
IFNAME CLASS STATE ACTIVE OVER
lo0 loopback ok yes --
net0 ip ok yes --
training1 ip down no --
ble
8. Run the ipadm command to create the static IPv4 address 192.168.0.150/24 on the
e r a
interface training1 and show the results.
a nsf
root@s11-server1:~# ipadm create-addr -T static –a \
o n -tr
192.168.0.150/24 training1/v4
a n
a s
root@s11-server1:~# ipadm show-addr
ADDR ฺae
) h deฺ
ADDROBJ TYPE STATE
e t u i
lo0/v4 static ok n127.0.0.1/8
n G
sฺ 192.168.0.112/24
t
t e e
ud
a t192.168.0.150/24
net0/v4 static ok
ok ir
training1/v4 static
static e
m S
is ::1/128
lo0/v6
i @ ok
t h
net0/v6
ฺ q av uok
addrconf
s e fe80::a00:27ff:fe9c:83e1/10

h
9. Run the ipadm command
a id totshow o the current and persistent values of the IP address
shinterface
properties for
n s e
v i ( c e
training1.

Q li
aroot@s11-server1:~# ipadm show-addrprop training1/v4

h i d training1/v4 broadcast PERM


ADDROBJ PROPERTY CURRENT PERSISTENT DEFAULT POSSIBLE

h a r- 192.168.0.255 -- 192.168.0.255 --
S training1/v4 deprecated rw off -- off on,off
training1/v4 prefixlen rw 24 24 24 1-30,32
training1/v4 private rw off -- off on,off
training1/v4 reqhost r- -- -- -- --
training1/v4 transmit rw on -- on on,off
training1/v4 zone rw global -- global --

10. Run the ipadm command to show the interface properties for interface training1.
root@s11-server1:~# ipadm show-ifprop training1
IFNAME PROPERTY PROTO PERM CURRENT PERSISTENT DEFAULT POSSIBLE
training1 arp ipv4 rw on -- on on,off
training1 forwarding ipv4 rw off -- off on,off