Professional Documents
Culture Documents
Presentation - Manage You Deployments With The Image Packaging System and The Automated Installer
Presentation - Manage You Deployments With The Image Packaging System and The Automated Installer
Manage You Deployments With The Image Packaging System And The Automated Installer
David Miner Senior Principal Software Engineer, Solaris
1
Copyright 2011, Oracle and/or its affiliates. All rights reserved.
The following is intended to outline our general product direction. It is intended for information purposes only, and may not be incorporated into any contract. It is not a commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions. The development, release, and timing of any features or functionality described for Oracle s products remains at the sole discretion of Oracle.
Agenda
Requirements and Ideas
Updates & Upgrades Boot Environments
SRUs
Deploying at Scale IPS Repository Mirrors
Deployment must be well-integrated with best practices, overall user experience Plan
Limit install-specific features, knowledge
Update Deploy
Maintain Use
Test
+ Improved automation
+ Improved safety + Improved flexibility
On a Large Scale
6
Copyright 2011, Oracle and/or its affiliates. All rights reserved.
Oracle Solaris 11
IPS Packages Install CD + pkg repository
Live Upgrade
Upgrade from installer
Boot Environments
pkg(1), Update Manager
JumpStart
JumpStart Profiles Blueprints for custom DVD's
Agenda
Requirements and Ideas
Updates & Upgrades Boot Environments
SRUs
Deploying at Scale IPS Repository Mirrors
Active BE New BE
Active BE Updated BE
Boot Environments
Make updates safe, reliable, recoverable Different from/simpler than Solaris 10 Live Upgrade
Takes advantage of ZFS Use liberally as an administrative safety net
10
beadm(1) Utility
Create a new boot environment based on the active boot environment Create a new boot environment based on an inactive boot environment Create a snapshot of an existing boot environment Create a new boot environment based on an existing snapshot Create a new boot environment, and copy it to a different zpool Create a new boot environment and add a custom title to the x86 GRUB menu or the SPARC boot menu Activate an existing, inactive boot environment Mount a boot environment Unmount a boot environment Destroy a boot environment Destroy a snapshot of a boot environment Rename an existing, inactive boot environment Display information about your boot environment snapshots and datasets
11
12
Oracle Solaris 11
beadm create newBE
Description
Create a new BE
lustatus
luactivate newBE
beadm list
beadm activate newBE
Display BE info
Activate a BE
ludelete BE
luupgrade or patchadd
beadm destroy BE
pkg update
Destroy an inactive BE
Upgrade or update a BE
14
pkg(1)
To install an individual package: pkg install communication/im/pidgin
To check for individual updates: pkg info r communication/im/pidgin To update an individual package: pkg update communication/im/pidgin
4X Faster upgrades typical Create ZFS boot environment to safely apply updates Full dependency check of packages, crypto verified, auditable Reboot updated ZFS boot environment
16
Copyright 2011, Oracle and/or its affiliates. All rights reserved.
17
Agenda
Requirements and Ideas
Updates & Upgrades Boot Environments
SRUs
Deploying at Scale IPS Repository Mirrors
19
Agenda
Requirements and Ideas
Updates & Upgrades Boot Environments
SRUs
Deploying at Scale IPS Repository Mirrors
Origin
21
Copyright 2011, Oracle and/or its affiliates. All rights reserved.
Mirror
lofiadm -d /dev/lofi/1
22
Agenda
Requirements and Ideas
Updates & Upgrades Boot Environments
SRUs
Deploying at Scale IPS Repository Mirrors
Integrated, seamless Zones deployment WAN-capable design provides operational flexibility Designed to be manageable and observable
installadm(1M) provides one-stop management interface
24
Copyright 2011, Oracle and/or its affiliates. All rights reserved.
AI Terminology
Client physical or virtual machine to be installed Manifest XML specification of installation (storage layout, software payload) Profile SMF profile to pre-configure system services Service server infrastructure needed to network boot an installation client Criteria mapping of clients to services, manifests and profiles Repository IPS package repository Bootable AI - service-less AI boot from media
Manifest included on media or downloaded from network location
25
Copyright 2011, Oracle and/or its affiliates. All rights reserved.
26
Static Manifests
Default manifest provided with service
Installs solaris-large-server package set from Oracle's Solaris repository to firmware-designated boot disk Sysconfig invoked automatically at first boot to interactively configure basic system
Manifest specifies:
Package repositories and lists; major group packages: solaris-smallserver, solaris-large-server, solaris-desktop Target disk: choose by device path, volume id, type, vendor, size, container/receptacle/occupant (CRO) label; ZFS configuration Locales are installed/removed using package facets; all locales are installed by default
27
Copyright 2011, Oracle and/or its affiliates. All rights reserved.
Derived Manifests
Dynamically generate manifest in a script Scales AI management by reducing number of manifests maintained by administrators Most effective model is to load template manifest, modify specific elements Script uses the aimanifest(1M) command as interface to generate AI manifest Generated manifest located on the client at:
/system/volatile/manifest.xml
28
Agenda
Requirements and Ideas
Updates & Upgrades Boot Environments
SRUs
Deploying at Scale IPS Repository Mirrors
Interactive tool provides basic, required system configuration. UI similar to Text Installer. Profiles can configure any SMF service property sysconfig unconfigure reverts the properties configured by the interactive UI to shipped defaults
--destructive option requests more complete cleanup, e.g. deleting initial user account's home directory
30
Copyright 2011, Oracle and/or its affiliates. All rights reserved.
31
Runs the sysconfig UI, places output into specified profile Edit further to add properties not configured by sysconfig
32
Agenda
Requirements and Ideas
Updates & Upgrades Boot Environments
SRUs
Deploying at Scale IPS Repository Mirrors
source=file:///net/server/zone2/config/>
config file is the zone's configuration file as output from zonecfg export Automatically installed on first boot of the global zone
svc:/system/zones-install:default
34
35
Default profile enables interactive system configuration during first boot Provide alternate manifest and/or profile with
# zoneadm -z <zone> install -m <manifest> -c <profile>
36
Agenda
Requirements and Ideas
Updates & Upgrades Boot Environments
SRUs
Deploying at Scale IPS Repository Mirrors
JumpStart to AI Mapping
JumpStart
setup_install_server add_install_client JumpStart profile & rules sysidcfg file
Automated Installation
installadm create-service installadm create-client AI manifest & criteria SMF configuration profile
Begin script
Finish script
38
39
Translate rules to criteria Translate profiles to manifests Translate sysidcfg to SMF profile Publish manifests and profiles to AI service Convert finish scripts to SMF service(s) Publish SMF service package to IPS repository
40
Use DC to build AI (or interactive install) images customized with additional drivers or services XML manifest (similar to AI) specifies construction Checkpoint/resume feature nicely leverages ZFS! Fully extensible plug your own customizations into build process See distro_const(1M) for more information
41
Copyright 2011, Oracle and/or its affiliates. All rights reserved.
Deploy to AI service:
installadm create-service ...
42
Copyright 2011, Oracle and/or its affiliates. All rights reserved.
43
Documentation Available
Transitioning From Oracle Solaris 10 JumpStart to Oracle Solaris 11 Automated Installer
http://docs.oracle.com/cd/E23824_01/html/E21799/index.html
44
45
Summary
46
47
Summary
Oracle Solaris 11 deployment is different from Solaris 10
Little required customization work to start deploying Powerful, stable, supported capabilities for those who need to customize
Transition documentation, tools are provided Feature set will expand & evolve Boot Environments allow for fast, efficient, and foolproof software upgrades
48
@ORCL_Solaris
49
50
Both provide configuration of initial user account, with administrative privileges via sudo
52
Copyright 2011, Oracle and/or its affiliates. All rights reserved.
Text-based Install
53