After installing VCD 9.1 its observed the HTML5 tenant portal is blank. The legacy Flex based tenant portal is fine. The reason for the blank screen is missing ‘Tenant‘ in Tenant Portal URL syntax. The issue resolved after adding tenant as suffix.
Tag Archives: vCloud
PowerCLI to deploy VMs in VMware vCloud and connect to network
Reply
This PowerCLI script will help you to deploy VMs in VMware Private vCloud and connect to network.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 |
############################# # Deploy VMs in vCloud # ############################# # Change Log # 1.0 This script will Create vApp and deploy VMs from the selected TemplateVM. ################ # INITIALIZING # ################ ### DECLARING VARIABLES ### $vCloud_Server = "vCloud Server" # vCloud Server FQDN $vCloud_Org = "Org Name" # Org Name $orgNetwork = "orgNwName" # Target OrgNetworkName for the VM. $templateVM = "TemplateVMName # Template VM Name. $vmCount = 2 # No of VMs required. $vmIndex = 4 # VM starting index. $vAppNamePrefix = "RHEL-vApp" # Prefix string in the vApp Name. $VMNamePrefix = "RHEL-VM" # Prefix string in the VM Name. ### Connect to the vCloud Server ### Connect-CIServer $vCloud_Server ### Deploying VMs ### $vmCount = $vmIndex + $vmCount for($i=$vmIndex; $i -le $vmCount; $i++) { $vAppName = $vAppNamePrefix+"$i" $VMName = $VMNamePrefix+"$i" ### Creating new vApp ### New-CIVApp -Name $vAppName -OrgVdc $vCloud_Org ### Deploy the VM from template inside the newly created vApp### New-CIVM -Name "$VMName" -VMTemplate $templateVM -VApp $vAppName -ComputerName "$VMName" ### Creating new vApp Network ### New-CIVAppNetwork -VApp $vAppName -Direct -ParentOrgNetwork $orgNetwork $vAppNetwork = get-civapp $vAppName | Get-CIVAppNetwork $orgNetwork $cldVMs = get-civapp $vAppName | get-civm ### Connecting the vNIC to the network ### ### Please change the allocation model if required### foreach ($cldvm in $cldVMs) { $cldvm | Get-CINetworkAdapter | Set-CINetworkAdapter -vappnetwork $vAppNetwork -IPaddressAllocationMode Pool -Connected $True } ### Powering on the vApp ### get-CIVApp -Name $vAppName | Start-CIVApp } Disconnect-CIServer $vCloud_Server -Force -Confirm:$false |