Professional Documents
Culture Documents
D74867
Edition 1.1
D73488GC11
November 2011
Activity Guide
Solaris 11
Transition to Oracle
Disclaimer
This document contains proprietary information and is protected by copyright and other intellectual property laws. You may copy and
print this document solely for your own 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 use, share, download, upload, copy, print, display,
perform, reproduce, publish, license, post, transmit, or distribute this document in whole or in part without the express authorization
of Oracle.
The information contained in this document is subject to change without notice. If you find any problems in the document, please
report them in writing to: Oracle University, 500 Oracle Parkway, Redwood Shores, California 94065 USA. This document is not
warranted to be error-free.
Trademark Notice
Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective
owners.
Author
David Giroux
Table of Contents
Practices for Lesson 1: Course Introduction.................................................................................................1-1
Practices for Lesson 1....................................................................................................................................1-2
Practices for Lesson 2: Introducing the Oracle Solaris 11 New Features and Enhancements .................2-1
Practices for Lesson 2....................................................................................................................................2-2
Practices for Lesson 3: Managing Software Updates in Oracle Solaris 11 Express ..................................3-1
Practices for Lesson 3....................................................................................................................................3-2
Practice 3-1: Configuring a Local IPS Package Repository ...........................................................................3-4
Practice 3-2: Configuring a Network Client to Access the IPS Server ............................................................3-8
Practices for Lesson 2: Introducing the Oracle Solaris 11 New Features and Enhancements
Chapter 2 - Page 1
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Practices for Lesson 2: Introducing the Oracle Solaris 11 New Features and Enhancements
Chapter 2 - Page 2
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Assumptions
Your lab environment is based on the Oracle VM VirtualBox virtualization software. VirtualBox is
a cross-platform virtualization application. It extends the capabilities of your existing computer
so that it can run multiple operating systems (inside multiple virtual machines) at the same time.
The following illustration shows the VirtualBox manager interface.
The virtual machines (VMs) are configured on a private internal network (192.168.0). Each VM
can communicate with other VMs on the same private network (see Figure 2) but cannot
communicate with the local host machine or other machines on the same network as the local
host machine.
Each virtual machine (VM) plays an import role in your lab as follows:
• Sol11 SuperServer: This VM provides network services, such as DNS, used by the VMs in
the lab.
Note: The Sol11 SuperServer VM must be started before any additional virtual machines
are started. The Sol11 SuperServer must always be running to perform the labs in this
guide.
• Sol11 Server1: This is the server in which you will configure IPS services.
• Sol11 Desktop: This is the IPS client machine.
Note: When performing your labs, power-off any unnecessary virtual machines. This helps
improve overall lab performance.
Note: When launching a virtual machine for the first time, you might see the First Run Wizard
appear. Click the Cancel button to continue.
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.
The repository image is provided in two parts that must be concatenated. You use the following
command-line instructions to successfully create a full ISO image that can be burned to a dual-
layer DVD or directly mounted using the lofiadm command. You download parts A and B of
the repository ISO by clicking these links:
• Download Part A SPARC, x86 (2 GB)
• Download Part B SPARC, x86 (2 GB)
The following commands are used to concatenate parts A and B:
$ unzip sol-11-xxx-xxx-repo-full-iso-a.zip
$ unzip sol-11-xxx-xxx-repo-full-iso-b.zip
$ cat sol-11-xxx-xxx-repo-full.iso-a sol-11-xxx-xxx-repo-full.iso-b >
sol-11-xxx-xxx-repo-full.iso
Note: For training purposes, these steps have already been performed for you.
Note: The responses to the commands shown in practice are examples only. The values you
see during your lab experience might vary slightly.
Name: s11-serv1.mydomain.com
Address: 192.168.0.112
6. Verify that the /export/IPS file system has been configured on the system.
root@s11-serv1:~# zpool list
NAME SIZE ALLOC FREE CAP DEDUP HEALTH ALTROOT
rpool 32G 9.47G 22.5G 29% 1.00x ONLINE -
root@s11-serv1:~# zfs list
NAME USED AVAIL REFER MOUNTPOINT
rpool 9.54G 22.0G 39K /rpool
rpool/ROOT 1.80G 22.0G 31K legacy
rpool/ROOT/solaris 1.80G 22.0G 1.53G /
rpool/ROOT/solaris/var 217M 22.0G 215M /var
rpool/dump 1.03G 22.0G 1.00G -
rpool/export 5.68G 22.0G 33K /export
rpool/export/IPS 5.68G 22.0G 5.68G /export/IPS
rpool/export/home 66K 22.0G 32K /export/home
rpool/export/home/oracle 34K 22.0G 34K
/export/home/oracle
rpool/swap 1.03G 22.0G 1.00G -
Normally, a local IPS repository has to be manually created on the local server. This
involves creating a ZFS file system on the local server for the IPS repository and copying
the repository files from the repository ISO image to the local repository.
The following example shows you the steps used to copy the IPS repository from the
ISO image to a local ZFS file system. Do not run these commands in this lab. The
repository has already been installed on the local server for you.
# zfs create -o compression=on rpool/export/IPS
# lofiadm –a sol-11-xxx-xxx-repo-full.iso
# mount –F hsfs /dev/lofi/1 /mnt
# rsync –aP /mnt/repo /export/IPS
The package repository is very large (approximately 4.4 gigabytes). Depending on the
speed of your host machine, the rsync command can take a couple hours to complete.
18. Test IPS on the local server by searching for the entire package.
root@s11-serv1:~# pkg search entire
INDEX ACTION VALUE PACKAGE
Pkg.fmri set solaris/entire pkg:/entire@ 0.5.11-0.175.0.0.0.2.0
19. Display the status of the IPS repository.
root@s11-serv1:~# pkgrepo info -s /export/IPS/repo
PUBLISHER PACKAGES STATUS UPDATED
solaris 4292 online 2011-10-23T20:10:52.513193Z
20. Display the IPS repository description.
root@s11-serv1:~# pkgrepo get -s /export/IPS/repo \
repository/description
SECTION PROPERTY VALUE
repository description This\ repository\ serves\ a\ copy\ of\
the\ Oracle\ Solaris\ 11\ Build\ 175b\ Package\ Repository.
Copyright © 2011, Oracle and/or its affiliates. All rights reserved.
Name: s11-serv1.mydomain.com
Address: 192.168.0.112
6. Verify that this client can ping the IPS server.
root@s11-desktop:~# ping s11-serv1
s11-serv1 is alive
7. List the current package publishers.
root@s11-desktop:~# pkg publisher
PUBLISHER TYPE STATUS URI
Solaris origin online http://pkg.oracle.com/solaris/release/
10. Test the client access to the IPS server by opening the http://s11-serv1.mydomain.com
URL in the Firefox browser.
Demonstration
For this practice, we’ve provided you with two Oracle Solaris 11 image update demonstrations.
The first demonstration shows you how to update an image using the pkg update command.
The second demonstration shows you how to update an image using the Package Manager
GUI.
Demonstration: - Updating an Image Using the pkg update Command
Demonstration: - Updating an Image Using Package Manager
To run this lab, you must be logged in to the Sol11-Desktop virtual machine as the oracle user
and have obtained primary administrator privileges. See Practice 3-2 if you need help.
Changed packages:
solaris
developer/apptrace
None -> 0.5.11,5.11-0.175.0.0.0.2.1:2011019T053054Z
The dry run shows that one package will be installed. The package installation will not
impact on the boot environment. No currently install packages will be changed.
5. Install the apptrace package.
root@s11-desktop:~# pkg install apptrace
Creating plan...
Packages to install: 1
Create boot environment: No
Create backup boot environment: No
PHASE ACTIONS
Install Phase 29/29
PHASE ITEMS
Package State Update Phase 1/1
Image State Update Phase 2/2
6. Verify the apptrace package installation.
root@s11-desktop:~# pkg verify -v apptrace
PACKAGE STATUS
Copyright © 2011, Oracle and/or its affiliates. All rights reserved.
pkg://solaris/developer/apptrace OK
7. Remove the apptrace package from the system image.
root@s11-desktop:~# pkg uninstall apptrace
Creating Plan…
Packages to install: 1
Create boot environment: No
Create backup boot environment: No
PHASE ITEMS
Package State Update Phase 1/1
Package Cache Update Phase 1/1
Image State Update Phase 2/2
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. Select the solaris
publisher.
10. In the File menu, click Manage Publishers.
11. Verify that the package publisher that you configured in Practice 3-1 is enabled and sticky.
Also, verify that the Origin points to the IPS server. Click OK.
The status icon indicates that the apptrace package is not currently installed on this system.
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.
17. Click the Install/Update button. Then click Proceed in the Install Confirmation dialog box.
19. Select the apptrace package and click the Remove button. Then click Proceed in the
Remove Confirmation dialog box.
Now you will manage the apptrace package by using a web browser.
22. Launch the Firefox browser and open the http://s11-serv1.mydomain.com
URL in the Firefox browser. In the Search Package field, enter apptrace and click Search.
6. Add a destination directory for your text file when the package is installed.
root@s11-desktop:/var/tmp/new_package# pkgsend -s \
http://s11-serv1.mydomain.com add dir mode=0555 owner=root \
group=bin path=/export/new_package
7. Add your text file ips_rocks to your package.
root@s11-desktop:/var/tmp/new_package# pkgsend -s \
http://s11-serv1.mydomain.com add file \
/var/tmp/new_package/ips_rocks mode=0555 owner=root group=bin \
12. Open the web browser on the Sol11-Desktop virtual machine and search for your new
package.
PHASE ACTIONS
Install Phase 4/4
PHASE ITEMS
Package State Update Phase 1/1
Image State Update Phase 2/2
17. Verify that your new package has been installed on the desktop system.
root@s11-desktop:~# pkg list new_package
NAME (PUBLISHER) VERSION STATE UFOXI
new_package 1.0-1 installed -----
Copyright © 2011, Oracle and/or its affiliates. All rights reserved.
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
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
PHASE ACTIONS
Install Phase 24/24
PHASE ITEMS
Package State Update Phase 1/1
Image State Update Phase 2/2
10. Activate the solaris BE. Display the list of BEs. Note that solaris is pending
activation on reboot.
root@s11-serv1:~# beadm activate solaris
PHASE ACTIONS
Removal Phase 19/19
PHASE ITEMS
Package State Update Phase 1/1
Package Cache Update Phase 1/1
Image State Update Phase 2/2
root@s11-serv1:~# pkg -R /solaris-1 list diffstat
pkg list: no packages matching “diffstat’ installed
19. Create a new boot environment from the solaris@backup snapshot. Name this BE
solaris-2.
root@s11-serv1:~# beadm create -e solaris@backup solaris-2
root@s11-serv1:~# beadm list
BE Active Mountpoint Space Policy Created
-- ------ ---------- ----- ------ -------
solaris NR / 2.35M static 2011-08-05 22:14
solaris-1 - - 79.18M static 2011-08-08 14:13
solaris-2 - - 135.0K static 2011-08-08 14:59
Hint: Use all the available resources, such as man pages, student guide, activity guide, and
your instructor, to successfully complete each task.
Assumptions
As in the lesson titled “Managing Software Packages in Oracle Solaris 11,” your practice
environment is based on the Oracle VM VirtualBox virtualization software.
Remember: The virtual machines (VMs) are configured on a private internal network
(192.168.0). Each VM can communicate with other VMs on the same private network but cannot
communicate with the local host machine or other machines on the same network as the local
host machine.
The virtual machines (VM) you use in the practices are as follows:
• Sol11-SuperServer: This VM provides network services such as DNS used by the VMs
in the practice.
• Sol11-Server1: This is the server that provides IPS and AI services.
Copyright © 2011, Oracle and/or its affiliates. All rights reserved.
Note: The responses to the commands shown in practice are examples only. The values you
see during your practice experience might vary slightly.
Note: When launching a virtual machine for the first time, you might see the First Run Wizard
The Text installation download is in an ISO image format that can be burned to a CD/DVD or
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/course_files directory of the
VirtualBox host machine.
2. In the Oracle VM VirtualBox Manager window, click the Text-Install virtual machine icon (1).
3. Verify that the appropriate ISO image is mounted on the DVD (2). If the Text-Install ISO is
not mounted in the Text-Install virtual machine DVD drive, you can find the ISO file in the
/opt/ora/images directory on the host system.
4. Click the Start button (3). This will boot the Text-Install virtual machine from the Text
installer on the DVD to begin the OS installation.
5. During the OS installation process, use the configuration data that follows to complete the
Text installation.
Note: The Text installer program may direct you to use the F2 or ESC + 2 keys to move to
the next step in the installation process. If ESC + 2 does not work, try using the F2 key.
The LiveCD installation download is in an ISO image format that can be burned to a CD/DVD or
Note: For training purposes, the LiveCD installer ISO has already been downloaded for
you. The ISO image file can be found in the /opt/ora/images directory of the VirtualBox
host machine.
4. Click the Start button (3). This will boot the LiveCD-Install virtual machine from the LiveCD
installer on the DVD to begin the OS installation.
Note: Choose the default boot option in the GRUB menu.
5. During the LiveCD desktop initialization, you are asked to select the keyboard layout and
language. Set these based on your local environment. Note that when navigating through
the installation, F2 usually works and is the hint that is displayed by default in the UI.
ESC + 2 is the fallback.
6. When the LiveCD desktop is initialized, double-click the Install Oracle Solaris icon to begin
the OS installation.
9. After the system has successfully booted, shutdown (power-off) the LiveCD-Install virtual
machine.
The AI installation download is in an ISO image format that can be burned to a CD or a DVD or
used directly within Oracle VM Server or other virtualization software.
Note: For training purposes, the AI ISO has already been downloaded for you. The ISO
image file can be found in the /opt/ora/course_files directory of the Sol11-Server1
virtual machine.
Name: s11-serv1.mydomain.com
Address: 192.168.0.112
Note: Because you are not using the default IPS service, you will need to adjust the default AI
service accordingly.
7. Use the installadm list –c command to verify that the client was added to AI server
basic_ai.
root@s11-serv1:~# installadm list -c
Service Name Client Address Arch Image Path
------------ -------------- ---- ----------
basic_ai 08:00:27:85:C7:D6 i386 /export/ai/basic_ai
08:00:27:85:C7:D7 i386 /export/ai/basic_ai
8. Create a directory to store your manifest files.
root@s11-serv1:~# vi /var/tmp/manifests/criteria_basic_ai.xml
<ai_criteria_manifest>
<ai_criteria name="mac">
<range>
08:00:27:85:C7:D6
08:00:27:85:C7:D7
</range>
</ai_criteria>
</ai_criteria_manifest>
5. When the Sol11-Client1 system starts the GNU GRUB menu, select the Oracle Solaris
11 11/11 Text Installer and command line boot option.
9. Verify that the Sol11-Client1 virtual machine network configuration is setup correctly.
root@s11-client1:~# ipadm show-addr
ADDROBJ TYPE STATE ADDR
…
net0/_b static ok 192.168.0.xxx/24
…
root@s11-client1:~# ping 192.168.0.112
192.168.0.112 is alive
17. Note the disk activity icon in the IPS server (Sol11-Server1) virtual machine window.
After the Oracle Solaris 11 operating system is installed, the instance must be configured with
attributes such as: hostname, IP address, naming services, and user credentials. The
sysconfig utility is the interface for configuring, reconfiguring, and unconfiguring the Solaris
instance. A Solaris instance is defined as a boot environment in either a global or a non-global
zone.
During this practice, you work the sysconfig utility to unconfigure and configure Solaris 11
images. And create SC profiles.
...
Chapter 4 - Page 21
Practices for Lesson 4: Installing the Oracle Solaris 11 Operating System
Copyright © 2011, Oracle and/or its affiliates. All rights reserved.
.
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 an .xml extension.
Perform these steps to configure a Solaris 11 image using an SC profile:
1. On the Sol11-Client1 virtual machine, create an SC profile using the following system
configuration attributes:
• Hostname: ilovesolaris11
• Network type: Manually
• Network interface: net0
• Static IP address: 192.168.0.141
• Default route: none
• DNS: Configure DNS
• Name server address: 192.168.0.100
• DNS search: mydomain.com
• Alternate name service: None
• Time zone: your local time zone
• Root password: oracle2
• Your real name: Oracle2
• User login: oracle2
• User password: oracle2
• Root password: oracle2
root@s11-serv1:~# sysconfig create-profile \
-o /var/tmp/ilovesolaris11_profile.xml
...
...
Chapter 4 - Page 23
Practices for Lesson 4: Installing the Oracle Solaris 11 Operating System
Copyright © 2011, Oracle and/or its affiliates. All rights reserved.
Oracle University and Knowledge Transfer Centre use only
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Task 3: Set the Host Name, Time Zone, and Naming Service
The primary repository for all naming services configuration is the SMF repository. You can use
the SMF utilities such as: svccfg , svcprop, and svcadm to set and modify any configuration
parameter for the host name and a naming service.
Perform these steps to reconfigure the host name, time zone, and naming service:
1. On the Sol11-Client1 virtual machine, change the host name to client5.
root@ilovesolaris11:~# svccfg -s svc:/system/identity:node \
setprop config/nodename=client5
svc:/system/name-service/switch:default> exit
root@client5:~# svcadm enable dns/client
root@client5:~# svcadm refresh name-service/switch
root@client5:~# grep host /etc/nsswitch.conf
hosts: files dns
root@client5:~# tail -4 /etc/resolv.conf
# DO NOT EDIT THIS FILE. EDITS WILL BE LOST.
search mydomain.com
nameserver 192.168.0.100
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.
12. Add the custom_ai manifest and criteria manifest to the custom_ai service and show
the results.
root@s11-serv1:~# installadm create-manifest –n custom_ai \
-f /var/tmp/manifests/custom_ai.xml \
–C /var/tmp/manifests/criteria_custom_ai.xml
root@s11-serv1:~# installadm list -c -m
Service Name Client Address Arch Image Path
------------ -------------- ---- ----------
Profile Criteria
------- --------
client3_profile mac = 08:00:27:85:C7:D8
16. Validate the system configuration profile.
root@s11-serv1:~# installadm validate -n custom_ai \
-p client3_profile
Validating static profile client3_profile...
Passed
5. When the Sol11-Client1 system starts the GNU GRUB menu, select the Oracle Solaris
11 11/11 Automated Install boot option.
7. After the OS installation is complete, reboot from the hard disk and log in as oracle1.
Check the system configuration to verify that the OS if configured according to the profile.
8. Shut down and power-off the Sol11-Client3 virtual machine.
Hint: Use all the available resources, such as man pages, student guide, activity guide, and
your instructor, to successfully complete each task.
Assumptions
As in the lessons titled “Managing Software Packages in Oracle Solaris 11” and “Installing the
Oracle Solaris 11 Operating System,” your practice environment is based on the Oracle VM
VirtualBox virtualization software.
Remember: The virtual machines (VMs) are configured on a private internal network
(192.168.0). Each VM can communicate with other VMs on the same private network but not
with the local host machine or other machines on the same network as the local host machine.
The VMs you use in this practice are as follows:
• Sol11- SuperServer: This VM provides network services such as DNS and NFS used
by the VMs in the practice.
Copyright © 2011, Oracle and/or its affiliates. All rights reserved.
• Sol10-Server1: This is the system you use as the source of the zone migration
practices.
• Sol11-Server1: This is the system you use as the target of the zone migration
practices.
Note: You will also need an IPS server running on the same subnet as the AI clients for this
practice. Be sure to have started the Sol11-Server1 VM before you begin the lab.
Note: The responses to the commands shown in these practices are examples only. The values
you see during your practice experience might vary slightly.
scheduling-class:
ip-type: shared
hostid:
inherit-pkg-dir:
dir: /lib
inherit-pkg-dir:
dir: /platform
inherit-pkg-dir:
dir: /sbin
ip-type: exclusive
hostid: 34dcc40c
fs-allowed:
anet:
linkname: net0
lower-link: auto
allowed-address: 192.168.0.116/24
configure-allowed-address: true
defrouter not specified
hostid: 34dcc40c
fs-allowed:
anet:
linkname: net0
lower-link: auto
allowed-address: 192.168.0.117/24
configure-allowed-address: true
defrouter not specified
allowed-dhcp-cids not specified
3. Use the zonestat utility to monitor silently at 10-second intervals for one minute and then
produce a report on the total and high utilizations.
root@s11-serv1:~# zonestat -q -R total,high 10s 1m
Report: Total Usage
Start: Sat Oct 1 11:24:35 MDT 2011
End: Sat Oct 1 11:25:35 MDT 2011
Intervals: 6, Duration: 0:01:00
SUMMARY Cpus/Online: 1/1 Physical: 767M Virtual: 2000M
---------CPU---------- ----PHYSICAL----- -----VIRTUAL-----
Assumptions
As in previous lessons, your practice environment is based on the Oracle VM VirtualBox
virtualization software.
parent "start_state"
enabled true
ip-version ipv4
ipv4-addrsrc static
ipv4-addr "192.168.0.111"
netcfg:ncp:start_state:ncu:net0> end
netcfg:ncp:start_state> end
netcfg>
16. Select the aces location profile and list its properties.
netcfg:ncp:oracle_profile:ncu:net1> end
Committed changes
netcfg:ncp:oracle_profile> list
NCUs:
phys net1
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
classroom
NoNet
User
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
root@s11-desktop:~# init 6
11. After the system reboots, log in as oracle and su to root.
12. Open the Network Preferences dialog box.
Overview
The ipadm command provides a set of subcommands that you use to manage network
interfaces, manage IP addresses, and manage TCP/IP protocol properties. The ipadm utility
replaces some of the ifconfig command functionality for IP interface-related tasks.
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-serv1:~# 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
training1 metric ipv4 rw 0 -- 0 --
weak
13. Run the ipadm command to disable ipv4 forwarding.
root@s11-serv1:~# ipadm set-prop -p forwarding=off ipv4
14. Run the ipadm command to disable the training1 network interface and show the
results.
root@s11-serv1:~# ipadm disable-if -t training1
root@s11-serv1:~# ipadm show-if
IFNAME CLASS STATE ACTIVE OVER
3. In the terminal window, verify that the IPS publisher is configured correctly and is
operational.
root@s11-serv1:~# pkg publisher
PUBLISHER TYPE STATUS URI
solaris (preferred) origin online http://s11-serv1.mydomain.com/
root@s11-serv1:~# pkg search entire
INDEX ACTION VALUE PACKAGE
pkg.fmri set solaris/entire pkg:/entire@0.5.11-0.175.0.0.0.2.0
4. Verify that an rpool/zones ZFS file system exits and is mounted as /zones.
PHASE ACTIONS
Install Phase 44313/44313
PHASE ITEMS
Package State Update Phase 167/167
Image State Update Phase 2/2
Installation: Succeeded
PHASE ACTIONS
PHASE ITEMS
Package State Update Phase 167/167
Image State Update Phase 2/2
Installation: Succeeded
Next Steps: Boot the zone, then log into the zone console (zlogin -C)to
complete the configuration process.
When the system configuration is completed, use the ~. escape sequence to exit back
to the global zone.
16. Log in to zone3 and use the ping command to verify that the virtual network connecting
zone3 and zone4 is operational.
root@s11-serv1:~# zlogin zone3
root@zone3:~# ping 192.168.1.101
192.168.1.101 is alive
17. Exit back to the global zone.
Perform these steps to configure the virtual network for public access:
1. Use the dladm command to determine the VNICs that are currently configured in the
system.
root@s11-serv1:~# dladm show-vnic
LINK OVER SPEED MACADDRESS MACADDRTYPE VID
vnic0 stub0 0 2:8:20:31:6b:54 random 0
vnic1 stub0 0 2:8:20:81:cb:a1 random 0
zone3/vnic1 stub0 0 2:8:20:81:cb:a1 random 0
vnic2 stub0 0 2:8:20:71:27:b random 0
zone4/vnic2 stub0 0 2:8:20:71:27:b random 0
zone1/net0 net0 1000 2:8:20:31:4f:71 random 0
zone2/net0 net0 1000 2:8:20:91:ab:b1 random 0
zone3/net0 net0 1000 2:8:20:6f:62:db random 0
zone4/net0 net0 1000 2:8:20:4b:92:ea random 0
6. Remove the IP interface from data link vnic0 and show the results.
root@s11-serv1:~# ipadm delete-ip vnic0
root@s11-serv1:~# ipadm show-if
IFNAME CLASS STATE ACTIVE OVER
lo0 loopback ok yes --
net0 ip ok yes --
7. Check to see whether there are any flows associated with vnic3. If a flow is present,
remove it.
root@s11-serv1:~# flowadm show-flow
FLOW LINK IPADDR PROTO LPORT RPORT DSFLD
vnic2-throttle vnic2 -- tcp 80 -- --
root@s11-serv1:~# flowadm remove-flow –l vnic3
root@s11-serv1:~# flowadm show-flow
root@s11-serv1:~#
When configuring IPMP, you must assign all network interfaces attached to the same
LAN to an IPMP group. In this step, you delete the net0 interface in preparation for
configuring it in an IPMP group.
5. Rename data link net0 to link1_ipmp0 and data link net1 to link1_ipmp0 and show
the results.
root@s11-serv1:~# dladm rename-link net0 link0_ipmp0
root@s11-serv1:~# dladm rename-link net1 link1_ipmp0
root@s11-serv1:~# dladm show-link
LINK CLASS MTU STATE OVER
Note that the INBOUND traffic is restricted to one interface depending on which IP
address is used. The OUTBOUND traffic is spread across both interfaces.
13. Use the ipmpstat command to display IP interface information.
root@s11-serv1:~# ipmpstat -i
INTERFACE ACTIVE GROUP FLAGS LINK PROBE STATE
link1_ipmp0 yes ipmp0 ------- up ok ok
link0_ipmp0 yes ipmp0 --mbM-- up ok ok
2. Open the VirtualBox Manager GUI and click the Settings utility for the Sol11-Server1 virtual
machine.
Note that link0_ipmp0 has been boxed ([link0_ipmp0]) indicated that it has failed.
7. Use the ipmpstat command to display IP interface information.
root@s11-serv1:~# ipmpstat -i
Note that interface link2_ipmp0 is enclosed in parenthesis. This indicates that the
Note that interface link2_ipmp0 is not actively used for INBOUND and OUTBOUND
traffic.
10. Use the ipmpstat command to display IPMP interface information.
root@s11-serv1:~# ipmpstat -i
INTERFACE ACTIVE GROUP FLAGS LINK PROBE STATE
link2_ipmp0 no ipmp0 is----- up ok ok
link1_ipmp0 yes ipmp0 ------- up ok ok
link0_ipmp0 yes ipmp0 --mbM-- up ok ok
Note the flags for interface link2_ipmp0. This indicates that the interface is inactive
and set to standby.
3. Under the Network settings, select Adapter 2 and set the Attached to: field to Not
attached.
Note that link1_ipmp0 has been boxed ([link1_ipmp0]) indicated that it has failed.
7. Use the ipmpstat command to display IP interface information.
root@s11-serv1:~# ipmpstat -i
INTERFACE ACTIVE GROUP FLAGS LINK PROBE STATE
Link2_ipmp0 yes ipmp0 -s----- up ok ok
link1_ipmp0 yes ipmp0 --mbM-- up ok ok
link0_ipmp0 no ipmp0 ------- up failed failed
Note that interface link2_ipmp0 is being used for INBOUND and OUTBOUND traffic.
Copyright © 2011, Oracle and/or its affiliates. All rights reserved.
Note that interface link2_ipmp0 has been placed backup in to standby and is
inactive. This indicates that the failed interface has been repaired.
4. Create an IP interface for data link speedway0 and show the results.
root@s11-serv1:~# ipadm create-ip speedway0
root@s11-serv1:~# ipadm show-if
IFNAME CLASS STATE ACTIVE OVER
lo0 loopback ok yes --
speedway0 ip down no --
5 Run the ipadm command to create the static IPv4 address for system s11-serv1 on the
interface speedway0, and show the results.
root@s11-serv1:~# ipadm create-addr -T static \
5. To start Wireshark, open the Applications menu and select System Tools. Click the
Wireshark icon.
6. Click the List Available Capture Interfaces icon to begin your capture:
8. To generate network traffic between this system and 192.168.0.112, click the Package
Manager Refresh button. Now, using the Package Manager, install a new package.
9. After the package installation has completed, click the Stop The Running Live Capture
button to stop your capture.
10. Click the Close This Capture File button to close and save your capture.
18. In the Wireshark main screen, click File and then click Quit to close Wireshark.
Hint: Use all the available resources, such as man pages, student guide, activity guide, and
your instructor, to successfully complete each task.
Assumptions
As in previous lessons, your practice environment is based on the Oracle VM VirtualBox
virtualization software. Figure 1 shows the VirtualBox manager interface.
Note: The responses to the commands shown in these practices are examples only. The values
you see during your practice experience might vary slightly.
Name: s11-serv1.mydomain.com
Address: 192.168.0.112
5. List the disk drives currently configured in the system.
root@s11-serv1:~# format
AVAILABLE DISK SELECTIONS:
0. c3t0d0 <ATA-VBOX HARDDISK-1.0 cyl 2085 alt 2 hd 255 sec 63>
/pci@0,0/pci8086,2829@d/disk@0,0
1. c3t2d0 <ATA-VBOX HARDDISK-1.0 cyl 515 alt 2 hd 128 sec 32>
/pci@0,0/pci8086,2829@d/disk@2,0
2. c3t3d0 <ATA-VBOX HARDDISK-1.0 cyl 515 alt 2 hd 128 sec 32>
/pci@0,0/pci8086,2829@d/disk@3,0
3. c3t4d0 <ATA-VBOX HARDDISK-1.0 cyl 515 alt 2 hd 128 sec 32>
/pci@0,0/pci8086,2829@d/disk@4,0
4. c3t5d0 <ATA-VBOX HARDDISK-1.0 cyl 515 alt 2 hd 128 sec 32>
/pci@0,0/pci8086,2829@d/disk@5,0
Copyright © 2011, Oracle and/or its affiliates. All rights reserved.
format> quit
root@s11-serv1:~# newfs /dev/rdsk/c3t7d0s6
newfs: construct a new file system /dev/rdsk/c3t7d0s6: (y/n)? y
mkfs: bad value for rps: 1056 must be between 1 and 1000
mkfs: rps reset to default 60
/dev/rdsk/c3t7d0s6: 2101248 sectors in 513 cylinders of 128
tracks, 32 sectors
1026.0MB in 23 cyl groups (23 c/g, 46.00MB/g, 11264 i/g)
super-block backups (for fsck -F ufs -o b=#) at:
Name: s11-serv1.mydomain.com
Address: 192.168.0.112
3. Search for the shadow-migration package in the IPS repository.
PHASE ACTIONS
Install Phase 39/39
PHASE ITEMS
Package State Update Phase 1/1
Image State Update Phase 2/2
9. After the shadow migrations have completed, list the contents of the shadow migration
directories.
root@s11-desktop:~# ls –l /export/shadow_UFS_data
total 557461
-rwxr-xr-x 1 root root 285511680 Oct 27 07:46 sol-11-dev-175b-ai-
x86.iso
root@s11-desktop:~# ls –l /export/shadow_ZFS_data
total 557461
-rwxr-xr-x 1 root root 285511680 Oct 27 07:46 sol-11-dev-175b-ai-
x86.iso
pool: rpool
state: ONLINE
scan: none requested
config:
pool: rpool
state: ONLINE
scan: none requested
config:
config:
pool: newpool1
pool: rpool
state: ONLINE
scan: none requested
config:
PHASE ACTIONS
Install Phase 9185/9185
PHASE ITEMS
Package State Update Phase 49/49
Image State Update Phase 2/2
Loading smf(5)service descriptions: 35/35
Copyright © 2011, Oracle and/or its affiliates. All rights reserved.
6. Enable the stmf service and verify that the service is in the online state.
root@s11-serv1:~# svcadm enable stmf
root@s11-serv1:~# svcs stmf
STATE STIME FMRI
online 9:38:37 svc:/system/stmf:default
7. List the disks currently configured in the system.
root@s11-serv1:~# format
Searching for disks...done
10. Create a logical unit number (LUN) for the target volume and show the results.
root@s11-serv1:~# stmfadm create-lu \
/dev/zvol/rdsk/iscsi/target
Logical unit created: 600144F00419C10000004E43CD2D0001
root@s11-serv1:~# stmfadm list-lu
LU Name: 600144F00419C10000004E43CD2D0001
Note: Your LUN will be different from the one shown in this example.
11. Allow all systems to access the LUN by making it viewable. Show the results.
root@s11-serv1:~# stmfadm add-view \
2. Enable the initiator service and verify that the service is in the online state.
root@s11-desktop:~# svcadm enable network/iscsi/initiator
root@s11-desktop:~# svcs network/iscsi/initiator
STATE STIME FMRI
online 9:29:00 svc:/network/iscsi/initiator:default
3. Open a second terminal window and use ssh to log in to the Sol11-Server1 machine and
su to root.
4. In the Sol11-Server1 terminal window, determine the host IP address (for network interface
net0) and iSCSI target identifier.
8. Run the devfsadm command to reconfigure the /dev namespace to recognize the iSCSI
disk.
root@s11-desktop:~# devfsadm -i iscsi
9. Use the format utility to verify that the iSCSI disk is configured in the system.
root@s11-desktop:~# format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c0t600144F08372430000004DF6308F0001d0 <SUN -COMSTAR -1.0
cyl 498 alt 2 hd 64 sec 32>
Hint: Use all the available resources, such as man pages, student guide, activity guide, and
your instructor, to successfully complete each task.
Assumptions
As in previous lessons, your practice environment is based on the Oracle VM VirtualBox
virtualization software. Figure 1 shows the VirtualBox manager interface.
pool: newpool
state: ONLINE
scan: none requested
config:
pool: rpool
state: ONLINE
scan: none requested
config:
zonecfg:zone6> exit
Note that the fixed-configuration value permits updates to /var/* directories,
with the exception of directories that contain system configuration components.
- IPS packages, including new packages, cannot be installed.
- Persistently enabled SMF services are fixed.
- SMF manifests cannot be added from the default locations.
- Logging and auditing configuration files can be local. syslog and audit configuration
are fixed.
4. Use the sysconfig create-profile command to create a profile for zone6 using the
8. Log in to zone6.
root@s11-serv1:~# zlogin zone6
root@s11-zone6:~#
9. Verify that the zone6 IPS publisher is configured correctly.
root@s11-zone6:~# pkg publisher
PUBLISHER TYPE STATUS URI
solaris (syspub) origin online proxy://http://s11-serv1.mydomain.com/
10. Verify that the apptrace package is not currently installed in the zone.
root@s11-zone6:~# pkg list apptrace
ributes/write_attributes/read_acl/write_acl/write_owner/synchronize:all
ow,group@:read_xattr/read_attributes/read_acl/synchronize:allow,everyon
e@:read_xattr/read_attributes/read_acl/synchronize:allow 4da49230 101
10 722a18de3360a057fd9231e184107740
4. Create a file named newfile in the /export/home/oracle directory.
root@s11-serv1:/var/tmp# touch /export/home/oracle/newfile
5. Create another BART report by using the rules file and display the results.
root@s11-serv1:/var/tmp# bart create -r bartrules > \
bart-`hostname`-`date '+%d%m%Y-%H:%M:%S'`