Sie sind auf Seite 1von 160

Virtualizing your Datacenter

withWindowsServer2012R2&SystemCenter2012R2

HandsOnLab|StepbyStepGuide

FortheVMsthefollowingcredentials:
Username:Contoso\Administrator
Password:Passw0rd!

Labversion:2.0.1
Lastupdated:November6,2013

Important:theseVMswerebuiltusingevaluationsoftware.Toensurethatthelabscontinueto
functionaftertheevaluationperiodhasexpired,hosterswillstarttheVMsfromasavedstateandso
theVMswillnotresynctheirtimeunlesstheyarerebooted.AvoidrebootinganyVMsduringthislab.

PleaseshareanyfeedbackwiththeITCampsPlanningTeam:ITCampPlan@Microsoft.com
Copyright2013byMicrosoftCorporation.Allrightsreserved.

CONTENTS
LAB TIMING ......................................................................................... 4
LAB 1: VIRTUAL MACHINE STORAGE............................................. 5
EXERCISE 1.1: CONFIGURE A STORAGE POOL ............................ 5
EXERCISE 1.2: CONFIGURE A STORAGE SPACE .......................... 8
EXERCISE 1.3: MANAGE A FILE SERVER ...................................... 13
EXERCISE 1.4: MANAGE A STORAGE AREA NETWORK ............. 19
LAB 2: VIRTUAL MACHINE NETWORKING ................................... 23
EXERCISE 2.1: CONFIGURE A HOST NIC TEAM ........................... 23
EXERCISE 2.2: MANAGE HYPER-V HOSTS ................................... 26
EXERCISE 2.3: CREATING A VIRTUAL SWITCH ............................ 30
LAB 3: ADVANCED VIRTUAL MACHINE NETWORKING .............. 33
EXERCISE 3.1: CREATE A LOGICAL NETWORK ........................... 33
EXERCISE 3.2: APPLY A LOGICAL NETWORKS ............................ 37
EXERCISE 3.3: CREATE A PORT PROFILE & CLASSIFICATION.. 40
EXERCISE 3.4: CREATE & APPLY A LOGICAL SWITCH ............... 44
LAB 4: VIRTUAL MACHINE CLUSTERING & RESILIENCY........... 49
EXERCISE 4.1: CREATE SHARED STORAGE OVER SMB ............ 49
EXERCISE 4.2: BUILD A HYPER-V CLUSTER ................................ 51
EXERCISE 4.3: ASSIGN SHARED STORAGE USING ISCSI .......... 57
EXERCISE 4.4: OPTIMIZE A CLUSTER ........................................... 62
EXERCISE 4.5: CONFIGURE CLUSTER PATCHING ...................... 65
LAB 5: VIRTUAL MACHINE CONFIGURATION .............................. 71
EXERCISE 5.1: CREATE A GENERATION 1 VM ............................. 71
EXERCISE 5.2: CREATE A VM WITH POWERSHELL .................... 77
EXERCISE 5.3: CREATE A GENERATION 2 VM ............................. 81
LAB 6: VIRTUAL MACHINE MOBILITY ........................................... 86
EXERCISE 6.1: CONFIGURE HOSTS FOR MIGRATION ................ 86
EXERCISE 6.2: TEST A VM MIGRATION ......................................... 88
EXERCISE 6.3: TEST A STORAGE MIGRATION ............................ 90
EXERCISE 6.4: TEST A SHARED NOTHING LIVE MIGRATION..... 92

LAB 7: VIRTUAL MACHINE REPLICATION & PROTECTION........ 99


EXERCISE 7.1: CONFIGURE A HYPER-V REPLICA ....................... 99
EXERCISE 7.2: CONFIGURE A HYPER-V REPLICA BROKER .... 101
EXERCISE 7.3: REPLICATE A VM ................................................. 104
LAB 8: NETWORK VIRTUALIZATION ........................................... 109
EXERCISE 8.1: CREATE A VM NETWORK ................................... 109
EXERCISE 8.2: ASSIGN A VM NETWORK .................................... 113
LAB 9: VIRTUAL MACHINE TEMPLATES..................................... 116
EXERCISE 9.1: CREATE A VM TEMPLATE ................................... 116
EXERCISE 9.2: REVIEW A SQL SERVER PROFILE ..................... 124
EXERCISE 9.3: REVIEW A WEB APPLICATION PROFILE ........... 130
EXERCISE 9.4: CREATE A VM FROM A TEMPLATE .................... 134
LAB 10: SERVICE TEMPLATES .................................................... 137
EXERCISE 10.1: CREATE A SERVICE TEMPLATE ...................... 137
EXERCISE 10.2: DEPLOY A SERVICE TEMPLATE ...................... 144
LAB 11: PRIVATE CLOUDS & USER ROLES ............................... 146
EXERCISE 11.1: CREATE A USER ROLE ..................................... 146
EXERCISE 11.2: CREATE A PRIVATE CLOUD ............................. 151
EXERCISE 11.3: DELEGATE ACCESS TO A CLOUD ................... 154

Lab Timing
Thefollowingtableshowstheestimatedtimetocompleteeachlabandtask.
Title

EstimatedTime(V2.0)

Lab1:VirtualMachineStorage
Exercise1.1:ConfigureaStoragePool
Exercise1.2:ConfigureaStorageSpace
Exercise1.3:ManageaFileServer
Exercise1.4:ManageaStorageAreaNetwork
Lab2:VirtualMachineNetworking
Exercise2.1:ConfigureaHostNICTeam
Exercise2.2:ManageHyperVHosts
Exercise2.3:CreatingaVirtualSwitch
Lab3:AdvancedVirtualMachineNetworking
Exercise3.1:CreateaLogicalNetwork
Exercise3.2:ApplyaLogicalNetworks
Exercise3.3:CreateaPortProfile&Classification
Exercise3.4:Create&ApplyaLogicalSwitch
Lab4:VirtualMachineClustering&Resiliency
Exercise4.1:CreateSharedStorageoverSMB
Exercise4.2:BuildaHyperVCluster
Exercise4.3:AssignSharedStorageusingiSCSI
Exercise4.4:OptimizeaCluster
Exercise4.5:ConfigureClusterPatching
Lab5:VirtualMachineConfiguration
Exercise5.1:CreateaGeneration1VM
Exercise5.2:CreateaVMwithPowerShell
Exercise5.3:CreateaGeneration2VM
Lab6:VirtualMachineMobility
Exercise6.1:ConfigureHostsforMigration
Exercise6.2:TestaVMMigration
Exercise6.3:TestaStorageMigration
Exercise6.4:TestaSharedNothingLiveMigration
Lab7:VirtualMachineReplication&Protection
Exercise7.1:ConfigureaHyperVReplica
Exercise7.2:ConfigureaHyperVReplicaBroker
Exercise7.3:ReplicateaVM
Lab8:NetworkVirtualization
Exercise8.1:CreateaVMNetwork
Exercise8.2:AssignaVMNetwork
Lab9:VirtualMachineTemplates
Exercise9.1:CreateaVMTemplate
Exercise9.2:ReviewaSQLServerProfile
Exercise9.3:ReviewaWebApplicationProfile
Exercise9.4:CreateaVMfromaTemplate
Lab10:ServiceTemplates
Exercise10.1:CreateaServiceTemplate
Exercise10.2:DeployaServiceTemplate
Lab11:PrivateClouds&UserRoles
Exercise11.1:CreateaUserRole
Exercise11.2:CreateaPrivateCloud
Exercise11.3:DelegateAccesstoaCloud

5
5
10
5

5
5
5

5
5
5
10

5
10
10
5
10

5
5
5

5
5
5
5

5
5
5

10
5

10
5
5
5

10
5

5
5
5

Total

225minutes(3:45hours)

Lab 1: Virtual Machine Storage


EstimatedtimetocompleteLab1:25minutes

Exercise 1.1: Configure a Storage Pool


InthisexerciseWindowsServer2012R2ServerManagerwillbeusedtocreateanewStoragePool.AStoragePool
aggregatesindividualphysicaldisksthathavebeenpresentedtotheoperatingsystem.Thisenablesthecreationof
StorageSpaces,whichisdoneinthenextexercise.

Estimatedtimetocomplete:5minutes

PerformthefollowingonSCVMM01
1. OnSCVMM01,openServerManager.

2. ClickAllServers.
3. RightclickAllServers,andselectAddServers.

4. ClickFindNow,selectFS01,andclicktheaddarrow,andthenclickOK.

5. WhenFS01hasbeenimportedtheIPaddresseswillbedisplayed,andunderManageabilityOnlinewillbe
listed.

6. ClickFileandStorageServices.
7. EnsurethatFS01isselectedinmainwindow,andthenclickStoragePools.

8. Noticethatthereare2pools,PrimordialandPOOL1(TIERED).POOL1(TIERED)hasbeencreatedinadvance.
9. ClickthePrimordialpool,andlookatthefour500GBdisksthatareavailableforuseinthePhysicalDiskspane.
Theprimordialpoolsimplyaggregatesspare,unallocatedphysicaldisks.

10. WithintheStoragePoolspanePrimordialselected,clickTasksandthenNewStoragePool.

11. IntheNewStoragePoolWizard,thenclickNext.
12. IntheNamefield,typePOOL2,andthenclickNext.

13. Selectall4physicaldisksthenmarkthebottomdiskasahotsparebyselectingHotSpareintheAllocation
dropdown,andthenclickNext.

14. ClickCreate.
15. LeavetheCreateavirtualdiskwhenthiswizardclosescheckboxunselected,andthenclickClose.

16. ClickonPOOL1(TIERED),andscrolldownthepagetoviewthePhysicalDisks.
17. ScrolltotherightinthePhysicalDiskspane,toviewtheMediaType.Noticethatthepoolconsistsofamixture
of126GBSSDsand2TBHDDs.

Exercise 1.2: Configure a Storage Space


InthisexerciseaTieredStorageSpacewillbecreated.ATieredStorageSpacewilltakeadvantageofaStoragePool
thatcontainsamixofhighspeedSSDandHDDphysicaldisks.Thewizardwillprovideguidancethroughthecreation,
allocationofcapacity,resiliencyandmore.AftertheStorageSpacesareconfiguredtheycanbestoredata.

Estimatedtimetocomplete:5minutes

PerformthefollowingonSCVMM01
1. OnSCVMM01,OpenServerManager

2. InFileandStorageServices|Volumes|StoragePools,intheVirtualDiskspane,clickTasksandselectNew
VirtualDisk.

3. ClickNext.
4. OntheSelectthestoragepoolpage,selectPOOL1(TIERED),andthenclickNext.
5. OntheSpecifythevirtualdisknamepage,typeTieredSpace1intheNamefield.ChecktheCreatestorage
tiersonthisvirtualdiskcheckbox,andthenclickNext.

6. OntheSelectthestoragelayoutpage,selecteachofthelayoutchoicestoviewthedescription,selectMirror,
andthenclickNext.

7. OntheConfiguretheresiliencysettingspage,selectTwowaymirror,andthenclickNext.

8. OntheSpecifytheprovisioningtypepage,selectthedefaultFixed,thenclickNext.

9. OntheSpecifythesizeofthevirtualdiskpage,selectMaximumSizefortheSSDTierandtheHDDTier,and
thenclickNext.

10. OntheConfirmselectionspage,ensurethatthesettingsmatchthoseintheimagebelow,andthenclickCreate.

11. OntheViewresultspage,ensurethattheCreateavolumewhenthiswizardclosescheckboxisselected,and
thenclickClose.TheNewVolumeWizardstartsautomaticallyandthisisexpected.

12. OntheBeforeyoubeginpage,clickNext.
13. OntheSelectserveranddiskpage,ensurethatFS01isselected,andthenclickNext.

14. OntheSpecifythesizeofthevolumepage,reviewthevolumesizeinformation.ChangetheVolumesize
incrementtoGBandtype4344intheVolumesizefield,andthenclickNext.

15. OntheAssigntoadriveletterorfolderpage,selectVfromtheDriveletterdropdown,andthenclickNext.

10

16. OntheSelectfilesystemsettingspage,typeVMsintheVolumelabelfield,andthenclickNext.

17. OntheConfirmselectionspage,ensurethatthesettingsmatchthoseintheimage.Onceconfirmed,click
Create.

18. OntheCompletionpage,clickClose.

19. InServerManageronthedashboardpane,selectFileandStorageServices|Volumes.
20. IntheVolumespaneunderFS01(3),ensurethatvolumeV:withtheFileSystemLabelVMsispresent.

11

21. InServerManageronthedashboardpane,selectFileandStorageServices|Shares.NoticethatFS01isnot
listed,becausetherearenosharesassociatedwithFS01atthistime.

22. MinimizeServerManager.

12

Exercise 1.3: Manage a File Server


InthisexerciseSystemCenter2012R2VirtualMachineManagerwillbeusedtomanagefileserversandSMBshares
whichcanbeusedtostoreHyperVVMs.FirstthefileserverFS01isaddedundermanagement,thenVMMcan
provisionnewfilebasedstoragefromFS01.AdditionallytheViewScriptbuttonwillbeusedwhichshowsthe
underlyingPowerShellscriptforawizardortemplate.ThismakesiteasiertolearnPowerShell,andthesescriptscan
besavedandupdatedtoenableautomatingrepetitivetasks.Clickonthisbuttonthroughoutdifferentlabstoseethe
outputfromotherwizards.

Estimatedtimetocomplete:10minutes

PerformthefollowingonSCVMM01
1. OpentheVirtualMachineManagerConsole.IftheConnecttoServerwindowappears,ensureUsecurrent
MicrosoftWindowssessionidentityisselected,andclickConnect.

2. SelecttheFabricworkspace.

3. Onthenavigationpane,expandStorageandclickFileServers.

13

4. Ontheribbon,clickAddResources,andthenclickStorageDevices.

5. TheAddStorageDevicesWizardwillopen.
6. OntheSelectProviderTypepage,selectWindowsbasedfileserver,andthenclickNext.

7. OntheSpecifyDiscoveryScopepage,intheProviderIPaddressorFQDNfield,typeFS01.contoso.com,and
leavetheThiscomputerisinanuntrustedActiveDirectorydomainboxunchecked.

14

8. FortheRunAsaccount,clickBrowse.

9. IntheSelectaRunAsAccountwindow,clickCreateRunAsAccount.
10. IntheCreateRunAsAccountwindow,ensurethatValidatedomaincredentialsisselected,typethefollowing,
thenclickOK:

Name:StorageAdmin

UserName:Contoso\Administrator

Password:Passw0rd!

Confirmpassword:Passw0rd!

11. OntheSelectaRunAsAccountwindow,selectStorageAdminandclickOK.

15

12. AfterreturningtotheSpecifyDiscoveryScopepage,clickNext.

13. VMMwillautomaticallyscanFS01andreturntheresultsbelow.OntheGatherInformationpage,reviewthe
results,andthenclickNext.

14. OntheSelectStorageDevicespage,clickNext.

15. OntheSummarypage,ensurethesettingsmatchtheimagebelow,andthenclickFinish.

16. TheJobswindowwillappear.SelectAddsStorageProvider,reviewtheresults,andthenclosetheJobsscreen.
ThereshouldbenoFileShareslisted.

16

17. OntheFabricnavigationpane,selectProviders.

18. SelectFS01.contoso.comand,ontheribbon,clickCreateFileShare.

19. IntheNamefield,typeinVMShare1.

20. NexttotheClassificationdropdown,clickNew.
21. IntheNewClassificationwindow,typeGoldTierintheNamefield,andthenclickAdd.

17

22. IntheLocalpathfield,typeV:\Shares\VMShare1.

23. ClickViewScriptatthebottom.NotepadwillopendisplayingthePowerShellscriptthatwillbeusedtoexecute
theseactions.ThiscanbesavedasaPowerShellscript(.ps1)thatcanbeeditedandreusedtohelpautomate
repetitivetasks.

24. ClickCreate.Ifthejobswindowdoesnotappear,clicktheJobsworkspaceandthenclickeitherRunningor
Historytoseethisnewjobwhichmayalreadyhavefinished.Observethejobthroughtocompletion.
25. ReturntotheFabricworkspace.
26. Repeatsteps1724withthefollowinginformation:

Name:VMShare2

NewClassificationName:SilverTier

LocalPath:V:\Shares\VMShare2

27. MinimizetheVirtualMachineManagerConsole,andmaximizeServerManager.
28. VMShare1andVMShare2shouldnowappearinthelistofsharesonFS01.TheSharespanemayneedtobe
refreshedtoseethenewlycreatedfileshares.MinimizeServerManager.

18

Exercise 1.4: Manage a Storage Area Network


InthisexerciseVMMsstoragemanagementcapabilitieswillbeexploredusinganiSCSISAN.FirstaniSCSISANwillbe
broughtunderVMMsmanagement.NextVMMwillapplyaclassification,thenprovisionanewLUNfromtheiSCSI
SANshowingVMMspowerfulstorageintegrationcapabilitiesforthevirtualizedinfrastructure.

Estimatedtimetocomplete:5minutes

PerformthefollowingonSCVMM01
1. FromtheVirtualMachineManagerConsole,selecttheFabricworkspace.
2. Onthenavigationpane,expandStorageandclickArrays.

3. RightclickArraysandselectAddStorageDevices.

4. OntheSelectProviderTypepage,selectSANandNASdevicesdiscoveredandmanagedbyaSMISprovider,
andclickthenNext.

19

5. OntheSpecifyDiscoveryScopepage,intheProtocoldropdownselectSMISWMI,andintheProviderIP
addressorFQDNfield,typeDC01.contoso.com.

6. NexttotheRunAsAccountfield,clickBrowse.
7. SelectStorageAdmin,andthenclickOK.

8. AfterreturningtotheSpecifyDiscoveryScopepage,clickNext.
9. Discoveryagainstthetargetwillnowtakeplace.OntheGatherInformationpage,selectDC01whendiscovery
hascompleted,andthenclickNext.

10. OntheSelectStorageDevicespage,clickCreateclassification.
11. IntheNamefield,typeBronzeTier,andthenclickAdd.

20

12. BackontheSelectStorageDevicespage,selecttheboxnexttoiSCSITarget:DC01:C:,thenselectBronzeTier
fromtheClassificationdropdown,andthenclickNext.

13. OntheSummarypage,ensurethesettingsmatchthoseinthescreenshotbelow,andthenclickFinish.

14. TheJobswindowwillopen.Reviewthejob,thenclosetheJobswindowwhenithasfinished.
15. Onthenavigationpane,underStorage,selectArrays.

16. Inthedetailpane,selectDC01.

21

17. Ontheribbon,clickCreateLogicalUnit.

18. IntheCreateLogicalUnitwindow,leavethedefaultStoragePool,intheNamefield,typeCSV01,leavethe
default1GBsize,andthenclickOK.

19. Onthenavigationpane,underStorage,selectClassificationsandPools.

20. Inthedetailpane,expandBronzeTier|iSCSITarget:DC01:C:,andobservethenewlycreatedStorageLUNthat
wascreatedontheiSCSISAN.

21. MinimizetheVirtualMachinemanagerconsole.
ENDOFLAB1

22

Lab 2: Virtual Machine Networking


EstimatedtimetocompleteLab2:15minutes

Exercise 2.1: Configure a Host NIC Team


InthisexerciseWindowsServer2012R2ServerManagerwillbeusedtocreateanewNICTeamonthetwoHyperV
hosts.ThistaskwillbeexecutedremotelyfromSCVMM01,againstbothHyperVhostsonthenetwork.VMMcan
alsobeusedtocreateNICTeamsonHyperVhosts,howeverduetolimitationsofthisvirtualizedlabenvironment,it
isnotpossibletocompletethistaskusingVMM.

Estimatedtimetocomplete:5minutes

PerformthefollowingonSCVMM01
1. FromSCVMM01openServerManager.
2. Fromthenavigationpane,selectAllServers.
3. RightclickAllServers,andclickAddServers.
4. IntheAddServerswindow,clickFindNow.
5. SelectHYPERV01andHYPERV02,clicktherightarrow,andthenclickOK.Itwilltakeafewmomentstoadd
HYPERV01andHYPERV02.

23

6. OncethelistofIPaddressesappearsnexttoHYPERV01andHYPERV02,navigatetoServerManager|All
Servers,rightclickHYPERV01andclickConfigureNICTeamingtostarttheNICTeamingworkpane.

7. IntheTeamspane,selectTasks,thenNewTeam.

8. IntheNICTeamingwindow,typeVMTEAM1intheTeamnamefield.
9. IntheMemberadaptersbox,selectVMNIC1andVMNIC2andclickAdditionalpropertiestoexpandthe
window.

24

10. ExpandtheStandbyadapterdropdowntoviewtheoptionsbutleavetheselectionatNone(alladapters
active),andthenclickOK.NotalloftheNICteamingoptionsareavailablebecausetheHyperVHostsare
themselvesvirtualized.Thecreationmaytakeafewmomentstocomplete,andtheremaybeawarningnotice
whiletheNICteamiscreated.OncetheprocessiscompletetheNICteamwillappearonlineandhealthy.

11. IntheTeamspane,selectVMTEAM1.
12. IntheAdaptersandInterfacespane,scrolldownandviewVMNIC1andVMNIC2asmembersofVMTEAM1in
theNetworkAdapterstab.

13. ClosetheNICTeamingwindow.
14. Repeatsteps613forHYPERV02.Thecreationmaytakeafewmomentstocomplete,andtheremaybea
warningnoticewhiletheNICteamiscreated.Thenextexercisecanbestarted.
15. MinimizeServerManager.

25

Exercise 2.2: Manage HyperV Hosts


InthisexercisethetwoHyperVhostswillbebroughtunderthemanagementofVMMthroughthedeploymentofan
agent.

Estimatedtimetocomplete:5minutes

PerformthefollowingonSCVMM01
1. OpentheVirtualMachineManagerConsole.IftheConnecttoServerwindowappear,ensureUsecurrent
MicrosoftWindowssessionidentityisselected,andclickConnect.

2. SelecttheFabricworkspace.

3. ExpandServers,andclickAllHosts.
4. Ontheribbon,clickAddResourcesandselectHyperVHostsandClusters.

26

5. IntheAddResourceWizard,ontheResourceLocationpage,leavethedefaultselectionofWindowsServer
computersinatrustedActiveDirectorydomain,andthenclickNext.

6. OntheCredentialspage,ensurethatUseanexistingRunAsaccountisselected,andthenclickBrowse.

7. IntheSelectaRunAsAccountwindow,clickCreateRunAsAccount.
8. IntheCreateRunAsAccountwindow,ensurethatValidatedomaincredentialsisselected,typethefollowing,
andthenclickOK:

Name:VMMAdmin

UserName:contoso\vmmadmin

Password:Passw0rd!

Confirmpassword:Passw0rd!

9. IntheSelectaRunAsAccountwindow,selectVMMAdmin,andthenclickOK.

27

10. OntheCredentialspage,clickNext.

11. OntheDiscoveryScopepage,ensurethatSpecifyWindowsServercomputersbynamesisselected,andtype
HYPERV01andHYPERV02onseparatelines,intheComputernamesbox.EnsurethattheSkipADverification
boxisnotselected,andthenclickNext.

12. ThewizardwillscanforHYPERV01andHYPERV02.Ifanerrorpopsup,clickOKtoignoreit,andthenclick
Refresh.
13. OntheTargetresourcespage,selectHYPERV01andHYPERV02,andthenclickNext.

28

14. OntheHostSettingspage,acceptthedefaults,andthenclickNext.

15. OntheSummarypage,ensurethesettingsmatchthoseofthescreenshotbelow,andthenclickFinish.

16. TheJobswindowwillautomaticallyopenandtheAddvirtualmachinehostprocesswillbegin.Thiswilltake
severalmomentstocomplete.Awarningwillappearaboutarestart,butthiscanbesafelyignored.Donot
restarttheVMs.ClosetheJobswindow.

29

Exercise 2.3: Creating a Virtual Switch


InthisexerciseVMMwillbeusedtocreateaHyperVExtensiblevSwitch,andthisvirtualswitchwillbeboundtothe
NICteamthatwascreatedearlier.ThiswillconvertthatNICteamintoavSwitch,whichwilllaterallowVMsto
communicatethroughthephysicalhosttoothernetworks.

Estimatedtimetocomplete:5minutes

PerformthefollowingonSCVMM01
1. OpentheVirtualMachineManagerConsole.IftheConnecttoServerwindowappear,ensureUsecurrent
MicrosoftWindowssessionidentityisselected,andclickConnect.
2. SelecttheFabricworkspace.
3. ExpandServers,andclickAllHosts.
4. Inthemaindetailpane,rightclickHYPERV01,andselectProperties.

5. OntheGeneraltab,reviewthedetailsaboutthisHyperVhost.NotethattheOperatingSystemisMicrosoft
HyperVServer2012R2,afreeSKUforHyperVhosts.

30

6. ClickHardware,andreviewthehardwareonthisparticularHyperVhost.Notethatthishosthasanumberof
networkadapters.
7. WithintheHardwaretab,scrolldowntoAdvanced,andclickBMCSettings.ReviewtheBMCoptionsavailable
forOutofbandManagement.

8. ClicktheVirtualSwitchestab,clickNewVirtualSwitch,andselectNewStandardSwitch.Notetheoptionto
selectaregularHyperVvSwitch,oraVMMspecificLogicalSwitch.LogicalSwitcheswillbecoveredinlaterlabs.

9. IntheNamefield,typevSwitch1.

Note:ItisimportanttomatchthecaseforthisvSwitch,sotypethenameexactly.

10. SelecttheExternalradiobutton,and,fromtheNetworkadapterdropdown,selectVMTEAM1Microsoft
NetworkAdapterMultiplexorDriver.ThiswillbindthevSwitchtothisphysicaladapter.ClickOK.

31

11. Inwarningdialog,clickOKtodismissthewarning.
12. ClicktheJobsworkspace,andobservetherunningChangepropertiesofvirtualmachinehostjobandwaituntil
ittocompletion.
13. ReturntotheFabricworkspace.
14. Repeatsteps4to14forHyperV02withthesameswitchname(vSwitch1)andnetworkadapter(VMTEAM1)

ENDOFLAB2

32

Lab 3: Advanced Virtual Machine Networking


EstimatedtimetocompleteLab3:25minutes

Exercise 3.1: Create a Logical Network


InthisexerciseSystemCenter2012R2VirtualMachineManagerwillcreateaLogicalNetworkwhichrepresentsa
specificnetworkinthislabenvironment.Alogicalnetwork,togetherwithoneormoreassociatednetworksites,isa
userdefinednamedgroupingofIPsubnets,VLANs,orIPsubnet/VLANpairsthatareusedtoorganizeandsimplify
networkassignments.SomepossibleexamplesincludeBACKEND,FRONTEND,LAB,MANAGEMENT,
LIVEMIGRATIONandBACKUP.Sincelogicalnetworksrepresentanabstractionoftheunderlyingphysicalnetwork
infrastructure,theyenableadministratorstomodelthenetworkbasedonbusinessneedsandconnectivity
properties.

Estimatedtimetocomplete:5minutes

PerformthefollowingonSCVMM01
1. OpentheVirtualMachineManagerConsole.IftheConnecttoServerwindowappear,ensureUsecurrent
MicrosoftWindowssessionidentityisselected,andclickConnect.
2. SelecttheFabricworkspace.
3. Onthenavigationpane,expandNetworking,andclickLogicalNetworks.

4. Intheupperlefthandcorneroftheribbonnavigation,clickCreate|CreateLogicalNetwork.

5. IntheCreateLogicalNetworkWizardwindow,intheNamepage,typeContosoLANintheNamefield.

33

6. EnsurethattheOneconnectednetworkradiobuttonisselected,checktheboxesforAllownewVMnetworks
createdonthislogicalnetworktousenetworkvirtualizationandCreateaVMnetworkwiththesamenameto
allowvirtualmachinestoaccessthislogicalnetworkdirectly,andthenclickNext.

7. OntheNetworkSitepage,underNetworksitesclickAdd.
8. ContosoLAN_0populatesinthepane.UnderHostgroupsthatcanusethisnetworksiteselectAllHosts.
9. UnderAssociatedVLANsandIPsubnetsclickInsertrow,typethefollowingsettings,andthenclickNext:

VLAN:0

IPsubnet:192.168.1.0/24

10. OntheSummarypage,reviewthesettings,andthenclickFinish.

11. ReviewthecompletedjobsintheJobswindow,andthenclosethewindow.

34

12. IntheLogicalNetworksandIPPoolspane,rightclickContosoLAN,andclickCreateIPPool.

13. IntheCreateStaticIPAddressPoolWizard,ontheNamepage,typeContosoLANIPPoolintheNamefield,
ensurethattheLogicalNetworkselectedisContosoLAN,andthenclickNext.

14. OntheNetworkSitepage,ensurethattheUseanexistingnetworksiteradiobuttonisselected,andthenclick
Next.

15. OntheIPaddressrangepage,changetheStartingIPaddressto192.168.1.10andtheEndingIPaddressto
192.168.1.100,andthenclickNext.

16. OntheGatewaypage,clickInsert,enter192.168.1.254,andthenclickNext.

35

17. OntheDNSpage,nexttoDNSserveraddressesintheorderofuse,clickInsert,andtype192.168.1.1asthe
DNSServeraddress.NexttoDNSsearchsuffixestoappend(inorder),clickInsert,andtypecontoso.com,and
thenclickNext.

18. OntheWINSpage,leavetheentryblank,andclickNext.

19. OntheSummarypage,ensurethesettingsmatchthescreenshotbelow,andthenclickFinish.

20. ReviewthecompletedjobsontheJobsscreen,andthenclosethewindow.

36

Exercise 3.2: Apply a Logical Networks


InthisexercisetheLogicalNetworkwhichwascreatedearlier,alongwithotherprecreatedLogicalNetworks,willbe
applied.VMMwillnotapplynewIPaddressestotheNICsthatarebeingattachedtotheLogicalNetworks,butitwill
helpVMMtomaptheexistingIPassignmentstotheLogicalNetworks.ThispreventsthoseIPaddressesfrombeing
deployedtootherhostsinordertoavoidnetworkconflicts.

Estimatedtimetocomplete:5minutes

PerformthefollowingonSCVMM01
1. OpentheVirtualMachineManagerConsole.IftheConnecttoServerwindowappear,ensureUsecurrent
MicrosoftWindowssessionidentityisselected,andclickConnect.
2. SelecttheFabricworkspace.
3. ExpandServers,andclickAllHosts.
4. Inthemaindetailpane,rightclickHYPERV01,andselectProperties.

37

5. ClicktheHardwaretab,scrolldowntotheNIClabeledVMTEAM1,andselectLogicalNetwork.

6. Intheresultspane,clicktheboxforContosoLAN.

7. ScrolltotheNIClabeledLiveMigration,selecttheLogicalnetworkconnectivitytab,thenselecttheboxforLive
Migration.

38

8. ScrolltotheNIClabeledHeartbeat,selecttheLogicalnetworkconnectivitytab,thenclicktheboxfor
Heartbeat.

9. ScrolltotheNIClabeledStorage1,selecttheLogicalnetworkconnectivitytab,thenclicktheboxforStorage1.

10. ScrolltotheNIClabeledStorage2,selecttheLogicalnetworkconnectivitytab,thenclicktheboxforStorage2.

11. ClickOKinHYPERV01Properties.
12. Repeatsteps4to10withHyperV02.

39

Exercise 3.3: Create a Port Profile & Classification


InthisexerciseHyperVPortProfilesandPortClassificationswillbecreated.Thefirstportprofilewillenablephysical
networkadaptorsettingstobedefined,andthesecondwillenablespecifictypesofvirtualnetworkadaptorstobe
defined.Theseportprofilesaresimilartotemplates,andaftertheyareconfiguredandappliedtoaparticularNIC,
theyautomaticallyconfigurethatNICwiththoseportprofilesettings.Aportclassificationprovidesanameand
abstractionforaparticulartypeofnetworkadaptor.Thisbecomesmorepowerfulwhencombinedwithaparticular
portprofileduringaLogicalSwitchdeployment,whichisdoneinthenextexercise.

Estimatedtimetocomplete:5minutes

PerformthefollowingonSCVMM01
1. OpenSCVMM01thenopentheVirtualMachineManagerConsole.IftheConnecttoServerwindowappear,
ensureUsecurrentMicrosoftWindowssessionidentityisselected,andclickConnect.
2. SelecttheFabricworkspace.
3. Onthenavigationpane,expandNetworking,andclickPortProfiles.
4. RightclickPortProfiles,andselectCreateHyperVPortProfile.

5. IntheCreateHyperVPortProfileWizard,ontheGeneralpage,typeContosoUplinkintheNamefield.
6. SelecttheUplinkportprofileradiobutton,selectAddressHashfromtheLoadbalancingalgorithmdropdown,
andthenclickNext.

40

7. OntheNetworkconfigurationpage,underNetworksites,selectContosoLAN_0,clicktheboxforEnable
HyperVNetworkVirtualization,andthenclickNext.

8. OntheSummarypage,ensurethesettingsmatchthescreenshotbelow,andthenclickFinish.

9. ReviewthecompletedjobsontheJobsscreen,andthenclosethewindow.
10. Onthenavigationpane,rightclickPortProfilesandselectCreateHyperVPortProfile.
11. OntheGeneralpage,typeContosovNICintheNamefield,ensurethattheVirtualnetworkadapterport
profileradiobuttonisselected,andthenclickNext.

12. OntheOffloadSettingspage,reviewthechoicesthatcanbeenabledforthisparticularvNICportprofile,but
leavethemallunselected,andthenclickNext.

41

13. OntheSecuritySettingspage,selectEnableDHCPguard,Allowrouterguard,andAllowguestspecifiedIP
addresses,andthenclickNext.

14. OntheBandwidthSettingspage,changetheMaximumbandwidth(Mbps)to100,andthenclickNext.

15. OntheSummarypage,ensurethesettingsmatchthescreenshotbelow,andthenclickFinish.

16. ReviewthecompletedjobsontheJobsscreen,andthenclosethewindow.
17. SelecttheFabricworkspace.

42

18. Onthenavigationpane,expandNetworking,rightclickPortClassificationsandselectCreatePort
Classification.

19. IntheCreatePortClassificationWizard,typeContosoStandardPortintheNamefield,andthenclickOK.

43

Exercise 3.4: Create & Apply a Logical Switch


InthisexercisetheLogicalNetworks,PortProfiles,andPortClassificationswillbeusedinordertoprovideamore
standardized,controlled,andgranularvSwitchthatcanbedeployedacrossmultiplehosts,knownasaLogicalSwitch.
Thelogicalswitchalsohascompliancecapabilities,suchasdetectingunplannedswitchconfigurationchanges,and
offeringremediationcapabilitiestoreturnittoitsdesiredconfiguration.Firstalogicalswitchiscreated,thenitis
deployedonasparenetworkadaptoroneachoftheHyperVhosts.Thiswillreconfigurethatparticularphysical
adaptorintoavSwitch,usingthesettingsdefinedbythatLogicalSwitch.Inthislabthelogicalswitchisappliedtoa
singleNIC,howeverVMMcouldalsodeployitacrossmultipleNICsonahostwhileautomaticallyconfiguringteaming.

Estimatedtimetocomplete:10minutes

PerformthefollowingonSCVMM01
1. OpentheVirtualMachineManagerConsole.IftheConnecttoServerwindowappear,ensureUsecurrent
MicrosoftWindowssessionidentityisselected,andclickConnect.
2. SelecttheFabricworkspace.
3. Onthenavigationpane,expandNetworking,rightclickLogicalSwitches,andclickCreateLogicalSwitch.

4. OntheGettingStartedpage,readtheinformation,andthenclickNext.

44

5. OntheGeneralpage,typeContosoLSintheNamefield,andthenclickNext.

6. OntheExtensionspage,reviewthecurrentlyinstalledExtensions,notethatoneofthemisalreadyenabled,and
thenclickNext.

7. OntheUplinkpage,ensurethatintheUplinkmodedropdownNoUplinkTeamisselected,andclickAdd.
8. TheAddUplinkPortProfilewindowopens.EnsurethattheContosoUplinkisselected.Thisalreadyhasthe
informationabouttheNetworksitesitwillsupport,andthatNetworkvirtualizationsupportisenabled.Click
OK.
9. AfterreturningtotheUplinkpage,reviewtheselection,andthenclickNext.

10. OntheVirtualPortpage,itispossibletospecifywhichvNICconfigurationscanbeusedwiththisparticular
logicalswitch.ClickAdd.
11. TheAddVirtualPortwindowwillopen.NexttoPortClassification,clickBrowse.
12. OntheSelectaPortProfileClassificationwindow,selectContosoStandardPort,andthenclickOK.

45

13. BackintheAddVirtualPortwindow,atthebottom,selecttheIncludeavirtualnetworkadapterportprofilein
thisvirtualportbox,andselectContosovNICfromthedropdownlist,andthenclickOK.

14. AfterreturningtotheCreateLogicalSwitchWizardpage,selecttheContosoStandardPort,clickSetDefault,
andthenclickNext.

15. Repeatsteps10to13withthefollowinginformation:
a. Classification:BandwidthLow|Includeavirtualnetworkadapterportprofile:BandwidthLow
b. Classification:BandwidthMedium|Includeavirtualnetworkadapterportprofile:Bandwidth
Medium
c. Classification:BandwidthHigh|Includeavirtualnetworkadapterportprofile:BandwidthHigh
16. BackontheCreateLogicalSwitchWizardpage,ensurethesettingsmatchthosebelow,andthenclickNext.

46

17. OntheSummaryscreen,ensurethesettingsmatchthescreenshotbelow,andclickFinish.

18. ReviewthecompletedjobsontheJobsscreen,andthenclosethewindow.
19. ReturntotheFabricworkspace,expandServers,andclickAllHosts.
20. Inthemaindetailpane,rightclickHYPERV01,andselectProperties.
21. ClicktheVirtualSwitchestab.
22. ClickNewVirtualSwitchandselectNewLogicalSwitch.NotethattheContosoLSisautomaticallyselectedas
thelogicalswitch.

23. UnderPhysicalAdapters,selectVMNIC3.NotethattheContosoUplinkisautomaticallyselectedastheUplink
PortProfile.

47

24. ClickOK.
25. AtthepromptclickOK.
26. Repeatsteps19to25forHYPERV02.

ENDOFLAB3

48

Lab 4: Virtual Machine Clustering & Resiliency


EstimatedtimetocompleteLab4:40minutes

Exercise 4.1: Create Shared Storage over SMB


InthisexerciseSystemCenter2012R2VirtualMachineManagerwillusetheFileServerstoragetoassignfileshares
toHyperVhosts.ThehostscanstorethevirtualmachineonthissharedstorageusingtheSMBfilesharingprotocol.

Estimatedtimetocomplete:5minutes

PerformthefollowingonSCVMM01
1. OpentheVirtualMachineManagerConsole.IftheConecttoServerwindowappear,ensureUsecurrent
MicrosoftWindowssessionidentityisselected,andclickConnect.
2. SelecttheFabricworkspace.
3. ExpandServers,andclickAllHosts.
4. Inthemaindetailpane,rightclickHYPERV01andselectProperties.
5. ClicktheStoragetab.
6. ClickAdd,andselectAddFileShare.

7. FromtheFilesharepathdropdown,select\\FS01.contoso.com\VMShare1.
8. ClickAdd,andselectAddFileShare.
9. FromtheFilesharepathdropdown,select\\FS01.contoso.com\VMShare2.

49


10. ClickOK.
11. Repeatsteps4to10forHYPERV02.

50

Exercise 4.2: Build a HyperV Cluster


InthisexerciseVMMwillcreateaWindowsServer2012R2FailoverClusterusingtheHyperVhosts.AnyVMsthat
aredeployedontheclusterwillbemadehighlyavailable,soafterahostfailuretheVMswouldautomaticallyrestart
onanothernodeinthatcluster,providingresiliencytobothplannedandunplanneddowntime.

Estimatedtimetocomplete:10minutes

PerformthefollowingonSCVMM01
1. OpentheVirtualMachineManagerConsole.IftheConnecttoServerwindowappear,ensureUsecurrent
MicrosoftWindowssessionidentityisselected,andclickConnect.
2. SelecttheFabricworkspace.
3. SelecttheHometababovetheribbon.
4. ClickCreate,andselectHyperVCluster.

5. IntheCreateClusterWizard,ontheGeneralpage,typeCLUSTER1intheNamefield.

51


6. NexttoUseanexistingRunAsaccount,clickBrowse,selectVMMAdmin,andthenclickOK.ClickNext.

7. OntheNodespage,multiselectHYPERV01andHYPERV02,clickAdd,andthenclickNext.

8. OntheIPAddresspage,checktheboxnextto192.168.1.0/24,selectContosoLANIPPoolfromtheStaticIP
Pooldropdown.VMMwillautomaticallyallocateanIPaddresstotheClusterfromthatpoolofIPAddresses.
ClickNext.

9. OntheStoragepage,clickNext.ASANdoesnotneedtobeselectedasthisclusterwillusethestorageonthe
FileServer.
10. OntheNetworkspage,clickNext.TheVirtualSwitchesandLogicalSwitchesforthesehostswerealready
created.

52

11. OntheSummarypage,ensurethesettingsmatchbelow,andthenclickFinish.

12. ObservetherunningjobintheJobswindow.MaximizetheJobswindow.Intheresultspaneatthebottom,
selecttheValidateClusterjob,andclicktheDetailstab.Observethejobthroughtocompletion.

13. Thiswilltakeafewminutestocomplete.Oncecomplete,inthejobswindow,clicktheSummarytab.Observe
thereisawarningwiththeconfiguration.Closethejobswindow.
14. IntheFabricworkspace,expandAllHosts,rightclickCLUSTER1,andselectProperties.

53

15. OntheGeneraltab,type0intheClusterreserve(nodes)field.

16. ClicktheStatustaband,inthedetailpane,clickthelinkfortheclustervalidationreport.
17. ThevalidationreportopensinIE.Maximizethewindow.

18. NoticethereisawarningforNetworkandStorage.Awarningmeansthattheclusterissupportedandwill
functioncorrectly,howeverabestpracticeisnotbeingfollowed.

54

19. ClickNetwork,thenclickValidateIPConfiguration.
20. ScrolldownuntiltheyellowwarningsabouttheAPIPAaddressaredisplayedandreviewtheinformation.

21. PresstheBackArrowtwicetoreturntothetopofthereport.
22. ClickStorage.
23. SelectValidateDiskAccessLatency.Notethatnodiskswerefound.Thiswarningoccursbecausethereisno
SANstorageattachedtothecluster.TheclusterusestheSMB3.0FileSharescreatedearlierforsharedstorage
becausetheseprovidesharedaccessandareoftencheaperandeasiertoconfigure.

24. CloseInternetExplorerwindow.
25. FromtheCLUSTER1.contoso.comPropertiesclicktheFileShareStoragetab.

55

26. Inthedetailpane,clickAdd.FromtheFilesharepathdropdown,select\\FS01.contoso.com\VMShare1,and
thenclickOK.

27. Inthedetailpane,clickAdd.FromtheFilesharepathdropdown,select\\FS01.contoso.com\VMShare2,and
thenclickOK.

28. ClicktheVirtualSwitchestab.Notethatthestandardandlogicalswitchesthatwerecreatedearlierare
attachedtothisnode.

29. ClickOKtoclosetheCLUSTER1Properties.

56

Exercise 4.3: Assign Shared Storage using iSCSI


InthisexerciseVMMassignsaniSCSILUNthatwascreatedearliertotheclusternodestoprovidesharedstorage.
VMMmanagestheiSCSIconnectivitybetweenthehostsandtheiSCSISANthroughmultiplesessions,aswellas
configuringtheLUNcorrectly.ThefilesofaclusteredVMwouldbehostedonthisSANandaccessiblebybothnode.

Estimatedtimetocomplete:10minutes

PerformthefollowingonSCVMM01
1. OpentheVirtualMachineManagerConsole.IftheConnecttoServerwindowappear,ensureUsecurrent
MicrosoftWindowssessionidentityisselected,andclickConnect.
2. SelecttheFabricworkspace.
3. IntheStoragenode,selectClassificationandPools.

4. Fromthecentralpane,expandBronzeTier,thenexpandiSCSITarget:DC01:C:,thenselectCSV01.
5. Ontheupperribbon,selectAllocateCapacity.

6. IntheAllocateStorageCapacitywindow,clickAllocateStoragePools.

57

7. IntheAllocateStoragePoolswindow,underAvailablestoragepools,selectiSCSITarget:DC01:C:,clickAdd,
andthenclickOK.

8. IntheAllocateStorageCapacitywindow,clickAllocateLogicalUnits.

9. IntheAllocateLogicalUnitswindow,underAvailableLogicalunits,selectCSV01,thenclickAdd,andthenclick
OK.

58

10. InAllocateStorageCapacitywindow,clickClose.

11. IntheFabricworkspace,expandServers,andthenclickAllHosts.

12. RightclickHYPERV01,andclickProperties.
13. ClicktheStoragetab,clickAdd,andthenselectAddiSCSIArray.

59

14. IntheCreateNewiSCSISessionwindow,selectDC01fromtheArraydropdown,andthenclickCreate.
15. IntheHyperV01Propertieswindow,clickOK.

16. Repeatsteps12to15forHyperV02.
17. UnderAllHosts,rightclickCLUSTER1,andselectProperties.

18. ClicktheSharedVolumestab,andthenclickAdd.

60

19. IntheAddClusterSharedVolumewindow,selectCSV01.IntheVolumeLabelfield,typeCSV01,clicktheboxes
forQuickFormatandForceFormat,andthenclickOK.

20. IntheCLUSTER1.contoso.comPropertieswindow,clickOK.VMMwillthenassigntheLUNtobothnodesinthe
cluster,formatthevolume,convertittoaClusterSharedVolume,andmakeitavailableforplacementofvirtual
machines.

61

Exercise 4.4: Optimize a Cluster


InthisexerciseVMMwillbeusedtomakeanumberofconfigurationchangestothecluster.Theseincludeoptimizing
thehostsforVMloadbalancingandpowerusage.ThishelpstoensurethattheVMswillusethehostresources
efficiently.

Estimatedtimetocomplete:5minutes

PerformthefollowingonSCVMM01
1. OpentheVirtualMachineManagerConsole.IftheConnecttoServerwindowappear,ensureUsecurrent
MicrosoftWindowssessionidentityisselected,andclickConnect.
2. SelecttheFabricworkspace.
3. ExpandServers,rightclickAllHosts,andselectProperties.

4. IntheAllHostsPropertieswindow,clicktheHostReservestab.

62

5. OntheHostReservestab,ensurethattheUsethehostreservesettingsfromtheparenthostgroupboxis
unchecked,andchangetheMemorysettingsforUnitto%andforAmountto5.SincetheHyperVhostsinthis
labenvironmentonlyhave2GBRAM,theMemorysettingneedstobesetlowertoensurethataVMcanbe
deployed.

6. ClicktheDynamicOptimizationtab.

7. OntheDynamicOptimizationtab,slidetheAggressivenessslidertoHigh.Aggressivenessaffectshowevenly
distributedtheVMsareacrossthedifferenthosts.AnaggressivelybalancedclusterwilllivemigrateVMsmore
frequentlytoensurethatasimilaramountofhostresourcesareusedoneachclusternode.
8. SelecttheboxforAutomaticallymigratevirtualmachinestobalanceloadatthisfrequency(minutes)andtype
5inthebox.

9. SelecttheEnablepoweroptimizationbox,andthenclickSettings.

63

10. Reviewthedefaultthresholdvalues.UnderScheduleclickoneofthebluesquaresbetween8amand6pmand
MondaytoFriday.Thesquarewillturnwhitewhenclicked,toindicatenopoweroptimizationwilloperate
duringthosetimes.Bypressingthekeyboardarrowkeysandthespacebar,thesquarescanbechanged.
Changeafewofthesesquares,andthenclickOK.

11. BackontheAllHostsPropertieswindow,clickOKtoclosethewindow.

64

Exercise 4.5: Configure Cluster Patching


InthisexerciseVMMwillbeusedtoreviewpatchingcompliancefortheclusternodes.AfterVMMisintegratedwith
WSUSabaselinewillbecreatedwhichdefineswhichpatchesareneededforthedifferenthosts.Nextthehostswill
bescannedandcompliancewillbereported.VMMsintegratedpatchingcanalsobeusedtosecureothertypesof
infrastructureserversthatVMMcanmanage.

Estimatedtimetocomplete:10minutes

PerformthefollowingonSCVMM01
1. OpentheVirtualMachineManagerConsole.IftheConnecttoServerwindowappear,ensureUsecurrent
MicrosoftWindowssessionidentityisselected,andclickConnect.
2. SelecttheFabricworkspace.
3. Inthenavigationpane,expandInfrastructure,andselectUpdateServer.

4. RightclickUpdateServer,andclickAddUpdateServer.

65

5. IntheAddWindowsServerUpdateServicesServerwindow,enterthefollowinginformation:

Computername:SCVMM01.contoso.com

TCP/IPPort:8530

6. NexttoUseanExistingRunAsAccount,clickBrowse.
7. IntheSelectaRunAsAccountwindow,clickCreateRunAsAccount.
8. IntheCreateRunAsAccountwindow,enterthefollowingdetails,andthenclickOK:

Name:WSUSAdmin

Username:contoso\administrator

Password:Passw0rd!

9. IntheSelectaRunAsAccountwindow,ensurethatWSUSAdminisselected,andthenclickOK.
10. EnsurethattheUseSecureSocketsLayer(SSL)tocommunicatewithWSUSserverandclientsboxis
unchecked,andthenclickAdd.

66

11. TheJobswindowwillopen.Reviewthedetailsthenmoveontothenextstep.Thejobwilltakeafewmoments
becauseVMMwilltriggeraWSUSsynchronization.

Note:Thesynchronizationmayfailandthisisexpected.ThisisbecausetheWSUSserverinthislabmay
nothaveaconnectiontoanupstreamsource,suchasWindowsUpdate.

12. MinimizetheJobswindow.
13. SelecttheLibraryworkspace.

14. ExpandUpdateCatalogandBaselines,rightclickUpdateBaselines,andthenclickCreateBaseline.

15. IntheUpdateBaselineWizard,ontheGeneralpage,typeHYPERVintheNamefield,andthenclickNext.

16. OntheUpdatespage,clickAdd.

67

17. MultiselectbothupdatesbeginningwithUpdateforWindowsServer2012R2,andthenclickAdd.

18. OntheUpdatespage,clickNext.

19. OntheAssignmentScopepage,clicktheboxnexttoCLUSTER1.contoso.com,andthenclickNext.

20. OntheSummarypage,ensurethesettingsmatchthoseintheimagebelow,andthenclickFinish.

21. TheJobswindowopens.Observethecompletedjob,andthenclosetheJobswindow.
22. SelecttheFabricworkspace.
23. UnderServers|AllHosts,selectCLUSTER1.
24. Ontheribbon,clickCompliance.

68

25. Inthedetailpane,expandCLUSTER1,thenexpandbothHYPERV01andHYPERV02,andthenselect
CLUSTER1.contoso.com.

26. Ontheribbon,clickScan.Thisprocessscanstheclusternodesandcomparethemwiththebaselinethatwas
createdearlier.Thisprocesswilltakeafewmoments.

Whenthescancompletes,thereportindicatesthatbothHyperVhostshavethenecessaryupdatestobein
compliance.Ifoneoftheclusternodeswasmissinganupdate,VMMwouldhaveperformedthefollowing
steps.
A. Placeahostintomaintenancemode
B. Livemigratevirtualmachinesoffthehost
C. Updatethehost
D. Restartthehost(ifnecessary)
E. Checkthatthepatchinstalledsuccessfullyandthenoderejoinedthecluster
F. Removethehostfrommaintenancemode
G. Livemigratethevirtualmachinesbacktothehost(optional)
H. RepeatstepsAHontheothernodesinthecluster
27. WithintheHostspane,rightclickCLUSTER1.contoso.com,andselectComplianceProperties.

69

28. TheCompliancePropertiestoolallowsexemptionstobemadeforselectupdatesonspecificHyperVhost
computers.UnderHYPERV01.contoso.com,selectthetopmostupdate,andthenclickCreate.

29. IntheCreateExemptionwindow,enterNotApplicable,andthenclickCreate.Inaproductionenvironmentitis
importanttoalwaysapplythelatestupdates.

30. TheStateoftheupdatehasbeenchangedtoExempt.ClickOK.

ENDOFLAB4

70

Lab 5: Virtual Machine Configuration


EstimatedtimetocompleteLab5:15minutes

Exercise 5.1: Create a Generation 1 VM


InthisexerciseSystemCenter2012R2VirtualMachineManagerwillbeusedtocreateanddeployavirtualmachine.
DuringthisprocessdifferenthardwarecharacteristicsoftheVMswillbereviewed,includingDynamicMemory,
networksettings,andAvailabilitySets.AdditionallyVMMwillbeusedtogeneratereusablePowerShellscriptswhich
canbeusedtoacceleratefutureVMdeployment.

Estimatedtimetocomplete:5minutes

PerformthefollowingonSCVMM01
1. OpentheVirtualMachineManagerConsole.IftheConnecttoServerwindowappear,ensureUsecurrent
MicrosoftWindowssessionidentityisselected,andclickConnect.
2. SelecttheVMsandServicesworkspace.

3. Ontheribbon,clickCreateVirtualMachine,andthenselectCreateVirtualMachine.

71

4. OntheSelectSourcepage,selectCreatethenewvirtualmachinewithablankvirtualharddisk,andthenclick
Next.

5. OntheIdentitypage,typeVM01intheVirtualmachinenamefield,selectGeneration1fromtheGeneration
dropdown,andthenclickNext.

6. OntheConfigureHardwarepage,scrolldowntoreviewtheconfigurationoptions,includingProcessor,SCSI
Adapter0,CPUPriority,VirtualNUMAandMemoryWeight.
7. SelectMemoryunderGeneralinthenavigationtree,inthedetailspane,thenintheselecttheDynamicradio
button.Enter128intheStartupmemoryfield,type64intheMinimummemoryfield,andtype192inthe
Maximummemoryfield.

72

8. OntheConfigureHardwarepage,selectVM01_disk_1underBusConfiguration|IDEDevicesinthenavigation
tree.ChangetheSize(GB)valueto5GB.Leaveallotherdefaultsettings.

9. OntheConfigureHardwarepage,scrolldowninthenavigationpaneandselectNetworkAdapter1under
NetworkAdapters.
10. Intheresultspane,underConnectivity,selecttheConnecttoaVMnetworkradiobutton,andclickBrowse.

11. IntheSelectaVMNetworkwindow,selectContosoLAN,andthenclickOK.

12. IntheNetworkAdapter1detailspane,underPortProfile,selectContosoStandardPortfromtheClassification
dropdown.

13. OntheConfigureHardwarepage,selectAvailabilityunderAdvancedinthenavigationpane.

73

14. IntheAvailabilitydetailpane,clicktheMakethisvirtualmachinehighlyavailablecheckbox.

15. IntheAvailabilitydetailpane,clickManageavailabilitysets.AnAvailabilitySetisagroupofVMsthat
distributethemselvesacrossdifferenthostsasevenlyaspossible.Thistypeofantiaffinitycanbeusedtokeep
VMswithidenticalserverroles(suchasvirtualizedDCsorguestclusternodes)ondifferenthoststoavoida
singlepointoffailure.

16. IntheManageAvailabilitySetswindow,clickCreate.

17. IntheCreateAvailabilitySetwindow,typeLabAvailabilitySetintheNamefield,andthenclickOK.

74

18. IntheManageAvailabilitySetswindow,clickOK.

19. OntheConfigureHardwarepage,clickNext.
20. OntheSelectDestinationpage,ensurethattheDestinationisAllHosts,andthenclickNext.

21. VMMscanseachhostforitscurrentresourceusageacrossCPU,Memory,DiskandNetwork,andrankseach
hostbasedonthesefactorsandtheexpectedneedsoftheVM,usingafeaturecalledIntelligentPlacement.On
theSelectHostpage,selectHYPERV01,andthenclickNext.

22. OntheConfigureSettingspage,acceptthedefaults,andthenclickNext.
23. OntheAddPropertiespage,makethefollowingchangesusingthedropdownlistsandentryboxes,thenclick
Next:

Selectanactiontoperformautomaticallywhenthevirtualizationserverstarts:Turnonthevirtual
machineifitwasrunningwhenthephysicalserverstopped

Delaystartup(seconds):10

Actiontotakewhenthevirtualizationserverstops:ShutdownguestOS

Specifytheoperatingsystemyouwillinstallinthevirtualmachine:WindowsServer2012R2Datacenter

75

24. OntheSummarypage,reviewthesettings.Theyshouldmatchthoseinthescreenshotbelow.

25. EnsurethattheStartthevirtualmachineafterdeployingitisnotselected,thenclickViewScript.
26. ClickFileandselectSaveAs.
27. ChangethefilenametoDeployVM.ps1,usingtheSaveastypedropdown,selectAllFiles.
28. NavigatesothatlocationtosavethefileisE:\VMMLibrary,andthenclickSave.

29. CloseNotepadandclickCreate.
30. IntheJobswindow,selecttherunningCreatevirtualmachinejobandreviewthejobdetailsatthebottomof
thepage.
31. WhentheJobfinishesrunning,closetheJobswindow.

76

Exercise 5.2: Create a VM with PowerShell


InthisexercisethePowerShellscriptthatwascreatedinthepreviousexercisewillbemodified,thenexecutedto
quicklydeployanewVM.ThisshowshowVMMscapabilitiescanbeacceleratedtheuseofPowerShell.

Estimatedtimetocomplete:5minutes

PerformthefollowingonSCVMM01
1. RightclickonthePowerShellicononthetaskbar,thenselectRunISEasAdministrator.PowerShellISE
(IntegratedScriptingLibrary)isascriptingcenterforwriting,testinganddebuggingcommands.

2. Intheprompt,typeSet-ExecutionPolicy Unrestricted -Force,thenpressEnter.


3. SelectOpenandnavigatetoE:\VMMLibraryandselectDeployVM.ps1.

77

4. SelectEdit|ReplaceinScript.

5. IntheFindWhatfield,typeVM01,intheReplacewithfield,typeVM02,andthenclickReplaceAll.

6. Savethefile.
7. ClickRun(greentriangle)fromtheupperribbon.ThePowerShellscriptwillrun,butitmaytakeafewmoments
tostart.

8. OncethescriptiscompleteanewPowerShellpromptwillappear.ClosePowerShellISE.

78

9. OpentheVirtualMachineManagerConsole.IftheConnecttoServerwindowappear,ensureUsecurrent
MicrosoftWindowssessionidentityisselected,andclickConnect.
10. SelecttheVMsandServicesworkspace,andthenselectCLUSTER1.

11. NotethatVM02isbeingcreatedwithanidenticalconfigurationasVM01.SincebothVMsareinthesame
availabilitysetcalledLabAvailabilitySettheywillbedistributedacrossdifferenthosts.

12. SelecttheLibraryworkspace.
13. ExpandLibraryServers,andclickonSCVMM01.contoso.com.

14. Rightclick SCVMM01.contoso.com, and select Refresh. DeployVM.ps1 should appear in the Physical Library
Objectsdetailspane.

79

15. SelectDeployVM.ps1,ontheribbon,clickViewFile.Notepadwillopen.

16. CloseNotepad.

80

Exercise 5.3: Create a Generation 2 VM


InthisexerciseanewVMwillbedeployedasaGeneration2HyperVvirtualmachine.Theprocessissimilarto
deployingatraditionalVM,howevertherearedifferenceswhichwillbenoted,specificallywiththeVMhardware.
Generation2VMsalsohaveuniquefeaturessuchassupportingUEFIfirmwareandSecureBoot.

Estimatedtimetocomplete:5minutes

PerformthefollowingonSCVMM01
1. OpentheVirtualMachineManagerConsole.IftheConnecttoServerwindowappear,ensureUsecurrent
MicrosoftWindowssessionidentityisselected,andclickConnect.
2. SelecttheVMsandServicesworkspace.
3. Ontheribbon,clickCreateVirtualMachine,andthenselectCreateVirtualMachine.

4. OntheSelectSourcepage,clickCreatethenewvirtualmachinewithablankvirtualharddisk,andthenclick
Next.

81

5. OntheIdentitypage,typeVM03intheVirtualmachinenamefield,fromtheGenerationdropdownselect
Generation2,andreadtheinformationatthebottomofthepage.ClickNext.

6. OntheConfigureHardwarepage,scrolldowntoreviewthereducednumberofconfigurationoptionsavailable
withaGeneration2VirtualMachine.ThisisbecauseGeneration2VirtualMachineshavestandardizedthe
virtualizedhardware,removingsuchcomponentsaslegacyNICs.
7. SelectMemoryunderGeneralinthenavigationtree,inthedetailspane,selecttheDynamicradiobutton,type
128intheStartupmemoryfield,type64intheMinimummemoryfield,andtype192intheMaximum
memoryfield.

8. OntheConfigureHardwarepage,selectVM03_disk_1underBusConfiguration|SCSIAdapter0inthe
navigationtree.ChangetheSize(GB)valueto5GB.Leaveallotherdefaultsettings.

82

9. OntheConfigureHardwarepage,selectAvailabilityunderAdvancedinthenavigationpane.
10. IntheAvailabilitydetailpane,clicktheMakethisvirtualmachinehighlyavailablecheckbox.

11. IntheAvailabilitydetailpane,clickManageavailabilitysets.
12. IntheManageavailabilitysetswindow,underAvailableProperties,selectLabAvailabilitySet,clickAdd,and
thenclickOK.

83

13. IntheAvailabilitydetailpane,changetheVirtualmachineprioritytoHigh.

14. OntheConfigureHardwarepage,underAdvancedinthenavigationpane,selectFirmware.Notethat
Generation2virtualmachinesbootfromUEFIfirmware,whichsupportsSecureBoot.SecureBoothelpsto
protectagainstthebootingofunauthorizedorcompromisedoperatingsystems.ClickNext.

15. OntheSelectDestinationpage,ensurethattheDestinationisAllHosts,andclickNext.

84

16. OntheSelectHostpage,noticethereisawarningnexttothehosts.SelectHYPERV01,andclicktheRating
Explanationtab.ThisrecommendsthattheVMisnotplacedonHYPERV01becauseanotherVMthatitispart
oftheLabAvailabilitySetisalreadyonthatsamehost.VMMwillactivelymoverunningvirtualmachinesto
differenthoststomaintainavailabilitysets.

17. SelectHYPERV02,andclickNext.
18. OntheConfigureSettingspage,acceptthedefaults,andclickNext.
19. OntheSelectNetworkspage,acceptthedefaults,andclickNext.
20. OntheAddPropertiespage,clickNext.
21. OntheSummarypage,reviewthesettings.Theyshouldmatchthoseinthescreenshotbelow.

22. EnsurethatStartthevirtualmachineafterdeployingitisnotselected,andclickCreate.
23. IntheJobswindow,selecttherunningCreatevirtualmachinejobandreviewthejobdetailsatthebottomof
thepage.
24. WhentheJobfinishesrunning,closetheJobswindow.

ENDOFLAB5

85

Lab 6: Virtual Machine Mobility


EstimatedtimetocompleteLab6:20minutes

Exercise 6.1: Configure Hosts for Migration


Estimatedtimetocomplete:5minutes
InthisexerciseSystemCenter2012R2VirtualMachineManagerwillpreparetheHyperVhoststosupportvirtual
machinelivemigration,whichmovesrunningVMsbetweenhostswithnodowntime.Thisincludesenablingthe
hostsformigrations,settingauthenticationprotocols,andconfiguringthemaximumnumbersofmigrations.

Estimatedtimetocomplete:5minutes

PerformthefollowingonSCVMM01
1. OpentheVirtualMachineManagerConsole.IftheConnecttoServerwindowappear,ensureUsecurrent
MicrosoftWindowssessionidentityisselected,andclickConnect.
2. SelecttheVMsandServicesworkspace.
3. ExpandAllHosts|CLUSTER1,andselectHYPERV01.

4. RightclickHYPERV01,andselectProperties.
5. IntheHYPERV01.contoso.comPropertieswindow,clicktheMigrationSettingstab.
6. UnderLivestoragemigration,changetheMaximumnumbersofsimultaneouslivestoragemigrationsto4.

86

7. UnderLivemigrationsettings,ensurethatTurnonincomingandoutgoinglivemigrationsisenabled,and
changetheMaximumnumbersofsimultaneouslivemigrationsvalueto10.
8. UnderPerformanceoption,reviewtheoptions,andensurethatUsecompressionisselected.
9. UnderAuthenticationprotocol,selectUseKerberos.
10. UnderIncominglivemigrationsettings,ensuretheUsethefollowingIPsubnetsisselected.InthelistofIP
subnets,select15.15.15.4/32,andclickMoveupuntilthisIPsubnetisatthetopofthelist.Thisensuresthis
networkisprioritizedforLiveMigration.ClickOK.

11. Repeatsteps4to10withHYPERV02.

87

Exercise 6.2: Test a VM Migration


InthisexerciseVMMwillperformamigration.SincetheHyperVhostsarealreadyvirtualized,itisnotpossibleto
starttheVMssotheyarenotactuallyrunninglive,howeverthestepsthatwouldbeperformedareidentical.This
labmigratesthememoryoftheVMfromonehosttoanotherhost.

Estimatedtimetocomplete:5minutes

PerformthefollowingonSCVMM01
1. OpentheVirtualMachineManagerConsole.IftheConnecttoServerwindowappear,ensureUsecurrent
MicrosoftWindowssessionidentityisselected,andclickConnect.
2. SelecttheVMsandServicesworkspace.
3. ExpandAllHosts|CLUSTER1,andselectHYPERV01.
4. Inthedetailpane,rightclickanyoftheVMsonthathostandselectMigrateVirtualMachine.

5. TheMigrateVMWizardopensandautomaticallyassessthetargethostsavailableformigration.

88

6. SincetheVMiscurrentlyonHYPERV01,selectHYPERV02fromthelistofhosts.Noticethewarningaboutthe
LabAvailabilitySet,asVM03residesonHYPERV02already.ClickNext.

7. OntheSummarypage,ensurethesettingsmatchthoseintheimagebelow,andthenclickMove.

8. TheJobswindowopens.ObservethemigrationofthevirtualmachinefromHYPERV01toHYPERV02.Close
theJobswindow.
9. ReturntotheVMsandServicesworkspaceandselectHYPERV02.NotethattheVMwhichwasmigratedis
nowonthishost.

89

Exercise 6.3: Test a Storage Migration


InthisexercisetheVMwillremainonthesamehost,butVMMwillmovetheVMsstoragecomponents(virtualdisk,
configurationfiles,etc.)fromonelocationtoanother.StorageMigrationhelpswithSANmanagementand
maintenance.

Estimatedtimetocomplete:5minutes

PerformthefollowingonSCVMM01
1. OpentheVirtualMachineManagerConsole.IftheConnecttoServerwindowappear,ensureUsecurrent
MicrosoftWindowssessionidentityisselected,andclickConnect.
2. SelecttheVMsandServicesworkspace.
3. ExpandAllHosts,andselectCLUSTER1.

4. RightclickVM01,andselectMigrateStorage.TheMigrateStoragewizardwillopen.

90

5. OntheSelectPathpage,underStoragelocationforVMconfiguration,clickBrowse.
6. TheVMandassociateddiskscurrentlyresidesonVMShare1.IntheSelectDestinationFolderwindow,expand
ClusterSharedVolumes,select[ClusterDisk1]CSV01,andclickOK.ThiswillmovetheVMsfilesfromSMB3.0
basedstoragetoiSCSISANstorage.

7. OntheSelectPathpage,ensurethatAutomaticallyPlaceallVHDswiththeconfigurationisselected,andthen
clickNext.

8. OntheSummarypage,ensurethesettingsmatchthoseintheimagebelow,andclickMove.

9. TheJobswindowopens.Observethemigrationofthevirtualmachinestorage.Thisprocesswillcomplete
relativelyquicklybecausethesizeofthevirtualdiskissmall.ClosetheJobswindow.

91

Exercise 6.4: Test a Shared Nothing Live Migration


InthisexerciseaVMthatrunningonaclusterwillbelivemigratedtoastandalone,includingmovingitsrelateddisks
andfilesonaniSCSISANtothehostslocallyattachedstorage.ThisisknownasaSharedNothingLiveMigration,and
enablesITadminstohavecompleteflexibilityformovingVMsaroundfromlocationtolocation.TheVMsmemory
stateandstoragearebothmovedwithnointerruptiontotherunningvirtualmachine.

Estimatedtimetocomplete:5minutes

PerformthefollowingonSCVMM01
1. OpentheVirtualMachineManagerConsole.IftheConnecttoServerwindowappear,ensureUsecurrent
MicrosoftWindowssessionidentityisselected,andclickConnect.
2. SelecttheFabricworkspace.
3. RightclickAllHostsandselectAddHyperVHostsandClusters.

4. IntheAddResourceWizard,ontheResourceLocationpage,leavethedefaultselectionofWindowsServer
computersinatrustedActiveDirectorydomain,andthenclickNext.

5. OntheCredentialspage,ensurethatUseanexistingRunAsaccountisselected,andthenclickBrowse.

92

6. IntheSelectaRunAsAccountwindow,selectVMMAdmin,andthenclickOK.

7. OntheCredentialspage,clickNext.
8. OntheDiscoveryScopepage,ensurethatSpecifyWindowsServercomputersbynamesisselected,andtype
SCVMM01intheComputernamesbox.EnsurethatSkipADverificationboxisnotselected,andthenclick
Next.

9. ThewizardwillscanforSCVMM01.Ifthecomputerisnotdiscovered,clickOK,thenclickRefresh.
10. OntheTargetresourcespage,selectSCVMM01,andthenclickNext.

93

11. Ifawarningappears,clickOK,thisissafetoignore.
12. OntheHostSettingspage,acceptthedefaults,andthenclickNext.
13. OntheSummarypage,ensurethesettingsmatchthoseofthescreenshotbelow,andthenclickFinish.

14. TheJobswindowopensandtheAddvirtualmachinehostjobbegins.Thiswilltakeseveralmomentsto
complete.Thejobwillcompletewithawarning.Thisisexpected.Whenthejobcompletes,closetheJobs
window.
15. ClosetheVirtualMachineManagerConsole,thenopentheVirtualMachineManagerConsole.IftheConnect
toServerwindowappear,ensureUsecurrentMicrosoftWindowssessionidentityisselected,andclick
Connect.SinceVMMisadditselfundermanagement,themanagementserverneedstoberefreshed.
16. SelecttheFabricworkspace.
17. ExpandServersandclickonAllHosts.
18. RightclickSCVMM01andselectProperties.

94

19. IntheSCVMM01.contoso.comPropertieswindow,clicktheStoragetab.

20. UnderDisk,selectPHYSICALDRIVE1,whichshouldbe40GB.
21. UnderLogicalunit,forClassification,selectGoldTierfromthedropdown.

22. SelecttheMigrationSettingstab.

23. ChecktheboxforTurnonincomingandoutgoinglivemigrations.
24. UnderAuthenticationprotocol,selectUseKerberos,andthenclickOK.

95

25. SelecttheVMsandServicesworkspace.
26. Inthenavigationpane,underAllHosts,selectCLUSTER1.

27. RightclickVM03andselectMigrateVirtualMachine.TheMigrateVMWizardwillappear.

96

28. Noticethatofthe3availablehosts,only2havestarratings.ClickSCVMM01andclicktheRatingExplanation
tabtoreadwhythishostisnotrecommendedforplacement.

29. ClicktocleartheMakethisVMhighlyavailableboxatthetopofthewizard.Theratingsarerecalculated.
ReviewtheRatingsExplanationonceagain.
30. SCVMM01isnowatthetopofthelist.SelectSCVMM01,andthenclickNext.

31. OntheSelectPathpage,ensurethatE:\islistedastheStoragelocationforVMconfiguration,andthat
AutomaticallyplaceallVHDswiththeconfigurationisselected,andthenclickNext.

97

32. OntheSelectNetworkspage,acceptthedefaults,andthenclickNext.SCVMM01hasnonetworkssetupat
thistime.
33. OntheSummarypage,checkthatthesettingsmatchthoseofthescreenshotbelow.

34. EnsurethatStartthevirtualmachineafterdeployingitisnotselected,andclickMove.
35. IntheJobswindow,observethejobthatisrunningandreviewthejobdetailsatthebottomofthepage.
36. Whenthejobfinishes,closetheJobswindow.
37. MinimizetheVirtualMachineManagerconsole.

ENDOFLAB6

98

Lab 7: Virtual Machine Replication & Protection


EstimatedtimetocompleteLab7:15minutes

Exercise 7.1: Configure a HyperV Replica


InthisexercisetheWindowsServer2012R2HyperVReplicafeaturewillbeconfigured.HyperVReplicaprovidesin
boxasynchronousreplicationoftheVMsVHDfilebetweendifferentlocations,providingadisasterrecoverysolution.
Replicationcanoccurevery30seconds,5minutes,or15minutes.AfteranincidenttheVMscanquicklyberestarted
inthesecondarylocation.

Estimatedtimetocomplete:5minutes

PerformthefollowingonSCVMM01
1. StartHyperVManager.

2. Inthenavigationpane,selectSCVMM01,andintheActionspaneclickHyperVSettings.

99

3. UndertheServersettings,selectReplicationConfiguration.

4. ClickEnablethiscomputerasaReplicaserverandselectUseKerberos(HTTP).

5. UnderAuthorizationandStorageclickAllowreplicationfromanyauthenticatedserverandchangethedefault
storagelocationtoE:\.
6. ClickApply.
7. OntheSettingsnotification,clickOK.Thisfirewallporthasalreadybeenenabledforthislab.

8. ClickOK.CloseHyperVManager.

100

Exercise 7.2: Configure a HyperV Replica Broker


InthisexercisetheHyperVReplicaBrokerwillbeconfigured.TheHyperVReplicaBrokerisaclusteredrolethat
makestheHyperVReplicareplicationprocesshighlyavailable,sothatreplicationwillalwayshappenaslongasthe
clusterisonline.Replicationcanhappenbetweenclusters,betweenstandalonehostsorbetweenaclusteranda
standalonehost,howeveritcannottakeplacebetweennodeswithinasinglecluster.

Estimatedtimetocomplete:5minutes

PerformthefollowingonSCVMM01
1. StartFailoverClusterManager.IfCLUSTER1.contoso.comdoesnotappear,thenrightclickontheFailover
ClusterManagernodeandclickonConnecttoCluster.TypeCLUSTER1.contoso.comintheClustername:box
andthenclickonOK.

2. Inthenavigationpane,expandCLUSTER1.contoso.com,rightclickRolesandclickConfigureRole.

3. OntheBeforeYouBeginpage,clickNext.
4. OntheSelectRolepage,selectHyperVReplicaBroker,andthenclickNext.

5. OntheClientAccessPointpage,intheNamefield,typeHVRB.

101


6. IntheAddresscolumn,selecttheClickheretotypeanaddressfieldandcompletetheIPaddressasfollows
192.168.1.101,andthenclickNext.

7. OntheConfirmationpage,checkthattheconfigurationmatchesthescreenshotbelow,andthenclickNext.

8. Afterthewizardcompletessuccessfully,clickFinish.
9. Afterafewseconds,thestatusoftheHyperVReplicaBrokerRolewillchangefromPendingtoRunning.

10. RightclickHVRBandselectReplicationSettings.

102


11. IntheHyperVReplicaBrokerConfigurationwindow,clickEnablethisclusterasaReplicaserver,clickUse
Kerberos(HTTP).
12. UnderAuthorizationandstorage,clickAllowreplicationfromanyauthenticatedserverandtype
\\FS01.contoso.com\VMShare2intheSpecifythedefaultlocationtostoreReplicafilesfield.

13. ClickOK,andonthefirewallwarning,clickOK.Thisfirewallporthasalreadybeenenabledforthislab.

103

Exercise 7.3: Replicate a VM


Inthisexercisereplicationforavirtualmachinewillbeenabled,thenotherreplicationsettingswillbeconfigured.
Aftertheinitialreplicationhashappened,ifthereisadisasterthenthisVMcanberecoveredatthesecondary
location.

Estimatedtimetocomplete:5minutes

PerformthefollowingonSCVMM01
1. OpenFailoverClusterManager.
2. ExpandCLUSTER1.contoso.comandclickRoles.
3. RightclickSCVMMVM01Resources,pointtoReplication,andselectEnableReplication.

4. OntheBeforeYouBeginpage,clickNext.
5. OntheSpecifyReplicaServerpage,typeSCVMM01intheReplicaserverfield,andthenclickNext.

104

6. OntheSpecifyConnectionParameterspage,acceptthedefaults,andthenclickNext.

7. OntheChooseReplicationVHDspage,ensuretheVHDXfileisselected,andthenclickNext.

8. OntheConfigureReplicationFrequencypage,expandthedropdowntoreviewtheoptions,select5minutes,
andthenclickNext.

9. OntheConfigureAdditionalRecoveryPointspage,ensurethatMaintainonlythelatestrecoverypointis
selected,andthenclickNext.

105

10. OntheChooseInitialReplicationMethodpage,ensurethatSendInitialCopyOvertheNetworkandStart
replicationimmediatelyareselected,andthenclickNext.

11. OntheSummarypage,ensurethesettingsarethesameasthescreenshotbelow,andclickFinish.

12. OntheReplicationenablednotification,clickClose.
13. FromFailoverClusterManager,rightclickSCVMMVM01Resources,pointtoReplication,andreviewthe
optionsthatareavailable,suchasaPlannedFailover.ThiscanbeusediftheVMsneedtobemovedtothe
alternativelocationformaintenanceorinpreparationofadisaster.Donotselectanyitemsfromthismenu.

14. MinimizeFailoverClusterManagerandstartHyperVManager.
15. SelectSCVMM01fromthenavigationpane.
16. ClickVM01,andatthebottomofHyperVManager,clicktheReplicationtab.Observesomeofthe
information,suchastheprimaryanddestinationserversandthelasttimesynchronization.

106

17. RightclickVM01,pointtoReplication,andreviewtheoptionsthatareavailable.NoticetheoptiontoFailover
theVM(iftheprimarysitewasunavailable),orevenTestFailover,inordertoprepareandtestforapotential
disasterontheprimarysite.ThereisalsoanoptiontoExtendReplication,whichextendthereplicationofthis
Replicatoathirdsite.

18. FromtheReplicationmenu,selectViewReplicationHealth.
19. Reviewthisinformation,thenclickClose.

20. RightclickVM01andclickSettings.

107

21. Inthenavigationpane,expandtheVM01networkadapter,andselectFailoverTCP/IP.

22. UnderIPv4TCP/IPsettings,selecttheUsethefollowingIPv4addressschemeforthevirtualmachine,and
configurethefollowingsettingstobeinjectedintotheVMuponfailovertothesecondsite:

IPv4Address:100.100.100.100

Subnetmask:255.255.255.0

23. ClickOKtoclosetheVM01settings.
24. CloseHyperVManagerandFailoverClusterManager.

ENDOFLAB7

108

Lab 8: Network Virtualization


EstimatedtimetocompleteLab8:15minutes

Exercise 8.1: Create a VM Network


InthisexerciseSystemCenter2012R2VirtualMachineManagerwillcreateaVirtualNetwork,orVMNetwork.This
willuseHyperVNetworkVirtualizationtoprovideisolationbetweenVMsbyleveragingtheLogicalSwitchandLogical
Networksthatwerepreviouslycreated.

Estimatedtimetocomplete:10minutes

PerformthefollowingonSCVMM01
1. OpentheVirtualMachineManagerConsole.IftheConnecttoServerwindowappear,ensureUsecurrent
MicrosoftWindowssessionidentityisselected,andclickConnect.
2. SelecttheVMsandServicesworkspace.
3. Onthenavigationpane,rightclickVMNetworksandselectCreateVMNetwork.

4. IntheCreateVMNetworkWizard,ontheNamepage,typeDevelopmentVMsintheNamefield,andensure
thattheLogicalnetworkselectedisContosoLAN,andthenclickNext.

109

5. OntheIsolationpage,selectIsolateusingHyperVnetworkvirtualization,andthenclickNext.

6. OntheVMSubnetspage,clickAdd.
7. UnderVMsubnet,typeDevelopmentLANintheNamefield,type192.168.6.0/24intheSubnetfield,andthen
clickNext.

8. OntheConnectivitypage,readtheconnectivitymessage,andthenclickNext.

9. OntheSummarypage,ensurethedetailsmatchthescreenshotbelow,andthenclickFinish.

110

10. TheJobswindowopens.Observethecompletedjobs,andthenclosetheJobswindow.
11. RepeatSteps3through9withthefollowingdetails:

Name:TestVMs

LogicalNetwork:ContosoLAN

Isolation:IsolateusingHyperVnetworkvirtualization

VMSubnets:

Name:TestLAN

Subnet:192.168.6.0/24

Gateway:Noconnectivity

12. UndertheVMNetworksandIPPools,rightclickDevelopmentVMsVMNetworkandselectCreateIPPool.

13. IntheCreateStaticIPPoolWizard,ontheNamepage,typeDevelopmentIPPoolintheNamefield.Ensurethe
VMNetworkisDevelopmentVMsandtheVMSubnetisDevelopmentLAN(192.168.6.0/24),andthenclick
Next.

14. OntheIPaddressrangepage,changetheEndingIPaddress:to192.168.6.50,andthenclickNext.

15. OntheGatewaypage,leavetheentryblankandclickNext.
16. OntheDNSpage,leavetheentryblankandclickNext.
17. OntheWINSpage,leavetheentryblankandclickNext.

111

18. OntheSummaryscreen,ensurethesettingsmatchthescreenshotbelow,andthenclickFinish.

19. TheJobswindowopens.Observethecompletedjob,andthenclosetheJobswindow.
20. Repeatsteps11to18fortheTestVMsVMNetwork,withthefollowingsettings:

Name:TestIPPool

VMNetwork:TestVMs

VMSubnet:TestLAN(192.168.6.0/24)

IPAddressRange:EndingIPAddress:192.168.6.50

Gateway,DNS,WINS:LeaveDefault

112

Exercise 8.2: Assign a VM Network


InthisexerciseVMMwillassignthenewlycreatedVMNetworkstotheexistingvirtualmachines.IftheVMswere
runningthenVMMwouldautomaticallyassignanappropriateIPaddresstotheVMsvNICfromitsIPPool.Sincethe
VMsareinsideVMNetworkstheyareisolatedfromoneanother.

Estimatedtimetocomplete:5minutes

PerformthefollowingonSCVMM01

1. OpentheVirtualMachineManagerConsole.IftheConnecttoServerwindowappear,ensureUsecurrent
MicrosoftWindowssessionidentityisselected,andclickConnect.
2. SelecttheVMsandServicesworkspace.
3. Inthenavigationpane,selectAllHosts.
4. Fromtheribbonnavigation,clickHomeandthenclickVMs.

5. RightclickonVM01andselectProperties.

113

6. IntheVM01Propertieswindow,clicktheHardwareConfigurationtab.
7. SelectNetworkAdapter1.

8. UnderConnectivity,nexttoConnectedtoaVMnetworkclickBrowse.
9. IntheSelectaVMNetworkwindow,selectDevelopmentVMs,andclickOK.TheVMsubnetwillautomatically
bechangedbecausethereisonlyasingleVMSubnetaspartofthatVMNetwork.

114

10. IntheVM01Propertieswindow,clickOK.
11. RepeatSteps5to10forVM02,withthefollowinginformation,andthenclickOK.

ConnectedtoVMNetwork:TestVMs

VMSubnet:TestLAN

12. RightclickonVM01andchooseProperties.
13. IntheVM01Propertieswindow,selecttheHardwareConfigurationtab.
14. SelectNetworkAdapter1.
15. Atthebottomofthedetailspane,clickConnectionDetails.

16. IntheConnectionDetailswindow,noticethatVMMhasautomaticallyallocatedanIPaddressfromthe
DevelopmentIPPool,withintheDevelopmentVMsVMNetwork.ClickOKtoclosethewindow.

17. ClickOKtocloseVM01Properties.
ENDOFLAB8

115

Lab 9: Virtual Machine Templates


EstimatedtimetocompleteLab9:25minutes

Exercise 9.1: Create a VM Template


InthisexerciseSystemCenter2012R2willcreateatemplatethatcanbeusedtostandardizeandacceleratethe
deploymentofVMsintotheenvironment.Templatescombineanumberofdifferentbuildingblocks,includinga
hardwareconfiguration,guestOSconfiguration,applicationlevelconfigurationandadditionalsettings.Templates
canbecreatedfromnothing,orfromexistingVMs,virtualdisks,orothertemplates.

Estimatedtimetocomplete:10minutes

PerformthefollowingonSCVMM01
1. OpentheVirtualMachineManagerConsole.IftheConnecttoServerwindowappear,ensureUsecurrent
MicrosoftWindowssessionidentityisselected,andclickConnect.
2. SelecttheLibraryworkspace.
3. Inthenavigationpane,selectTemplates.

4. ClickCreateVMTemplateontheribbon.

5. OntheSelectaSourcepage,ensurethatUseanexistingVMtemplateoravirtualharddiskstoredinthe
libraryisselected,andthenclickBrowse.

116

6. IntheSelectVMTemplateSourcewindow,selectWS2012R2,andthenclickOK.Donotselectanyoftheother
VHDXfiles.

7. OntheSelectSourcepage,clickNext.

8. OntheIdentitypage,typeVMTemplateintheVMTemplatenamefield,selectGeneration1fromthe
dropdown,andthenclickNext.

9. OntheConfigureHardwarepage,intheCompatibilitydetailpane,selectHyperV.

10. OntheConfigureHardwarepage,undertheGeneralworkspace,clickMemory.

117

11. IntheMemorydetailpane,clickDynamic,type128intheStartupmemoryfield,type64intheMinimum
memoryfield,andtype192intheMaximummemoryfield.

12. OntheConfigureHardwarepage,scrolldowntotheBusConfigurationworkspace,andselectWS2012R2.
13. IntheWS2012R2detailspane,selectSilverTierfromtheClassificationdropdown.

14. OntheConfigureHardwarepage,scrolldowntotheNetworkAdaptersworkspace,andselectNetwork
Adapter1.

118

15. IntheNetworkAdapter1detailspane,underConnectivity,clickConnecttoaVMnetwork,andclickBrowse.
16. IntheSelectaVMNetworkwindow,selectDevelopmentVMs,andthenclickOK.
17. UnderConnectivity,selectDevelopmentLANfromtheVMsubnetdropdown.
18. UnderIPAddress,selectStaticIP(fromastaticIPPool),andensureIPv4onlyisselectedfortheIPprotocol
version.
19. UnderPortProfile,selectBandwidthLowfromtheClassificationdropdown.

20. OntheConfigureHardwarepage,selectAvailabilityunderAdvancedinthenavigationpane.
21. IntheAvailabilitydetailpane,selecttheMakethisvirtualmachinehighlyavailablecheckbox.

22. OntheConfigureHardwarepage,clickSaveas.
23. IntheNewHardwareProfilewindow,typeLabHardwareProfileintheNamefield.

24. ClicktheHardwareProfiletab.Reviewthesettings,andthenclickOK.
25. OntheConfigureHardwarepage,clickNext.

119

26. OntheConfigureOperatingSystempage,selecttheIdentityInformationworkspaceunderGeneralSettings,
typeDevVM##intheComputernamefield.ThiswillincrementthenumberinthenameoftheVM,suchas
DevVM01,DevVM02,etc.

27. SelecttheAdminPasswordworkspace,clickSelectaRunAsaccountforthelocaladministratoraccountand
clickBrowse.
28. IntheSelectaRunAsaccountwindow,selectVMMAdminandthenclickOK.

29. SelecttheRolesworkspaceunderRolesandFeatures.

120

30. Inthedetailspane,scrolldowntoWebServer(IIS)andselectthefollowing:

31. Inthedetailpane,scrolldowntoWebServerandselectthefollowing:

32. SelecttheFeaturesworkspaceunderRolesandFeatures.IntheFeaturedetailspane,selectthefollowing:

33. SelecttheDomain/WorkgroupworkspaceunderNetworking,clickDomainandtypecontoso.cominthe
Domainfield.
34. SelecttheRunAsaccounttouseforjoiningthedomain,andthenclickBrowse.

121

35. IntheSelectaRunAsaccountdialog,selectDomainJoinandclickOK.

36. SelecttheAnswerFileworkspaceunderScripts,reviewtheoptionsinthedetailspane,andthenclickNext.

37. OntheApplicationConfigurationpage,leavethedefaultsettings,andthenclickNext.

122

38. OntheSQLServerConfigurationpage,leavethedefaultsettings,andthenclickNext.

39. OntheSummarypage,reviewthesettingsandclickCreate.
40. TheJobswindowopens.Observethecompletedjobs,andthenclosetheJobswindow.

123

Exercise 9.2: Review a SQL Server Profile


InthisexerciseaprecreatedSQLServerProfilewillbereviewed.SQLServerprofilesprovideinstructionsfor
customizinganinstanceofSQLServerforaSQLServerDataApplicationTier(DAC)whendeployingavirtualmachine
aspartofaservice.Aserviceisacollectionofvirtualmachinesthatmayrepresentamultitieredenterprise
application.

Estimatedtimetocomplete:5minutes

PerformthefollowingonSCVMM01
1. OpentheVirtualMachineManagerConsole.IftheConnecttoServerwindowappear,ensureUsecurrent
MicrosoftWindowssessionidentityisselected,andclickConnect.
2. SelecttheLibraryworkspace.
3. Inthenavigationpane,selectTemplates.

4. Inthedetailspane,rightclickonPetShopDataTier,andclickProperties.

5. OnthePetShopDataTierPropertiespage,clicktheHardwareConfigurationtab.

124

6. UnderBusConfiguration|IDEDevices,selecttheSQLServerVMTemplateVHDX,andselectSilverTierfrom
theClassificationdropdown.

7. UnderNetworkAdapters,selectNetworkAdapter1.
8. IntheNetworkAdapter1detailspane,underConnectivity,selectConnecttoaVMnetwork,andthenclick
Browse.

9. IntheSelectaVMNetworkwindow,selectDevelopmentVMs,andthenclickOK.

125

10. SelectDevelopmentLANfromtheVMsubnetdropdown.

11. UnderIPAddress,ensurethatStaticIP(fromastaticIPPool)andIPv4onlyareselected.

12. UnderPortProfile,selecttheBandwidthHighfromtheClassificationdropdown.

13. SelecttheSQLServerConfigurationworkspace.

14. OntheSQLServerconfigurationpage,fromtheSQLServerprofiledropdown,selectSQLServerProfile.

15. OntheSQLServerconfigurationpage,selectSQLServerDeployment,andreviewthesettingsinthedetails
pane.

126

16. OntheSQLServerconfigurationpage,selecttheConfigurationworkspace,andreviewthesettingsinthe
detailspane.Note:TheMediaSourceisapathwithintheVHD(X)fileattachedtothistemplate,wheretheSQL
mediafilesarestored.TheaccountswillbecreatedasSQLServeradministrators.

17. OntheSQLServerconfigurationpage,selecttheServiceAccountsworkspace,andreviewthesettingsinthe
detailspane.

18. InthePetShopDataTierPropertieswindow,selectApplicationConfiguration.

19. FromtheApplicationprofiledropdown,selectSQLDACApplicationProfile.

20. SelectthefirstSQLServerDataworkspace,andreviewthesettingsinthedetailspane.Notethatthesesettings
includeDACpackagescontainingthedatabaseschemaandsomeserverlevelobjectsrequiredinorderto
supportthedatabase,likelogins.TheDACdoesnotincludethedatainsideadatabase.ThisApplication
ConfigurationispointingatanumberofDACsresidingintheVMMslibrary.

127

21. ComparetheApplicationConfigurationdatatothescreenshotbelow.IfthereisaninconsistencyclickOKto
closethePetShopDataTierPropertieswindow,andreopenittorefreshtheview.

22. DirectlybelowSQLServerData,selectSQLServerScripts.VMMwillautomatethesetwoscriptsthatwillrun
alongwiththisDAC,intheirdeploymentorder.

23. IntheSQLServerScriptsdetailspane,selectCreateDBLogin,andthenclickEdit.

24. IntheSQLServerScriptsPropertieswindow,reviewthesettings,thenclickOK.

128

25. DirectlybelowSQLServerScripts,selectPreinstall1,andreviewthesettingsinthedetailspane.Inthiscase,a
preinstallationactionrunswhichlaunchescmd.exe,passesparameterstoit,andthencallsanotherscriptfile.

26. InthePetShopDataTierPropertieswindow,clickOK.

129

Exercise 9.3: Review a Web Application Profile


InthisexerciseanApplicationProfileforawebserverwillbereviewed.ThisenablesITadminsanddevelopersto
rapidlydeploystandardizedwebserversandpredefinedwebsites.

Estimatedtimetocomplete:5minutes

PerformthefollowingonSCVMM01
1. OpentheVirtualMachineManagerConsole.IftheConnecttoServerwindowappear,ensureUsecurrent
MicrosoftWindowssessionidentityisselected,andclickConnect.
2. SelecttheLibraryworkspace.
3. Fromthenavigationpane,selectTemplates.

4. ClickPetShopWebTierinthedetailspane,andthenclickPropertiesfromtheribbon.

5. InthePetShopWebTierPropertieswindow,selectHardwareConfiguration.

130

6. UnderBusConfiguration|IDEDevices,selectthePetShopWebTier,andselectSilverTierfromthe
Classificationdropdown.

7. UnderNetworkAdapters,selectNetworkAdapter1.
8. IntheNetworkAdapter1detailspane,underConnectivity,selectConnecttoaVMnetwork,andthenclick
Browse.
9. IntheSelectaVMNetworkwindow,selectDevelopmentVMs,andthenclickOK.

10. SelectDevelopmentLANfromtheVMsubnetdropdown.

131

11. UnderIPAddress,ensurethatStaticIP(fromastaticIPPool)andIPv4onlyareselected.

12. UnderPortProfile,selecttheBandwidthMediumfromtheClassificationdropdown.

13. SelecttheApplicationConfigurationworkspace.

14. FromtheApplicationprofiledropdown,selectPetShopWebApplicationProfile.

15. SelectWebApplication.

132

16. Reviewthedetailspane.TheWebApplicationiscontainedwithinaWebDeploypackage.WebDeploy
(msdeploy)simplifiesthedeploymentofWebapplicationsandWebsitestoIISservers.Administratorscanuse
WebDeploytosynchronizeIISserversortomigratetonewerversionsofIIS.WebDeployToolalsoenables
administratorsanddelegateduserstouseIISManagertodeployASP.NETandPHPapplicationstoanIISserver.
IftheApplicationConfigurationisnotidenticaltothescreenshotbelow,close,thenreopenthePetShopWeb
TierPropertieswindowtorefreshtheview.

17. UnderScripts,clickPreinstall1.

18. Reviewthedetails.PartofthepreinstallprocessVMMisgoingtoruncmd.exeanddeploytheWebDeploy
capabilityinsidetheGuestOS,beforeapplyingthespecificWebDeployfilesandsettingstotransformthis
WindowsServerintoafullyfunctionalIISServerwithpreconfiguredwebsite(s).

19. InthePetShopWebTierPropertieswindow,clickOK.

133

Exercise 9.4: Create a VM from a Template


InthisexerciseaVMwillbedeployedfromthenewlycreatedtemplate.Thisprocessenablesthestandardizedand
accelerateddeploymentofVMsfromaknownconfigurationsourceandspeedsupthedeploymentprocess,as
comparedtospecifyingeachconfigurationitemindividually.

Estimatedtimetocomplete:5minutes

PerformthefollowingonSCVMM01
1. OpentheVirtualMachineManagerConsole.IftheConnecttoServerwindowappear,ensureUsecurrent
MicrosoftWindowssessionidentityisselected,andclickConnect.
2. SelecttheLibraryworkspace.
3. Inthenavigationpane,selectTemplates.

4. Inthedetailspane,rightclickVMTemplateandclickCreateVirtualMachine.

5. ClickOKtodismissthewarning.

134

6. OntheIdentitypage,typeVM04intheVirtualmachinenamefield,andthenclickNext.

7. OntheConfigureHardwarepage,reviewthesettings,andthenclickNext.
8. OntheConfigureOperatingSystempage,reviewthesettings,andthenclickNext.
9. OntheSelectDestinationpage,reviewthesettings,andthenclickNext.
10. OntheSelectHostpage,selectHYPERV02,andthenclickNext.

11. OntheConfigureSettingspage,clickVirtualMachineLocation,andnexttotheVirtualmachinepathfield,click
Browse.

12. IntheSelectaDestinationFolderwindow,expandFileShares,select\\FS01.contoso.com\VMShare1,andthen
clickOK.

135

13. OntheConfigureSettingspage,selectNetworkAdapter0underNetworking,andreviewthesettings.

14. OntheConfigureSettingspage,selectVirtualHardDiskunderMachineResources,andnexttoDestination
PathclickBrowse.

15. IntheSelectaDestinationFolderwindow,expandFileShares,select\\FS01.contoso.com\VMShare1,andthen
clickOK.

16. OntheConfigureSettingspage,clickNext.
17. OntheAddPropertiespage,acceptthedefaultsettings,andthenclickNext.
18. OntheSummarypage,reviewthesettings,andthenclickCreate.

Note:Thedeploymentwillfail,andthisisexpectedinthisvirtualizedlabenvironment.Thislabisbuilt
usingvirtualmachines.ItisnotpossibletorunVMswithinHyperVVMs(nestedvirtualization).Ausercan
createandconfigureVMs,butcannotstarttheVM.

19. ClosetheJobswindow.

ENDOFLAB9

136

Lab 10: Service Templates


EstimatedtimetocompleteLab10:15minutes

Exercise 10.1: Create a Service Template


InthisexerciseSystemCenter2012R2willcreateaServiceTemplate.InVMMaserviceisacollectionofvirtual
machinesthatmayrepresentamultitieredenterpriseapplication.Thesevirtualmachinesareconfiguredand
deployedtogether,andthentheyaremanagedasasingleentity.Forexample,amultitierlineofbusiness
applicationcouldconsistofadatabasebackend,anapplicationtier,andawebfrontend.Eachofthesetierscanalso
bescaledtomeetincreasingordecreasingdemand.

Estimatedtimetocomplete:10minutes

PerformthefollowingonSCVMM01
1. OpentheVirtualMachineManagerConsole.IftheConnecttoServerwindowappear,ensureUsecurrent
MicrosoftWindowssessionidentityisselected,andclickConnect.
2. SelecttheLibraryworkspace.
3. ExpandLibraryServers,rightclickSCVMM01.contoso.com,andthenclickProperties.

137

4. IntheSCVMM01.contoso.comPropertieswindow,selectAllHostsfromtheHostGroupdropdown.

5. SelectalloftheVMnetworks,ensurethatAllowunencryptedBITStransfersisselected,andthenclickBrowse.

6. IntheSelectaRunAsAccountwindow,clickCreateRunAsAccount.
7. IntheCreateRunAsAccountwindow,ensurethatValidatedomaincredentialsisselected,typethefollowing,
andthenclickOK:

Name:LibraryAdmin

UserName:contoso\administrator

Password:Passw0rd!

Confirmpassword:Passw0rd!

138

8. IntheSelectaRunAsAccountwindow,ensurethatLibraryAdminisselected,thenclickOK.

9. IntheSCVMM01.contoso.comPropertieswindow,clickOK.

10. IntheLibraryworkspace,selectServiceTemplatesandclickCreateServiceTemplateontheribbonmenu.

139

11. IntheNewServiceTemplatewindow,typePetShopintheNamefield,andtype1.0intheReleasefield.Select
TwoTierApplication(v1.0),andthenclickOK.

12. MaximizetheServiceTemplateDesigner.
13. FromtheVMTemplatespaneonthenavigationpane,dragPetShopWebTiertotheFirstTierbox.

140

14. FromtheVMTemplatespane,dragPetShopDataTiertotheSecondTierbox.

15. Inthetopleftoftheribbon,clickSaveandValidate.

16. DoubleclickPetShopWebTierMachineTier1toopentheProperties.

17. ReviewtheinformationontheGeneralpage.Noticethatthistiercanbescaledout,andcurrentlyhasadefault
instance(numberofVMs)countof1,andamaximumof5VMsthatthistiercanscaleto.Theadministratorcan
definethedeploymentorderofthistier,inrelationtoothertiers,andinwhichorderthetiersareserviced.

141

18. ChangethePreferreddeploymentorderto2andthePreferredservicingorderto2,andthenclickOKtoclose
thePropertieswindow.

19. Inthetopleftoftheribbon,clickSaveandValidate.
20. ClickonPetShopDataTierMachineTier1inthemainServiceTemplateDesigner,andreviewthealertdetails
atthebottomofthewindow.
21. DoubleclickPetShopDataTierMachineTier1Propertiespage,uncheckThismachinetiercanbescaledout,
thenclickOK.

22. Inthetopleftoftheribbon,clickSaveandValidate,andthenclosetheServiceTemplateDesigner.

142

23. IntheTemplatesdetailpane,selectPetShop,and,ontheribbon,clickPublish.

143

Exercise 10.2: Deploy a Service Template


InthisexerciseaservicewillbedeployedfromaServiceTemplate.Notethatthedeploymentwillfail,andthisis
expectedinthisvirtualizedlabenvironment.ThislabisbuiltusingvirtualmachinesanditisnotpossibletorunVMs
withinHyperVVMs(nestedvirtualization).AusercancreateandconfigureVMs,buttheycannotstartthem.

Estimatedtimetocomplete:5minutes

PerformthefollowingonSCVMM01
1. OpentheVirtualMachineManagerConsole.IftheConnecttoServerwindowappear,ensureUsecurrent
MicrosoftWindowssessionidentityisselected,andclickConnect.
2. SelecttheLibraryworkspace.
3. IntheLibraryworkspace,selectTemplates.
4. FromtheTemplatesdetailspane,rightclickonPetShopandthenclickConfigureDeployment.

5. TypePetShop1.0intheNamefield,ensurethatAllHostsisselectedfromtheDestinationdropdown,andthen
clickOK.

144

6. TheDeployServicePetShop1.0windowopens.
7. Maximizethewindow,andthenclickRefreshPreviewfromthetopleftoftheribbon.
8. ThePlacingServicedialogboxappearstemporarilywhilethepreviewisrefreshed.Oncecomplete,theservice
shouldhavesuitablehost(s)defined.Ifanywarningsremain,clicktheRefreshPreviewbuttonontheribbon.

9. ClickDeployServiceontheribbon.

10. IntheDeployservicewindow,clickDeploy.

Note:Thedeploymentwillfail,andthisisexpectedinthisvirtualizedlabenvironment.Thislabisbuilt
usingvirtualmachines.ItisnotpossibletorunVMswithinHyperVVMs(nestedvirtualization).Ausercan
createandconfigureVMs,butcannotstarttheVM.

11. TheJobswindowopens.ReviewtheexecutingjobthenclosetheJobswindow.
12. SelecttheVMsandServicesworkspace.
13. SelectAllHostsfromthenavigationpane,andensurethatVirtualMachinetababovetheribbonisselected.
TherewillbealistofnewlycreatedVMwithaStatusofCreationFailed.Thisfailureisexpecteddueto
limitationsofthevirtualizedlabenvironment.

ENDOFLAB10

145

Lab 11: Private Clouds & User Roles


EstimatedtimetocompleteLab11:15minutes

Exercise 11.1: Create a User Role


InthisexerciseSystemCenter2012R2VirtualMachineManagerwillcreateaSelfServiceUserRoleforamemberof
theDevelopmentteam.Thisaccountwillhavecertainpermissionsandrestrictionsassignedtoit.

Estimatedtimetocomplete:5minutes

PerformthefollowingonSCVMM01
1. OpentheVirtualMachineManagerConsole.IftheConnecttoServerwindowappear,ensureUsecurrent
MicrosoftWindowssessionidentityisselected,andclickConnect.
2. SelecttheSettingsworkspace.

3. ExpandSecurity|UserRolesand,ontheribbon,clickCreateUserRole.

4. OntheNameanddescriptionpage,typeDevelopmentUserintheNamefield,andthenclickNext.

146

5. OntheProfilepage,selectApplicationAdministrator(SelfServiceUser),andthenclickNext.

6. OntheMemberspage,clickAdd
7. TypeindevuserintheEntertheobjectnamestoselectbox,clickCheckNames,andthenclickOK.Thisshould
resolvetoCONTOSO\devuser.

8. OntheMemberspage,ensurethatCONTOSO\devuserislisted,andthenclickNext.

9. OntheScopepage,notethattherearecurrentlynoclouds,andthenclickNext.

10. OntheNetworkingpage,clickAdd.

147

11. SelectDevelopmentVMs,andclickOK.

12. OntheNetworkingpage,ensurethatDevelopmentVMsislisted,andthenclickNext.

13. OntheResourcespage,clickAdd.
14. SelectPetShopfromtheType:ServiceTemplatenode,thenclickOK.

148

15. BackontheResourcespage,ensurethatPetShopislisted,andthenclickNext.

16. OnthePermissionspage,selectDeploy(Fromtemplateonly),LocalAdministrator,Pauseandresume,Remote
connection,Shutdown,StartandStop,thenclickNext.

17. OntheRunAsaccountspage,clickAdd.
18. IntheSelectaRunAsaccountwindow,selectVMMAdmin,andthenclickOK.

149

19. OntheRunAsaccountspage,confirmVMMAdminislisted,andthenclickNext.

20. OntheSummaryscreen,ensurethesettingsmatchthoseinthescreenshotbelow,andthenclickFinish.

21. TheJobswindowopens.Observethecompletedjob,andthenclosetheJobswindow.

150

Exercise 11.2: Create a Private Cloud


InthisexerciseaCloudwillbecreated.InVMMtheprivatecloudisdeployedtopoolanorganizationsownhardware
toleveragetheadvantagesoftheprivatecloudcomputingmodel.ThroughVMM,anorganizationcanmanagethe
privateclouddefinition,controlaccesstotheprivatecloudanditsunderlyingphysicalresources.

Estimatedtimetocomplete:5minutes

PerformthefollowingonSCVMM01
1. OpentheVirtualMachineManagerConsole.IftheConnecttoServerwindowappear,ensureUsecurrent
MicrosoftWindowssessionidentityisselected,andclickConnect.
2. SelecttheVMsandServicesworkspace.
3. Ontheribbon,clickCreateCloud.

4. OntheGeneralpage,typeDevelopmentCloudintheNamefield,andthenclickNext.

5. OntheResourcespage,selectAllHosts,andthenclickNext.

6. OntheLogicalNetworkspage,clickContosoLAN,andthenclickNext.

151

7. OntheLoadBalancerspage,acceptthedefault,andthenclickNext.

8. OntheVIPTemplatespage,clickNext.
9. OnthePortClassificationspage,selectBandwidthLowandContosoStandardPort,andthenclickNext.

10. OntheStoragepage,selectGoldTierandSilverTier,andthenclickNext.

11. OntheLibrarypage,acceptthedefault,andthenclickNext.
12. OntheCapacitypage,uncheckalltheUseMaximumcheckboxes,enterthefollowingvalues,andthenclick
Next.

ChangetheAssignedCapacityforVirtualCPUsto4

ChangetheAssignedCapacityforMemoryto1

ChangetheAssignedCapacityforStorageto200

ChangetheAssignedCapacityforCustomquotato10

ChangetheAssignedCapacityforVirtualmachinesto4

152

13. OntheCapabilityProfilespage,selectHyperV,andthenclickNext.

14. OntheSummarypage,ensurethesettingsmatchthoseinthescreenshotbelow,andthenclickFinish.

15. TheJobswindowopens.Observethecompletedjobs,andthenclosetheJobswindow.

153

Exercise 11.3: Delegate Access to a Cloud


InthisexerciseaccessprivilegeswillbeassignedtothenewlycreatedcloudfortheDevelopmentUserrole.The
DevelopmentUserwillthenlogintoVMMandobservethelimitedmanagementscopethatthisuserrolehas.

Estimatedtimetocomplete:5minutes

PerformthefollowingonSCVMM01
1. OpentheVirtualMachineManagerConsole.IftheConnecttoServerwindowappear,ensureUsecurrent
MicrosoftWindowssessionidentityisselected,andclickConnect.
2. SelecttheVMsandServicesworkspace.
3. ExpandClouds,rightclickDevelopmentCloud,andthenclickAssignCloud.

4. IntheUseanexistinguserroledropdown,selectDevelopmentUsersSelfServiceuser,andthenclickOK.

154

5. IntheDevelopmentUserPropertieswindow,clicktheQuotasfortheDevCloudtab.

6. IntheRolelevelquotassection,deselectalloftheUseMaximumcheckboxes.

7. IntheMemberlevelquotassection,deselectalloftheUseMaximumcheckboxes.

155

8. IntheMemberlevelquotassection,changetheVirtualCPUsAssignedQuotato2andVirtualmachines
AssignedQuotato2.

9. IntheDevelopmentUserPropertieswindow,clickPermissions,andthenclicktheDevelopmentCloud.

10. SelectSave,andthenclickOK.ThesesettingsallowITtoprovidegranularcontrolonacloudbycloudbasis,in
additiontocrosscloudcontrolsatagloballevel.

156

11. InthetopleftoftheVirtualMachineManagerConsole,clickFile,andthenclickOpenNewConnection.

12. IntheConnecttoServerpage,selectSpecifycredentials,andenterthefollowingcredentialsandclickConnect.

Username:contoso\devuser

Password:Passw0rd!

13. TherewillnowbetwoVirtualMachineManagerConsolewindowsopen.Toidentifywhichisthecorrect
window,lookinthetopleftcorner.EnsurethattheconnectionisusingDevelopmentUser
SCVMM01.contoso.com.

14. SelecttheVMsandServicesworkspace.NoticethattheFabricworkspaceisnotavailabletotheDevelopment
Useruserrole.ThisisbydesignsothatthisusercanfocusontheirVMsandapplications,butnotthe
underlyinginfrastructure.

15. ExpandClouds|DevelopmentCloud,andthen,onthenavigationribbon,clickOverview.

157

16. Ontheribbon,clickCreateVirtualMachine,andthenselectCreateVirtualMachine.

17. OntheSelectSourcepage,selectCreatethenewvirtualmachinewithablankharddisk,andthenclickNext.

18. OntheIdentitypage,typeVM05intheVirtualmachinenamefield,andthenclickNext.

19. OntheConfigureHardwarepage,acceptthedefaults,andthenclickNext.Anerrormessagewillappear
becauseDevelopmentUserdoesnothavepermissiontocreateanewVMunlessitcomesfromatemplate.

20. ClickOKtoclosetheerrorwindow,andclickCanceltoexittheCreateVirtualMachineWizard.
21. ClickYestoconfirmthecancellation.
22. SelecttheLibraryworkspace.

158

23. Fromthenavigationpane,clickTemplates,selectPetShopinthedetailspane,andthenclickConfigure
Deploymentontheribbon.

24. TypeDevelopmentPetShopintheNamefield.Notice,theonlydestinationthatavailableinthedropdownis
DevelopmentCloud.

25. ClickOK.
26. TheDeployServiceDevelopmentPetShopwindowwillopen.Maximizethewindow,andthenclickRefresh
Previewinthetopleftoftheribbon.

27. ThePlacingServicedialogboxwillappear.Oncecomplete,theserviceshouldhavesuitablehost(s)defined.
28. ClickPETSQL02.contoso.cominsidePetShopDataTierMachineTier1.

29. Onthenavigationribbon,clickRatings.

159

30. NotethatplacementprovidestheDevelopmentCloudinsteadofthespecifichostsasithadinprevious
exercises,sotheDevelopmentUseronlyknowswhetherthecloudissuitable,buttheunderlyingserversare
hidden.ClickOK.
31. ClickDeployServiceontheribbon,andintheDeployservicedialog,clickDeploy.

Note:Thedeploymentwillfail,andthisisexpectedinthisvirtualizedlabenvironment.Thislabisbuilt
usingvirtualmachines.ItisnotpossibletorunVMswithinHyperVVMs(nestedvirtualization).Auser
cancreateandconfigureVMs,butcannotstarttheVM.

32. TheJobswindowopens.Observethecompletedjob,andthenclosetheJobswindow.
33. CloseDeployServiceDevelopmentPetShoppage,andclickSaveattheClosewindowprompt.Thiswillkeep
theconfigurationforfutureuse.

34. FromtheVirtualMachineManageConsole,usingtheDevelopmentUseruserrole,navigatetotheVMsand
Servicesworkspace,thenselectCloudsfromthenavigationpane.

35. Ontheupperribbon,clickServicestoseethisservicedeployment.

ENDOFALLLABS

160

Das könnte Ihnen auch gefallen