Standardized Services Development Production Assign dedicated and shared resources Delegated Capacity Cloud Abstraction Logical & Standardized Diverse Infrastructure Production Development WDS server 7 WDS role on Windows Server 2008 R2 or R2 SP1 (initial image configuration complete, images needs to be.

Download Report

Transcript Standardized Services Development Production Assign dedicated and shared resources Delegated Capacity Cloud Abstraction Logical & Standardized Diverse Infrastructure Production Development WDS server 7 WDS role on Windows Server 2008 R2 or R2 SP1 (initial image configuration complete, images needs to be.

Standardized
Services
Development
Production
Assign dedicated and shared resources
Delegated
Capacity
Cloud
Abstraction
Logical &
Standardized
Diverse
Infrastructure
Production
Development
WDS server
3
2
7
6
WDS role on Windows Server 2008 R2 or R2 SP1
(initial image
configuration
complete,
images
needs to be added)
WinPE
is published
to theno
WDS
server
“DCMgr”
folderisgets
created
under
D:\RemoteInstall
* Publishing
where
VMM
injects
VMM WinPE
(or where
is configured
to keepimage
images)
agent ever
and WDS
certificate
to the WinPE
5 VMM installs VMM agent to WDS server
DHCP server
User adds the WDS server to the VMM server using
14 Add
VMMResources
requires WAIK,
-> PXEwhich
Servercontains
wizard ‘vanilla’ WinPE image
VMM server
#1 Get tags for matching drivers in the VMM library
# For this example
# Master WIM = c:\Program Files\Windows AIK\Tools\PETools\amd64\winpe.wim
# Driver tag = winpe
$wim = read-host "Master WIM"
$tags = read-host "Driver tag"
#2 Prepare directories
$winpesrcdir = $wim
$workingdir = $workingdir = $env:temp + "\" + [System.Guid]::NewGuid().toString()
$mountdir = $workingdir + "\mount"
$wimfile = $workingdir + "\winpe.wim"
mkdir $workingdir
mkdir $mountdir
#3 Copy default WIM file and mount it using DISM
copy $winpesrcdir $workingdir
dism /mount-wim /wimfile:$wimfile /index:1 /mountdir:$mountdir
…..Continues on the next page
#4 Find the path of each driver that matches the tag and insert it into mounted wim using DISM
$drivers = get-scdriverpackage | where { $_.tags -match $tags }
foreach ($driver in $drivers)
{
$path = $driver.sharepath
dism /image:$mountdir /add-driver /driver:$path
}
#5 Commit the changes
Dism /Unmount-Wim /MountDir:$mountdir /Commit
#6 Republish the wim file to every PXE server managed by VMM
publish-scwindowspe -Path $wimfile
#7 Clean up
del $wimfile
rmdir $mountdir
rmdir $workingdir
DHCP server
Download Boot
VMMfrom
customized
WinPE
PXE
Run GCE (Generic
4
2
Command Execution)
scripts and configure
Host Group
WDS server
partitions
Authorize
3
PXE boot
5
OOB reboot
1
VMM server
Hyper-V server
Hyper-V server
VHD
Drivers
Host profile
Download
Inject drivers
VHD
6
7
Library server
10
Bare-metal
server
Run scripts post
installation
Customize
and domain
join
8
contoso
Host Group
Install VMM
Agent
Enable Hyper-V
9
Hyper-V server
Hyper-V server
Hyper-V
server
Hyper-V server
#1 Get the VMM host profile to be used
$HostProfile = Get-SCVMHostProfile -Name "Host GCE Profile“
#2 Provide the script command settings
$scriptSetting = New-SCScriptCommandSetting -WorkingDirectory "" -PersistStandardOutputPath "" PersistStandardErrorPath "" -MatchStandardOutput "" -MatchStandardError "" -MatchExitCode "" AlwaysReboot $false -MatchRebootExitCode "" -RestartScriptOnExitCodeReboot $false WarnAndContinueOnMatch -commandmayreboot
#3 Add script command to the host profile to delete existing virtual disk and the RAID configuration
Add-SCScriptCommand -VMHostProfile $HostProfile -Executable "x:\dell\toolkit\tools\raidcfg.exe" ScriptCommandSetting $scriptSetting -CommandParameters "-vd -ac=dvd -c=0" -TimeoutSeconds 120
#4 Add script command to the host profile to create RAID 1 configuration with the two existing
drives
Add-SCScriptCommand -VMHostProfile $HostProfile -Executable "x:\dell\toolkit\tools\raidcfg.exe" ScriptCommandSetting $scriptSetting -CommandParameters "-ctrl -ac=cvd -c=0 -ad=0:0:1,0:1:1 -r=1" TimeoutSeconds 12000
#1 Get resource folder location (for raidcfg.exe) in the VMM library
$Resource = Get-SCCustomResource | where { $_.SharePath -eq
"\\FC213.dcmanager.lab\MSSCVMMLibrary\ConfigUtil.cr" }
#2 Get the host profile to be used
$HostProfile = Get-SCVMHostProfile -Name "Host GCE Profile"
#3 Provide the script command settings
$scriptSetting = New-SCScriptCommandSetting -WorkingDirectory "" -PersistStandardOutputPath "" PersistStandardErrorPath "" -MatchStandardOutput "" -MatchStandardError "" -MatchExitCode "" AlwaysReboot $false -MatchRebootExitCode "" -RestartScriptOnExitCodeReboot $false WarnAndContinueOnMatch -CommandMayReboot
#4 Add script command to the host profile to delete existing virtual disk and the RAID configuration
Add-SCScriptCommand -VMHostProfile $HostProfile -Executable "raidcfg.exe" -ScriptCommandSetting
$scriptSetting -CommandParameters "-vd -ac=dvd -c=0" -TimeoutSeconds 120 -LibraryResource $Resource
#5 Add script command to the host profile to create RAID 1 configuration with the two existing
drives
Add-SCScriptCommand -VMHostProfile $HostProfile -Executable "raidcfg.exe" -ScriptCommandSetting
$scriptSetting -CommandParameters "-ctrl -ac=cvd -c=0 -ad=0:0:1,0:1:1 -r=0" -TimeoutSeconds 120 LibraryResource $Resource
#Get the host server and credentials that will run this command
$VMHost = Get-SCVMHost -ComputerName “HVServer1“
$RAA = get-SCRunAsAccount -name DomainCreds
#Example1: Run ‘PROSetCL.exe’ command to team four Intel PRO/1000 NICs on your host
Invoke-SCScriptCommand -VMHost $VMHost -Executable "C:\Program Files\Intel\DMIX\CL\PROSetCL.exe" CommandParameters "team_create 2,3,4,5 TECHREADY14 ALB" -TimeoutSeconds 60
#Example2: Run the netsh command to set the NIC called “Demo” to static IP address 10.10.1.15
with subnet mask 255.255.255.0 default gateway 10.10.1.1
Invoke-SCScriptCommand -VMHost $VMHost -Executable "cmd.exe" -CommandParameters "/K netsh interface
ip set address Demo static 10.10.1.15 255.255.255.0 10.10.1.1" -TimeoutSeconds 60
$Resource
•
•
Assign Storage
Create Cluster
Standardized
Services
Development
Production
Delegated
Capacity
Cloud
Abstraction
Logical &
Standardized
Diverse
Infrastructure
Production
Development
MGT14-LNC
#TEMGT320
Hands-On Labs
DOWNLOAD
System Center
2012 Evaluation
DOWNLOAD
System Center
2012 SP1 CTP
microsoft.com/systemcenter
microsoft.com/systemcenter
http://europe.msteched.com
www.microsoft.com/learning
http://microsoft.com/technet
http://microsoft.com/msdn
http://europe.msteched.com/sessions
LOGICAL NETWORKS
• Classify network for
ADDRESS POOLS
•
VMs to access
• Map to network
topology
• Allocate to hosts
and clouds
•
•
Allocate a static IP
address to VMs from a
preconfigured pool
Create IP pool as a
managed range of IP
address assignments
Create MAC address
pool as a managed
range of MAC address
assignments
LOAD BALANCERS
•
Apply settings for load
balancer capability in service
deployment
•
Control load balancer
through vendor provider
based on PowerShell
•
Create virtual IP templates
consisting of load balancer
configuration settings
Service Placement
FRONTEND
BACKEND
Host1
BACKEND
DB Tier
VMs
BACKEND
Host2
New York
Middle Tier
VMs
FRONTEND
Frontend Tier
VMs
FRONTEND
FRONTEND
BACKEND
Host3
CORP
Host4
CORP
BACKEND
Host5
CORP
BACKEND
Host6
Placement
FRONTEND
BACKEND
Host1
FRONTEND
10.1.1.0/24 VLAN5
12.1.1.0/24 VLAN7
5 VMs
12.1.1.0/24 VLAN7
6 VMs
10.1.1.0/24 VLAN5
5 VMs
6 VMs
Pick VLAN that
has least number
of VMs on it for
load balancing
traffic
BACKEND
New York
Host2
FRONTEND
BACKEND
Host3
CORP
BACKEND
Host5
CORP
BACKEND
Host6
Checks IP pools
associated with
subnet has
available IPs
Place VMs within a
service that
connect to same
logical network on
same subnet to
avoid layer 3
traversal
OS unattend file to configure
static IP allocated from IP Pool
Find v-switch that’s connected to
the required NIC
FRONTEND
v-switch
Host1
Frontend Tier
VMs
BACKEND
Host3
Middle Tier
VMs
v-switch
BACKEND
v-switch
CORP
Host6
DB Tier
VMs
v-switch
New York
FRONTEND
BACKEND
Storage
Storage Management
CAPACITY MANAGEMENT
•
•
Add storage to a host or
cluster through masking
operations, initialization,
partitioning, formatting, and
CSV cluster resource
creation
Add storage capacity during
new cluster creation
END-TO-END MAPPING
•
•
Create associations
between storage and
VM through reconciling
data from Hyper-V and
storage arrays
Identify storage
consumed by VM, host,
and cluster
RAPID PROVISIONING
•
Create new VMs
leveraging the SAN to
copy the VHD
•
Utilize SMI-S copy
services and replication
profiles
•
Deploy to host or
cluster at scale
Discover storage
through SMI-S
provider
Virtual Machine Manager
Host Group
SMI-S
Provider
Create storage
classification pools
and associate with
storage
Allocate storage to
specific host groups
Assign existing
LUNs to hosts and
clusters
Gold
Silver
Create new LUNs
from pool and
assign to hosts and
clusters