Let's build a VMM service template from A to Z in one hour

Download Report

Transcript Let's build a VMM service template from A to Z in one hour

Let's build a VMM service
template from A to Z in one hour
Damien Caro
Technical Evangelist
Microsoft Central & Eastern Europe
[email protected]
What is a service template ?
Why Use Services?
• Manage multi-tier applications across multiple
servers as a single unit
• Scale out based on demand
• Composibility of OS and Applications, reduce the
number of OS images to manage
• Servicing the applications
Create Service Template
• Template is a starting point
Create
Templa
te
Customiz
e
Deployme
nt
Update
Service
• Author the template in the new Service Designer
• Defines machines, components and their
connectivity
Deploy
Service
• Hardware, Operating Systems, Tiers, Applications, Databases
• Logical Networks, Load Balancer templates, etc.
• Deployed services are always linked to their
templates
• SP1 adds the supports for deployments of :
• services to VMs in non-trusted domains or workgroups
• services to VMs not connected to the VMM Management
Server or the VMM Library.
Operating System
• Virtual disk
Create
Templa
te
Update
Service
Deploy
• VHD for Windows 2008 hosts
Service
• VHDX for Windows 2012 hosts (SP1)
• SP1 adds in the library a Small (16 Gb) and Large (60 Gb) blank
.VHDX files
• Operating Systems configuration
• Windows : Roles and Features
• Linux (added with SP1) : Root password, ComputerName,
DNSDomainName, IP Address, TimeZone, Root ssh public key,
runonce commands
Customiz
e
Deployme
nt
Custom Resources
• Used to deliver custom payload to a
virtual machine
• Add folder with .cr extension to VMM library
• Copy your files to the folder
Create
Templa
te
Customiz
e
Deployme
nt
Update
Service
Deploy
Service
• VMM includes custom resources for application
frameworks
• Web Deploy (3.0 with SP1) x86 & x64
• Server App-V SP1
• Agent
• Sequencer
Applications
• SQL Profiles
• Used to deploy SQL Server to a virtual machine
• SQL 2008 R2
• SQL 2012 (SP1)
Create
Templa
te
Customiz
e
Deployme
nt
Update
Service
Deploy
Service
• Requires a sysprepped SQL instance
• WebDeploy applications
• Deploy a web application with the files, components
and IIS Settings
• Differential deployment
• Server App-V
• Deploy a virtualized server application
• Runs in it’s own environement
• Can be easily replaces
Generic Command Execution
• Execute custom scripts within
Service instance VMs
Create
Templa
te
Customiz
e
Deployme
nt
Update
Service
Deploy
Service
• 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)
Configurable Service Settings
• Allows user to enter setting values
during deployment
• Denoted by @Variable Name@ nomenclature
Create
Templa
te
Customiz
e
Deployme
nt
Update
Service
Deploy
Service
• Service setting properties
• Mandatory
• Encrypted
• Default value
• Several pre-defined service settings available such as
• @computerName@ - Computer Name
• @vmid@ - ID of the VM
Спасибо !
• Learn more : www.microsoftvirtualacademy.com
• Try :
• Windows Server 2012
• System Center 2012 SP1
• Windows Azure
Заповни Анкету
Виграй Приз
http://anketa.msswit.in.ua