PAf KTl enterprise^ Virtualization Advanced Guide. Microsoft Application. optimize your application virtualization p'atform.

Size: px
Start display at page:

Download "PAf KTl enterprise^ Virtualization Advanced Guide. Microsoft Application. optimize your application virtualization p'atform."

Transcription

1 Microsoft Application Virtualization Advanced Guide Master Microsoft App-V by taking a deep dive into advanced topics and acquire all the necessary skills to optimize your application virtualization p'atform Augusto Alvarez PAf KTl enterprise^ I %Vx> l\ I I professional expertise distilled PUBLISHING - BIRMINGHAM MUMBAI

2 Preface 1 Chapter 1: Taking a Deep Dive into App-V 7 What's new in App-V 4.6 SP1? 8 App-V components and architecture 14 Understanding App-V server components 14 App-V management server 14 App-V management system 15 App-V Streaming Server 16 App-V Management Server Console options 16 Understanding sequenced application components 19 Understanding App-V client components 22 Understanding the virtual environment 22 App-V Client Management Console 23 Understanding Global Data and User Data directory 30 Understanding the App-V client cache 37 Registry keys available in the App-V client 39 App-V deployment possibilities 41 Understanding the Full Infrastructure model 42 Understanding the ESD model 43 Comparing streaming methods 45 Understanding the Standalone model 46 Understanding the App-V client and publishing interaction 46 Understanding the publishing refresh process 47 Understanding the application launch/load process 48 AutoLoad options 49 Summary 51 Chapter 2: Sequencing in Complex Environments 53 Overview of complex sequencing 54 Applications not supported for sequencing 55 Sequencing best practices 57

3 Reviewing complex applications 60 Applications that require complex sequencing 61 About the Microsoft Application Compatibility Toolkit 62 Understanding sequencing phases 63 Handling App-V Sequencer exclusions 64 Using workarounds for applications with drivers 66 Handling the virtual environment 69 Using override/merge options 70 Understanding LOCAL_INTERACTION_ALLOWED 72 Using Dynamic Suite Composition 76 Sequencing applications in DSC 77 Using the Dynamic Suite Composition tool 79 Upgrading/editing an existing application 82 Updating an application in an existing package 82 Editing the package 85 Adding a new application 86 Creating and handling package accelerators 88 What is a package accelerator? 88 Creating a package accelerator 88 Using a package accelerator 95 Reviewing package accelerators best practices 99 Summary 100 Chapter 3: Deploying Applications in Complex Environments 101 Configuring and using HTTP publishing and streaming 102 Adding the Web Server role 103 Configuring IIS options 105 Adding MIME types 107 Creating publication files 109 Configuring the App-V client 113 Configuring and using the standalone mode 115 Standalone without streaming 115 Manual configuration 116 Group Policy configuration 116 Running the application in standalone mode without streaming 118 Standalone with SMB streaming 118 Manual configuration 119 Group Policy configuration 119 Running the application in standalone mode with SMB streaming 121 Configuring SSL communications 121 Certificate prerequisites 122 Setting RTSPS communications 122

4 Configuring the App-V management server 122 Configuring the App-V Streaming Server 126 Configuring the App-V Desktop Client 129 Setting HTTPS communications 131 Configuring the web service 131 Configuring HTTPS streaming 132 Using Providers Policies in App-V 133 Understanding Providers Policies and licenses 133 Configuring and applying Providers Policies 134 Configuring and applying App-V licenses 138 Using an unlimited license 139 Using concurrent licenses 142 Using named licenses 143 Summary 144 Chapter 4; Handling Scripting and App-V Command Lines 147 What we can do with App-V scripting 148 Introducing OSD scripting 148 Understanding OSD scripting stages 149 Understanding <HREF> 151 Understanding <SCRIPTBODY> 152 Comparing <HREF> and <SCRIPTBODY> 153 Interacting within the virtual environment 154 Adding parameters to the virtual application 154 Using WORKINGDIR 155 Adding environment variables 155 Editing the virtual registry 156 Editing LOCALJNTERACTION_ALLOWED 157 Editing TERMINATECHILDREN 158 Editing the Provider Policy 158 Interacting outside the virtual environment 159 Launching local applications 159 Starting a service 160 Checking for prerequisites before launching 160 Using App-V command lines 161 Configuring client options with SFTMIME 161 Handling virtual applications with SFTMIME 162 Handling packages with SFTMIME 165 Configuring server options with SFTMIME 170 Handling file type associations 171 Handling queries and OBJ with SFTMIME 173 Using SFTSequencer 175 Sequencing an application using SFTSequencer 176 Opening a package for upgrade using SFTSequencer 178 Handling package accelerators using SFTSequencer 178 Expand package to a local system 180

5 Table ofcontents What about SFTTRAY? 180 Reviewing possibilities using PowerShell 182 Summary 184 Chapter 5: Troubleshooting App-V 185 Troubleshooting App-V implementations 186 Troubleshooting the App-V management server implementation 186 Solving App-V management server installation problems 187 Solving App-V management server implementation problems 191 Troubleshooting the App-V client implementation 204 Solving App-V client installation problems 204 Troubleshooting applications delivery 205 Reviewing App-V client log files 206 Enabling sftnta.txt and sftlist.txt 206 Understanding error codes in App-V client 207 Reviewing common application delivery problems 210 About application client log parser 214 Reviewing common problems with virtual application usage 216 Working with applications that require elevation 216 Using workarounds to analyze application problems 217 Analyzing performance problems in applications 221 Troubleshooting application sequencing/launching 222 Using Process Monitor for troubleshooting 223 Understanding the application problem 223 Monitoring the activity with Process Monitor 224 Using Filter options to research the problem 226 Summary 231 Chapter 6: Scaling Up App-V Implementations 233 Reviewing general guidelines for the right design 234 Reviewing fault tolerance possibilities in App-V 235 Implementing Network Load Balancing in App-V 237 Preparing accounts for delegation in Active Directory 237 Creating a Network Load Balancing cluster 240 Adding Service Principal Names 244 Installing or configuring App-V Management Server services in NLB 247 Configuring App-V Clients 248 Troubleshooting App-V Clients in the NLB scenario 249 Considerations about using the Management Console in NLB 249 Implementing database mirroring for the App-V data store 250 Preparing a database for mirroring 251 Configuring SQL database mirroring 252 Configuring the App-V Management Server for database mirroring 257 Implementing Distributed File System 260

6 Table ofcontents Extending App-V implementations 270 Publishing App-V in your firewalls 270 Using App-V servers on the internal network 270 Using App-V servers in the DMZ 272 Summary 274 Chapter 7: Integrating App-V with Virtual Desktop Infrastructure (VDI) 275 Virtual Desktop Infrastructure (VDI) 276 Understanding VDI components and architecture 277 VDI considerations 279 Integrating App-V with VDI 283 Shared cache and its benefits 283 Using the App-V shared cache 285 Creating your own VDI environment 286 Installing and configuring RDS roles 286 Configuring and assigning virtual desktops to RDS 289 Testing the environment 295 Preparing and extracting the App-V client cache 297 Configuring App-V clients for a shared cache 299 Handling application and cache updates 303 Reviewing alternatives in App-V plus RDS integration 305 App-V versus RemoteApp 306 Understanding App-V and RemoteApp differences 306 Combining App-V with Remote Desktop Services 307 Installing and configuring App-V Remote Desktop Services 308 App-V RDS Client considerations 308 Deployment considerations 309 Publishing App-V applications with RemoteApp 310 Summary 315 Chapter 8: Integrating App-V with System Center Configuration Manager SCCM SCCM 2012 improvements 318 Reviewing SCCM and App-V integration 321 Benefits of integrating SCCM and App-V 321 Some considerations about the integration 322 Components involved 323 Understanding delivery methods 324 Streaming Delivery 324 Local Delivery (downloading and execution) 326 App-V Client and the OverrideURL setting 327 Requirements for the SCCM + App-V integration 328

7 Platform requirements in SCCM Storage requirements 329 Implementing SCCM and App-V integration 330 Installing SCCM SCCM 2012 requirements 331 Installing SCCM Distributing the App-V Client with SCCM Using virtual applications in SCCM Creating virtual applications 347 Deploying virtual applications 348 Deploying applications in clients 355 Summary 357 Chapter 9: Integrating Server App-V with Private Clouds 359 Server App-V 360 Reviewing applications supported by Server App-V 363 Differentiating between Server App-V and Desktop App-V 365 PowerShell Cmdlets available 366 Understanding the SCVMM and the Private Cloud concept 366 Integrating SCVMM and Server App-V 368 What is a Service template? 368 Installing and configuring SCVMM Installing SCVMM SCVMM 2012 requirements 369 Reviewing installation steps 371 SCVMM initial configuration and features 373 Adding visualization hosts 373 Adding Library servers 374 Handling and creating VM templates 375 Sequencing applications with Server App-V 380 Preparing Server App-V Sequencer 380 Sequencing MySQL with Server App-V Sequencer 381 Understanding the available Server App-V Sequencer panes 388 Deploying Server App-V applications 392 Deploying Server App-V applications using PowerShell 393 Deploying Server App-V applications using SCVMM Configuring an application profile 398 Configuring and deploying a Service template 400 Summary 407 Appendix: Reviewing App-V Microsoft and Third-party Tools 409 Microsoft tools for App-V 410 Application Virtualization Dashboard 410 Application Virtualization Dynamic Suite Composition tool 411 Application Virtualization Administrative template (ADM template) 412

8 Application Virtualization Best Practices Analyzer 413 Application Virtualization 4.5 Security Configuration Roles 413 Application Virtualization Sequencing SuperFlow 414 Application Virtualization Listing tool 415 Application Virtualization Client Log Parser utility 415 Application Virtualization SFT View 416 Application Virtualization SFT Parser tool 417 Application Virtualization Cache Configuration tool 418 Application Virtualization MSI Compat Transform 418 Microsoft Application Virtualization DemoMate demo 419 Third-party tools for App-V 420 App-V Ping tool 420 App-V Client Diagnostic and Configuration (ACDC) tool 420 App-V USB tool 422 App-V add-on ADM Application Virtualization Explorer 423 App-V Client Setup Kit 425 Application Virtualization Analyzer 425 AppV_DeployApp and AppV_PublishApp 426 Launchlt 426 App-V OSD editor 427 OSD Illustrated 427 Batch+ 428 Add OS to OSD 429 OSD+ 429 App-V Helper 430 Softricity File (SFT) Checking utility 430 LogTools for SoftGrid client 430 SFT Encoder Express 431 Virtualization Encoder 432 App-V Migration tool 432 Lib-V 433 AppScriber 433 AdminStudio 434 App-V Tool suite 435 PowerShell snap-in for Microsoft App-V Server 4.6 SP1 436 App-V Generator 436 PkgView for App-V 437 PimpMy for Softgrid and App-V 438 Failure to Launch 438 sftlmport 439

9 Table of Qjntents Advanced Installer 440 DSC Management Utility 440 App-V Import tool 441 Summary 441 Index 443