Loading in 2 Seconds...
Loading in 2 Seconds...
MGT317. Overview of Microsoft System Center 2012 SP1 – Virtual Machine Manager Services. Stephen Baron Sr. Program Manager Lead Microsoft Corporation. System Center Virtual Machine Manager 2012. Deployment. Fabric. Services. Cloud. Fabric Management. Hyper-V Bare Metal Provisioning.
MGT317 Overview of Microsoft System Center 2012 SP1 – Virtual Machine Manager Services Stephen Baron Sr. Program Manager Lead Microsoft Corporation
System Center Virtual Machine Manager 2012 Deployment Fabric Services Cloud • Fabric • Management • Hyper-V Bare Metal Provisioning • Update Management • Hyper-V, • VMware, Citrix XenServer • Dynamic Optimization • Network Management • Power Management • Storage Management • Monitoring Integration
Services in VMM 2012 and SP1 • Template • Starting point for services and source of truth • Specifies machine and connectivity requirements • Deployed services are always linked to their templates • Enables servicing of the instances • Instance • Groups of machines that work together • Includes machine definitions as well as applications • Native application types: • Web Applications (WebDeploy) (2.0 and 3.0) • Virtual Applications (Server App-V) (RTM and SP1) • Database Applications (SQL DAC) (v1.1 and v3)
Why Use Services? • Manage multi-tier applications across multiple servers as a single unit • Scale out based on demand • Composibility of OS and Applications, allows users to manage fewer OS images
Create Service Template • Template is a starting point • Author the template in the new Service Designer • Defines machines and their connectivity • Tiers, Hardware, Logical Networks, OS, Apps, Load Balancer templates etc. • Deployed services are always linked to their templates • Typically information like hosts or load balancers is not available while creating template
Custom Resources • Used to deliver payload to a virtual machine • Add folder with .cr extension to VMM library • VMM includes custom resources for application frameworks • Web Deploy • Server App-V • Agent • Sequencer
Generic Command Execution • Execute custom scripts within Service instance VMs • Can specify run as account, script restart behavior, logging properties • Script parameters can leverage configurable service settings • Scripts can be marked as idempotent (SP1) • Multiple entry points available • Application level • Pre/post install, pre/post uninstall, pre/post service, save/restore state • Application Profile level • Pre/post install, Pre/post uninstall • Pre/post install supports multiple, ordered scripts (SP1)
SQL Profiles • Used to deploy SQL Server to a virtual machine • SQL 2008 R2 • SQL 2012 (SP1) • Requires a sysprepped SQL instance • Allows for SQL Server specialization during provisioning • Instance Name • Security mode • Protocol enablement • SA account password • Service account identities
Application Hosts • Deploy applications to shared platform • Virtual machine • Standalone physical server • Physical cluster/farm • Application Host Types • SQL Server • Can only contain SQL .dacpac objects and SQL scripts • Web Server (SP1) • Can only contain Web Deploy objects • Target server name can be a configurable service setting • Allows user to specify server at deployment time
Configurable Service Settings • Allows user to enter setting values during deployment • Denoted by @Variable Name@ nomenclature • Service setting properties • Mandatory • Encrypted • Default value • Several pre-defined service settings available such as • @computerName@ - Computer Name • @vmid@ - ID of the VM
Service Designer Designer canvas Properties Ribbon
Service Template and InstancesSingle tier service Service Instance Service Instance Service Template VM Template Machine02 Machine01 Server App-V Package Hardware Configuration WS08 R2 .NET 3.51 OS Deploy WS08 R2 Machine01 VM Template Server App-V Package Application OS Roles/Features .NET 3.51 Hardware Configuration WS08 R2 OS
Service Template Components Settings Service Template Load Balancer Template Computer Tier (1..n) Application Host Profile (1…n) VHDs VM Template Application Profile SQL DAC Deployment Web Deploy Deployment Hardware Profile Guest OS Profile SQL Profile Pre/Post Install GCEs Application Profile Roles and Features SQL Deployment Application Deployment (1..n) Pre/Post Install GCEs Existing objects New Objects Extensibility points
DEMO Create Service Template
Customize Deployment • Prepares the template for deployment • Specify OS settings • Computer name, Admin password etc. • Specify Application Settings • e.g. SQL connection string • Allows usage of same template in different environments • Development, Staging, Production etc.
Deployment Preview Deploy the service Deploy to Cloud Settings to override
Per Application Per Service Per Machine Per Guest OS Select Tier Based on Deployment Order Create New VM from Template Power On and Wait for VM Install VMM guest agent Application Profile Level Pre-Install GCE Application Pre-Install GCE Install Application Built-In Step Application Profile Level Post-Install GCE Application Post-Install GCE Done Add to Load Balancer Generic Command Executes in Guest
Instance Application View Instance Applications Application Settings Service
DEMO Deploy Service Template
In-Guest Agent SP1 Changes • Requires .NET 4.0 • Agent installation will take care of this (can sysprep as well) • For Server Core guests, requires Windows Server 2008 R2 SP1 or above • Deployed via ISO • All service instance VMs have a guest agent installed • Decoupled from VMM server • Supports Service deployment to untrusted domains and workgroups • Supports Service deployment to disconnected VMs
Payload Transfer: SP1 Changes • Payload Transfer • Network (BITS) • ISO (for VMs without network connectivity) • Supported for Hyper-V hosts (excluding Server Core) • Associate VM Networks with VMM Libraries to enable network transfer • Upgrade will do this for existing networks
DEMO Payload Transfer
Update Service Update the machine templates Associated machine templates Instance ready for update 1 Apps or OS updated outside of VMM 4 2 Original Service Template Updated (New Version) Service Template Pending Service Template Updated Service Instance Set the updated template Original Service Instance 5 Deploy update in Maintenance Window 3 Original Service Instance
Update Types • In-Place updates • Changes in template settings are applied without replacing OS image • (e.g.) Change memory, update applications • Image based updates • Replaces old OS image with new OS image • Reinstalls the applications and restores state. e.g. moving from WS08 to WS08 R2
In-Place Updating Per Application Per Service Per Machine Per Guest OS Select Tier Based on Servicing Order Select Machine Based on Upgrade Domain Application Pre-Uninstall GCE Application Pre-install GCE Application Pre-Service GCE Remove from Load Balancer Apply Application Level Changes Uninstall Application Install Application Application Post-Service GCE Application Post-Uninstall GCE Application Post-install GCE Done Add to Load Balancer Built-In Step Generic Command Executes in Guest
Image Based Updating Per Machine Per Guest OS Per Application Per Service Select Tier Based on Servicing Order Select Machine Based on Upgrade Domain Remove from Load Balancer Add Data Disk to Machine Application Level Store State GCE Swap OS Disk Server App-V Backup State Application Profile Level Pre-Install GCE Customize New OS Application Level Pre-Install GCE Install Application Application Level Post-Install GCE Server App-V Restore State Built-In Step Application Profile Level Post-Install GCE Add to Load Balancer Application Level Apply State GCE Done Generic Command Executes in Guest
DEMO Update Service
Service Level Refresher • Service level refresher updates all of the service information • Identifies any virtual machines that have gone missing from the service • Service Refresher supports 2 states • OK - All the VMs are OK • Needs Attention • At least one VM has a problem of some type • VM refresher state indicates the actual problem
Service / Tier / Instance Actions • Service Level Actions • Simple actions at the Service level cascade to the Virtual Machines • Start, Pause, Resume, Stop, Shutdown, Delete • Tier Level Actions • Scale out • New Wizard enables this functionality • VM Level Actions • Migrate VMs • Store Virtual Machines to Library • Deploy Virtual Machines from Library • Clone Virtual Machines • Create Checkpoints • Scale in
DEMO Scale Out Service
Resources Learning TechNet • Connect. Share. Discuss. • Microsoft Certification & Training Resources http://northamerica.msteched.com www.microsoft.com/learning • Resources for IT Professionals • Resources for Developers • http://microsoft.com/technet http://microsoft.com/msdn
Required Slide Complete an evaluation on CommNet and enter to win!
MS Tag Scan the Tag to evaluate this session now on myTechEd Mobile
© 2012 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.