4.5

Table Of Contents
VMware View Integration Guide
40 VMware, Inc.
Removethedesktoppoolmydesktop,anddeleteitsimagefromdisk.
Get-Pool -pool_id mydesktop | Remove-Pool -DeleteFromDisk $true
Creating and Updating Automatically Provisioned Desktop Pools
Addtheautomaticallyprovisioneddesktoppoolauto1,whichismanagedbythevCenterServer
vc.mydom.int.
Get-ViewVC -serverName vc.mydom.int | Add-AutomaticPool -pool_id auto1 -displayName "ADP1"
-namePrefix "adp1-{n:fixed=4}" -vmFolderPath /AutoConfig/vm
-resourcePoolPath /AutoConfig/host/Resources -templatePath /AutoConfig/vm/ADP_template
-dataStorePaths /host/datastore_1/lun10 -customizationSpecName "Windows 7 Variation 3"
-minimumCount 4 -maximumCount 10
Updatetheconfigurationoftheautomaticallyprovisioneddesktoppoolauto1.
Update-AutomaticPool -pool_id auto1 -displayName "Automatic Desktop Pool 1"
-isProvisioningEnabled $false -dataStorePaths /host/datastore_1/lun10;/host/datastore_1/lun12
Thedatastoresthatyouspecifyasargumentsto-datastorePathsoverridetheprevioussetting.Youmust
specifytheexistingdatastorestoretainthemforusebythepool.
Creating and Updating Linked-Clone Desktop Pools
Addthelinkedclonedesktoppoollcdpool_1,whichismanagedbyViewComposeronthevCenterServer
vc.mydom.int.
Get-ViewVC -serverName vc.mydom.int | Get-ComposerDomain -domain VCDOM |
Add-AutomaticLinkedCLonePool -pool_id lcdpool_1 -displayName "LCD Pool 1"
-namePrefix "lcp1-{n}-dt" -parentVMPath /AutoPoolVMs/parent
-parentSnaphotPath /AutoPoolSnapshots/parent1_snapshot -vmFolderPath /AutoConfig/VM_folder
-resourcePoolPath /AutoConfig/host/Resources
-datastoreSpecs [Aggressive,os,data]/host/datastore_1/lun04;/host/datastore_2/lun16
-dataDiskLetter "D" -dataDiskSize 100 -minimumCount 4 -maximumCount 10
Ifyouspecifyapersistentdatadisk,useanuppercaseletterforthedrive.Donotusealetterthatalreadyexists
ontheparentvirtualmachineforadrivesuchasA,B,orC,orthatconflictswithanetworkmounteddrive.
Updatetheconfigurationofthelinkedclone
desktoppoollcdpool_1.
Get-ViewVC -serverName vc.mydom.int | Get-ComposerDomain -domain VCDOM |
Update-AutomaticLinkedCLonePool -pool_id lcdpool_1 -datastoreSpecs
[Conservative,os,data]/host/datastore_1/lun04;/host/datastore_2/lun16;/host/datastore_2/lun22
-minimumCount 4 -maximumCount 20 -headroomCount 2 -powerPolicy Suspend -defaultProtocol PCOIP
-isUserResetAllowed $true
Thedatastoresthatyouspecifyasargumentsto-datastoreSpecsoverridetheprevioussetting.Youmust
specifytheexistingdatastorestoretainthemforusebythepool.
Rebalancedesktopsinthelinkedclonedesktoppoollcdpool_2amongtheavailabledatastores.
Get-DesktopVM -pool_id lcdpool_2 | Send-LinkedCloneRebalance -schedule 2011-05-10:01:00:00
-forceLogoff $false -stopOnError $true
Refreshtheoperatingsystemdiskofeachlinkedclonedesktopbyrestoringittoitsoriginalstateandsize.
Get-DesktopVM -pool_id lcdpool_2 | Send-LinkedCloneRefresh -schedule "May 12 2011 01:15"
-forceLogoff $true -stopOnError $true
Recomposealllinkedclonedesktopsfromasnapshotoftheirparentvirtualmachine.
NOTEToprovisionallthedesktopsinadvanceoftheiruse,set-minimumCountand-maximumCounttothe
samevalue.
NOTEToprovisionallthedesktopsinadvanceoftheiruse,set-minimumCountand-maximumCounttothe
samevalue.