1 / 46

Sequencing Deep Dive: Efficiently Making Your Applications Virtual

Required Slide. SESSION CODE: VIR320. Sequencing Deep Dive: Efficiently Making Your Applications Virtual . Chris Green Program Manager Microsoft Corporation. Session Objectives And Takeaways. Understand the sequencing process See best practices for sequencing apps

liam
Download Presentation

Sequencing Deep Dive: Efficiently Making Your Applications Virtual

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Required Slide SESSION CODE: VIR320 Sequencing Deep Dive: EfficientlyMaking Your Applications Virtual Chris Green Program Manager Microsoft Corporation

  2. Session Objectives And Takeaways • Understand the sequencing process • See best practices for sequencing apps • Learn methods to customize sequencing to your environment Almost any application can be sequenced!

  3. Session OverviewWhat to know, how to do it, and what to do • Theory: Understand the Application Model • Practice: Sequencing guidelines and prep • Demo: Create a package with the Sequencer • Theory: Sequencing process deep dive • Practice: Customize the package and virtual environment • Demo: Test drive package customization and DSC

  4. What To Know The core concepts of App-V and sequencing Theory

  5. App-V Platform

  6. Application ModelApplication description The XML application descriptor file (OSD) contains the metadata that represents the app and it’s environment. • An OSD file contains: • Name, GUID, version information • Platform and environment settings • Dependencies • Target package and application • Reference to immutable state • Shell integration • Pre/Post processing scripts

  7. Application ModelLifecycle management The SFT, a single self-contained package, embodies the App Model lifecycle. • An SFT file contains: • All application assets • Classifications and versions • Security descriptors • Immutable state • History of servicing • Optimized streaming layout

  8. Application ModelState management State is isolated from the system, between users and between applications. • User State is: • Specific to each user • Changes isolated to each user • Portable, roams with the user • Application State is: • Shared across all users • Changes isolated to system • Local only

  9. Application ModelRuntime management The runtime invokes and maintains the virtual environment for each app. • The Virtual Environment: • Manages namespaces and visibility • Ensures isolation between objects • Directs modifications to the application

  10. How To Do It Getting prepared to sequence Practice

  11. Sequencing GuidelinesGood candidates for virtualization • Almost all applications are good candidates!

  12. Sequencing GuidelinesCandidates needing assistance to virtualize • Embed state or dependencies • Custom configuration • Interface with system • Device drivers • System software • Use non-virtualized extensibility points • Shell extensions • App or system plug-ins • Deploy at runtime or in image • Use DSC to add plug-ins • Follow sequencing best practices

  13. Sequencing PrepSetting up the Sequencer station • Mirror Client configuration • Create a standard virtualization drive • Start from a system image or use VM • Revert to golden image before sequencing

  14. Sequencing PrepSetting up the Sequencer station • Run Microsoft Update and install patches • Reserve free space (3x Application size) • Run Sequencing in an isolated environment • Disable Virus Scanners, Defender, Indexing, Update during sequencing

  15. Sequencing FAQImprove your Sequencer IQ • Q: Do I have to sequence to drive Q:? • A: No. • Q: Will packages sequenced on XP run on Vista? • A: In most cases, Yes. • Q: Will applications with drivers or services sequence? • A: Services generally work. Drivers and unsupported services can be installed locally using OSD scripting.

  16. Sequencing ProcessThe key activities of producing a package Installation Phase Launch Phase Customization Phase (Opt) Save Phase

  17. What To Do Sequencing is easy as 1-2-(3)-4 Demo

  18. What To Know What just happened? Looking inside the sequencing process Theory

  19. Sequencing ProcessInterpreting collected data Monitored Data SFT Parser Excluder Classifier Demo-PC→ %COMPUTERNAME% C:\Windows → %CSIDL_WINDOWS% Q:\LiveMtg\→ %SFT_MNT%\LiveMtg\ C:\Users\Demo\ → %USERPROFILE% … %CSIDL_INTERNET_CACHE% %CSIDL_LOCAL_APPDATA% C:\$Recycle.Bin\ … %COMPUTERNAME% → App %CSIDL_WINDOWS% → App %SFT_MNT%\LiveMtg\→ App %USERPROFILE% → User …

  20. Sequencing ProcessTransforming data • Virtual View – What data is visible in the VE? • Merged: Client + App data • Override: App data only • File Mapping – Where does data appear? • Directly on the virtualization drive • Redirected to any other folder or drive

  21. Sequencing ProcessVirtual view example App Data Override Virtual View Merged Virtual View Client System Data

  22. Sequencing ProcessFile mappings example

  23. Sequencing OutputsWhat does the Sequencer create? SPRJ Sequencer Project OSDs Application Description SFT Package File ICOs Shortcut and FTA Icons Manifest Standalone Publishing MSI Setup Standalone Setup Utility

  24. Sequencing OutputsRelationships SPRJ Sequencer Project OSDs Application Description SFT Package File ICOs Shortcut and FTA Icons Manifest Standalone Publishing MSI Setup Standalone Setup Utility MSI

  25. How To Do It Customizing Packages Practice

  26. Customizing the OSDHands-on look inside the OSD • What’s in the OSD file? • Adding Scripting • Powerful tool to customize packages • Event based scripts can be run for any package dependency • Can be written in any client installed language • Configuring the VE • Modifying packages without re-sequencing

  27. When? • Pre/Post Stream • Pre/Post Launch • Post Shutdown OSD ScriptingFlexible execution options • Where? • Inside the VE • Outside the VE • How? • Delay before timeout error • Wait for completion • Handle script exit code

  28. TERMINATECHILDREN • Attribute • Ends all child processes of the launched virtual app when the app ends. OSD VE CustomizationVirtual Environment Options and Policies • LOCAL_ INTERACTION_ ALLOWED • Policy • Relaxes isolation for virtual app • Useful when virtual applications need to interact with locally installed applications. • Debugging Policies • VIRTUAL_SERVICES_DISABLED • VIRTUAL_REGISTRY_DISABLED • VIRTUAL_FILE_SYSTEM_DISABLED

  29. OSD VE CustomizationExample – Add Environment Variables • Append application environment variables for users or sites … <VIRTUALENV> <ENVLIST> … <ENVIRONMENT VARIABLE="PATH"> %PATH%;%SFT_MNT%\vs2005\Microsoft SDK\bin\.; </ENVIRONMENT> <ENVIRONMENT VARIABLE="W2K3DDK"> %SFT_MNT%\vs2005\winddk\3790~1.183 </ENVIRONMENT> … </ENVLIST> </VIRTUALENV> …

  30. OSD VE CustomizationExample – Add Registry Settings • Modify application configurable settings without re-sequencing … <VIRTUALENV> <REGISTRY> … <REGKEY HIVE="HKCU" KEY="\Software\Microsoft\Tracing\DemoApp"> <REGVALUE REGTYPE="REG_DWORD" NAME="EnableFileTracing">1 </REGVALUE> <REGVALUE REGTYPE="REG_DWORD" NAME="EnableDebuggerTracing">1 </REGVALUE> </REGKEY> … </REGISTRY> </VIRTUALENV> …

  31. OSD ScriptingExample – Prerequisite Check … <DEPENDENCY> <SCRIPT EVENT="LAUNCH" PROTECT="TRUE" TIMING="PRE" WAIT="TRUE“ SUCCESSRESULT="1" ABORTRESULT="0"> <SCRIPTBODY> @echo off\n set net35loc=%windir%\\Microsoft.NET\\Framework\\v3.5\n set file35=%net35loc%\\csc.exe\n if not exist &quot;%file35%&quot; (\n echo .NET 3.5 Framework must be installed for this application.\n pause\n exit 0 )\n exit 1 </SCRIPTBODY> </SCRIPT> </DEPENDENCY> …

  32. Dynamic Suite CompositionIncreased flexibility managing applications • Benefits • Independent Servicing • Independent Deployment • Target Scenarios • Plug-ins, Middleware, Shared Components • “Small” Dependent Applications • Features • Multiple Packages in Same Virtual Environment

  33. Dynamic Suite CompositionPrimary and secondary packages .NET App 1 (Primary) .NET App 2 (Primary) Excel 2007 (Primary) .NET Framework 1.1 (Secondary) .NET Framework 1.1 (Secondary) Excel plug-in 1 (Secondary) Excel plug-in 2 (Secondary) .NET Framework 1.1 (Secondary) Excel plug-in 1 (Secondary) Excel plug-in 2 (Secondary)

  34. Dynamic Suite CompositionWorkflow for plug-ins Package files Primary application Package files Secondary application Sequence primary app Revert VM Install primary app (same settings) Sequence secondary app Link dependencies

  35. Dynamic Suite CompositionWorkflow for middleware and frameworks Package files Primary application Package files Secondary application Install middleware Sequence primary app Revert VM Sequence secondary app Link dependencies

  36. OSD DependenciesExample of configuring suited applications <?xml version="1.0" standalone="no"?> <SOFTPKG GUID="99D18E63-AD5E-4308-9B22-F8E9B45BD246" NAME="Microsoft Office Outlook" VERSION="12.0.6212.1000"> <IMPLEMENTATION> … <VIRTUALENV TERMINATECHILDREN="FALSE"> <DEPENDENCIES> <CODEBASE HREF="RTSPS://%SFT_SOFTGRIDSERVER%:322/Live Meeting Project.sft" GUID="5665AE50-7AB5-4B2B-A334-0E296ABC44E0" PARAMETERS="" FILENAME="%CSIDL_APPDATA%\Microsoft Office\Live Meeting 8\Console\PWConsole.exe" SYSGUARDFILE="LiveMtg\osguard.cp" SIZE="55774767" MANDATORY="TRUE" /> </DEPENDENCIES> <ENVLIST /> </VIRTUALENV> … </IMPLEMENTATION> … </SOFTPKG>

  37. What To Do Creating DSC packages using the Dynamic Suiting Tool Demo

  38. Attachmate Reflection and App-V • Native support of Reflection in App-V format • Reflection 2011 Recipe published on TechNet • Limited quantity of USB drives in Attachmate booth • USB drives contain Reflection 2011 in native App-V format (.sft)

  39. Introducing App-V Sequencing communityA forum for IT Pros within the App-V community to share their best practice recipes in an effort to grow everyone’s knowledge, expertise and save each other time by learning together http://social.technet.microsoft.com/Forums/en-US/prescriptiveguidance • Office 2010 • Office 2003 • Apache web server with perl scripts • Oracle client 11gR2 • GLIM 4 • Epi Info 3.5 • Eclipse 3.5 • Dreamweaver 8 • SPSS Amos v 17 • Notepad ++ • Google Sketchup 7 • Mozilla Firefox • Adobe Readerand more….

  40. Required Slide Speakers, please list the Breakout Sessions, Interactive Sessions, Labs and Demo Stations that are related to your session. Related Content • Sessions • VIR209 - Microsoft Application Virtualization 4.6 and Microsoft Office 2010 • VIR321 - Effectively Debugging Complex Application Sequencings • VIR10-INT - When Things Go Wrong: How to Effectively and Efficiently Troubleshoot App-V Deployments • VIR11-INT - Top Customer Scenarios and an End-to-End Review of Microsoft Application Virtualization (App-V) • Hands-on Labs • OSP21-HOL – Advanced App-V: Sequencing Microsoft Office 2010 • VIR01-HOL – Application Virtualization: Publishing Lab • VIR02-HOL – Application Virtualization: Sequencing Lab • VIR03-HOL – Application Virtualization: Troubleshooting

  41. Virtualization Track Resources • Stay tuned into virtualization at TechEd NA 2010 by visiting our event website, Facebook and Twitter pages. Don’t forget to visit the Virtualization TLC area (orange section) to see product demos, speak with experts and sign up for promotional giveaways • Microsoft.com/Virtualization/Events • Facebook.com/Microsoft.Virtualization • Twitter.com/MS_Virt • Like this session? Write a blog on 2 key learning's from this session and send it to #TE_VIR and you could win a Lenovo IdeaPad™ S10-3 with Windows 7 Netbook! Review the rules on our event websiteMicrosoft.com/Virtualization/Events

  42. Required Slide Resources Learning • Sessions On-Demand & Community • Microsoft Certification & Training Resources www.microsoft.com/teched www.microsoft.com/learning • Resources for IT Professionals • Resources for Developers • http://microsoft.com/technet • http://microsoft.com/msdn

  43. Required Slide Complete an evaluation on CommNet and enter to win!

  44. Sign up for Tech·Ed 2011 and save $500 starting June 8 – June 31st http://northamerica.msteched.com/registration You can also register at the North America 2011 kiosk located at registrationJoin us in Atlanta next year

  45. © 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

  46. Required Slide

More Related