Advertisement
Guest User

Untitled

a guest
Oct 30th, 2017
361
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. $vc_server = "10.160.67.181"
  2. $vc_user = "administrator@vsphere.local"
  3. $vc_password = "Admin!23"
  4. Connect-VIServer -Server $vc_server -Protocol https -User $vc_user -Password $vc_password
  5.  
  6.  
  7. # Get the template first
  8. $orig_template_vm = Get-VM -Name OriginalStressVM*
  9.  
  10.  
  11. # clone it into the following hosts
  12. $h_001 = "w3-fvtstress-001.eng.vmware.com"
  13. $h_002 = "w3-fvtstress-002.eng.vmware.com"
  14. $h_003 = "w3-fvtstress-003.eng.vmware.com"
  15. $h_004 = "w3-fvtstress-004.eng.vmware.com"
  16. $h_007 = "w3-fvtstress-007.eng.vmware.com"
  17. $h_008 = "w3-fvtstress-008.eng.vmware.com"
  18.  
  19.  
  20. #Get datastores
  21.  
  22. $FS_VVOL1 = Get-Datastore -Name "FS_VVOL1"
  23. $FS_VVOL1 = Get-Datastore -Name "FS_VVOL2"
  24.  
  25. $vs8_nfs_vol2 = Get-Datastore -Name "vs8_nfs_vol1"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement