1
Solaris 11 for Developers Webinar Series Simplify your Development with Zones, ZFS and Crossbow (TCP/IP) Eric Reid, Stefan Schneider Oracle Systems ISV Engineering 2
Solaris 11 for Developers Webinar Series Webinar Series Topic Date Speaker Modern Software Packaging for Enterprise Developers* 03-27-12 @ 9am PT Eric Reid (Principal Software Engineer) Simplify Your Development Environment with Zones, ZFS & Crossbow (Network Stack) 04-10-12 @ 9am PT Eric Reid & Stefan Schneider (Chief Technologist, ISV Eng.) Managing Application Services Using SMF Manifests in Solaris 11* 04-24-12 @ 9am PT Matthew Hosanee (Principal Software Engineer) Optimize Your Applications on Solaris 11: The DTrace Advantage* 05-08-12 @ 9am PT Maximize Application Performance and Reliability on Solaris 11* - Record breaking compilers, powerful analysis tools, remote development 05-22-12 @ 9am PT Vijay Taktar (Senior Manager, Software Dev.) Writing Solaris 11 Device Drivers* 06-05-12 @ 9am PT Bill Knoche (Principal Software Engineer) Angelo Rajadurai (Principal Software Engineer) 3
Objectives of this Presentation Share ideas to architect a Solaris development system lower costs by smart consolidation react faster on changing requirements make SW developers more productive simplify internal processes Turn technologies like ZFS, Zones, Crossbow into time saving solutions 4
Decision Tree for Lab Setup Category Logical Domains Solaris Zones Concept Full OS replication with hypervisor Isolation and virtualization of APIs and services HW resources assigned Assignment optional; shared with global zone Resource mgmt. HW resources assigned Optional (RBAC, zones, proj.) Instance life time long (static) as needed (very dynamic) Memory overhead of a full OS... of a few daemons Limitations Same shared kernel Focus: * Flexibility * Agility * Features 5
Challenges Faced by Development and QA Engineers Hardware resources are very limited Multiple test environments are required to deploy different software stacks Considerable amount of time required to install the OS and configure resources to test environments Restoring test environments repeatedly after regular testing due to changes while testing 6
Logical Domains (LDom) LDom provides virtualization based on the hypervisor LDom provides provides protection and isolation through SPARC hardware and hypervisor firmware Each virtual machine (logical domain) appears as an independent machine Each domain is a virtual machine with reconfigurable subset of machine resources and its own independent OS LDom is now known as Oracle VM Server for SPARC 7
Oracle Solaris Zones provide a partitioning technology are available on Oracle Solaris 10 and Oracle Solaris 11 isolate software applications and services by using software defined boundaries (based on Solaris kernel) enable private execution environments within a single instance of the Solaris kernel provide a virtualized Solaris OS image, including a unique root file system and a shared set of system executables, libraries and resources 8
Zone-Based Virtual Test Environments A local zone can be an ideal test environment Each local zone appears as an independent, isolated test system You can easily setup zone-based test environments You can establish separate test environments in different zones, for different applications, all within the same system You can easily restore and clone zones-based test environments The virtual environment guarantees sufficient CPU and memory resource allocation to applications while retaining the ability to use idle resources as required 9
1+1+1 is greater than 3 Things coming together in Solaris 11 Isolation Minimal overhead Organizational independence No license issues Solaris 10 and Solaris 11 support (in a Solaris 11 system) Zones Solaris 11 Solaris 11 TCP/IP Development Environments Ease of application configuration through VNICs Complex internal network topologies Organizational independence ZFS Cloning on demand Deduplication on demand Snap shot on demand Compression on demand 10
Scenario 1: Application Support for Solaris 10 and Solaris 11 Goal: Build cost efficient applications which support customer installations of the last ~8 years and the next 3 years Support Oracle Solaris 10 and Oracle Solaris 11 Build on Solaris 10 and qualify for Solaris 10 and 11 Use the latest compiler (Sun Studio 12.3) Strategy: Use one Oracle Solaris 11 system and exploit the Solaris 10 infrastructure as well as the Solaris 11 infrastructure Retire old, slow, energy inefficient V- and E-class servers and consolidate on T4 servers 11
Scenario 1: The Architecture Solaris 11 Global Zone Solaris 10 Zone (Build Server) Compiler and tools Sharing through NFS General infrastructure Version management IPS Highest version recommended Solaris 10 SVR4 packages as needed General infrastructure imported through NFS mounts Version management SVR4 Studio implicitly maintained through IPS 12
Scenario 1: Comments Solaris 10 Branded zones require an existing Solaris 10 image (Administration Guide) to be cloned or a bootable Image to be attached This is the way to upgrade and consolidate your build servers... :-) The cross mounts require NFS as sharing technology LOFS mounts will not work for multiple mount points Solaris 10 patching will have to happen individually 13
Scenario 2: QA requires Developer to analyze Problem Solution: Provide independent copy of setup Use zones cloning to create a copy of the application (disk) state and Solaris zone Provide a live zone on demand for the developer 14
Scenario 2: How to get it done... Setup QA Env. in a zone Shutdown QA zone when needed Clone zone Have template with system configuration Impact Disk: Minimal, zone clones share unmodified disk blocks Memory: Extra application memory needed for parallel work. Halted zones don't need memory CPU: as needed Restart QA zone Boot debug clone on Privileges required demand Zones admin on target sys. Access to IP addresses for Destroy debug clone zone remote access (or use when needed global zone as gateway) Resources: Get Started creating zones 15
Scenario 3: Qualifying Applications for Solaris 10 and Solaris 11 Option: Parallel QA CPU, Memory, network requirements will double...but not more than double! Comment Option: Alternate QA The halted zone will require disk space for non deduplicated content Shutdown or reboot within seconds Solaris 11 zone can be patched in sync. with global zone 16
Scenario 4: QA in Complex Network Topologies Concept Benefits Configure internal network Keep network topology as private network Keep traffic inside the system Load tests without side effects to lab net Test network plumbing of application installation software Configure multiple network configurations (no costs as long as the zones are being shutdown) 17
Scenario 4: Comments Comments New: Network Administration has been completely refurbished! New: Virtual NICs allow applications to hard code against vnics without knowledge of the physical interface! Network Resource control is optional ( and recommended) Simulate extreme customer network configurations 18
Scenario 4: References References Solaris 11 Network Virtualization Technology How to Script Network-In-a-Box Oracle Solaris 11 Network Virtualization and Management 19
Example: Eat you own Dog Food Oracle Remote Solaris Lab A secure cloud environment built on Solaris 11 technologies Use of Solaris network virtualization technologies to create a secure VLAN per user and segregate network traffic Zones technology segregates partner VMs Secure Global Desktop provides segregated communications channels ZFS technology provides rapid deployment of images in partner VMs and secures data 20
Example: Eat you own Dog Food Oracle Remote Solaris Lab An easy to use self-service secure cloud environment for testing Provides partner access to SPARC and x86 VMs in Oracle Solaris 11 environments Simplified cloud deployment can be up and running in minutes Self explanatory web UI reduces start up time to almost zero Partner can make use of Virtual Machine Images with software packages preinstalled (such as Sun Studio Compilers, Oracle Data Base, WebLogic) to create tailor made VMs Available to OPN Gold+ members 21
To Learn More Solaris 10 Administration Guide: Branded Zones Migration http://docs.oracle.com/cd/e23824_01/html/821-1460/gjfbq.html#scrolltoc Introduction to zones http://www.oracle.com/technetwork/articles/servers-storage-admin/o11-092-s11-zones-intro-524494.html Solaris Trainings http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=402&p_nl=orsl Check out other Webinars in this series http://www.oracle.com/technetwork/server-storage/solaris11/overview/webinar-series-1563626.html 22
Call To Action Save Costs Consolidate your test lab with Oracle Solaris 11 Invest in Solaris 11 Networking and Virtualization Skills Exploit the Developer Support Benefits for OPN Gold Members Get your hands dirty... Everything is there, all features discussed are standard Solaris 11 features. 23
Solaris 11 for Developers Webinar Series Webinar Series Topic Date Speaker Modern Software Packaging for Enterprise Developers* 03-27-12 @ 9am PT Eric Reid (Principal Software Engineer) Simplify Your Development Environment with Zones, ZFS & Crossbow (Network Stack) 04-10-12 @ 9am PT Eric Reid & Stefan Schneider (Chief Technologist, ISV Eng.) Managing Application Services Using SMF Manifests in Solaris 11* 04-24-12 @ 9am PT Matthew Hosanee (Principal Software Engineer) Optimize Your Applications on Solaris 11: The DTrace Advantage* 05-08-12 @ 9am PT Maximize Application Performance and Reliability on Solaris 11* - Record breaking compilers, powerful analysis tools, remote development 05-22-12 @ 9am PT Vijay Taktar (Senior Manager, Software Dev.) Writing Solaris 11 Device Drivers* 06-05-12 @ 9am PT Bill Knoche (Principal Software Engineer) Angelo Rajadurai (Principal Software Engineer) 24
Resources for Solaris 11 Developers Web address: 25
Q&A 26
27