DjinjiRinji's Posts

This sounds similar to a migration scenario I did years ago for some hundreds of VMs to move tenants from old vSphere version PVDC to new one. Depending on your goal you may need to share the networ... See more...
This sounds similar to a migration scenario I did years ago for some hundreds of VMs to move tenants from old vSphere version PVDC to new one. Depending on your goal you may need to share the networks (if keeping existing OrgVDC) or deploy new Edge if planing to decommission the old PVDC. For VMS not using Edge and Overlay networks is a lot easier being external networks without many dependencies. Few considerations to have depends on our vSphere and VCD versions. Hopefully your versions are not to old and that will make your scenario easier. Hight level steps I did using scrips (as I remember from top of my head...) 0- Export OrgVDC, VApps, VMs, Networks configurations for inventory reference (scripts used) 1- Setup all OrgVDC’s on new PVDC (including all networks in use) (scripts used) 2- For older VCD versions remove the ‘managed by’ setting seen in vCenter so it can be VMOTION to new cluster (scripts used) 3- VMOTION VMS to new cluster OrgVDC pools. 4- Import VM into OrgVCD (this is automatic by VCD but if not enabled needs to be done per VM) 5- Recreate the vApps with same settings as per exported inventory (I used to rename the old one with -old- to keep it visible in VCD once new one was done delete old vAPP structure) 6- Clean up. Delete old objects   Regards, Guillermo Ramallo https://bakingclouds.com
What tool is being used? Can you post the call code here to see? (remove sensitive data)
Do you have elasticity configured, storage and networks shared between pools? https://docs.vmware.com/en/VMware-Cloud-Director/9.7/com.vmware.vcloud.admin.doc/GUID-2CE6C061-97FD-4963-A5D9-98109D45D6... See more...
Do you have elasticity configured, storage and networks shared between pools? https://docs.vmware.com/en/VMware-Cloud-Director/9.7/com.vmware.vcloud.admin.doc/GUID-2CE6C061-97FD-4963-A5D9-98109D45D6C3.html Are to specifying ResourcePoolRef in the API call? https://code.vmware.com/apis/722/vmware-cloud-director/doc/doc/types/MigrateParamsType.html   Inconstancies in DB can happen. Is the ResourcePoolRef correct in VCD DB and VC DB?  
Hi John, You have a few errors that could be related to vcloud user permissions on Cassandra  Have a look on these 2 articles we wrote and check if helps resolve your configuration Bitnami Cassand... See more...
Hi John, You have a few errors that could be related to vcloud user permissions on Cassandra  Have a look on these 2 articles we wrote and check if helps resolve your configuration Bitnami Cassandra Database for Storing Historic vCloud Metrics Data - Part 1 - Baking Clouds Bitnami Cassandra Database for Storing Historic vCloud Metrics Data - Part 2 - Baking Clouds Regards, Guillermo Ramallo
The vc registration without '/' is correct https://your-fqdn should work. I have all my vCD cells this way   Can you upload the content of your cell.log to see all errors you get while doing this?
This is common old issue when adding templates to catalog There's a DB query to run to resolve this but 1st have a look to this https://kb.vmware.com/s/article/2094808  
Hi. Did you try to upload your vcenter certs in vCD before attempting the connection? In case you don't want to upload certs try below command in vcd 10.1 or above  “/opt/vmware/vcloud-dire... See more...
Hi. Did you try to upload your vcenter certs in vCD before attempting the connection? In case you don't want to upload certs try below command in vcd 10.1 or above  “/opt/vmware/vcloud-director/bin/cell-management-tool trust-infra-certs --vsphere --unattended”         Security WARNING: After upgrading to version 10.1, VMware Cloud Director will always verify certificates for any infrastructure endpoints connected to it. This is due to a change in the way VMware Cloud Director manages SSL certificates. If you do not import your certificates into VMware Cloud Director before the upgrade, the vCenter Server and NSX connections might show failed connection errors due to SSL verification issues. In this case, after upgrading, you have two options: Run the cell management tool trust-infra-certs command to automatically connect and retrieve certificates of all infrastructure endpoints for vCenter Server and NSX Manager instances into the centralized certificate store. See Import Endpoints Certificates from vSphere Resources. In the Service Provider Admin Portal UI, select each vCenter Server and NSX instance and reenter the credentials while accepting the certificate. Starting with version 10.1, service providers and tenants can use the VMware Cloud Director API to test connections to remote servers and to verify server identity as part of an SSL handshake. To protect VMware Cloud Director network connections, configure a deny list of internal hosts that are unreachable to tenants who are using the VMware Cloud Director API for connection testing. Configure the deny list after а VMware Cloud Director installation or upgrade and before granting tenants access to VMware Cloud Director. See Configure a Test Connection Deny List. VMware Cloud Director 10.1 deprecates the behavior to trust all SSL certificates. In this release, vCenter Server and NSX connections do not support this option. For all other connections, trusting all certificates is also deprecated and will become unsupported after VMware Cloud Director 10.1. System Administrators must prepare for this transition.If you use the LDAP for your VMware Cloud Director system organization, you can use the trust-on-first-use dialog in the UI or upload certificates by using the API. Аudit all uses of this option and supply appropriate certificates by using the UI or the API. Communicate the changes to the tenants. All tenants that are using custom LDAP with enabled Accept all certificates option must transition away from this configuration. Tenants can either use the trust-on-first-use dialog in the UI or upload certificates through the API.     https://docs.vmware.com/en/VMware-Cloud-Director/10.1/VMware-Cloud-Director-Install-Configure-Upgrade-Guide/GUID-96E9CD2E-59BB-4B2B-B9F2-E854C7540118.html
Have a look on this article VMware support recommends when cases are raised about this issue for vCD 9.1 and above https://www.linkedin.com/posts/gramallo_subscribenow-shareit-cloud-activity-6717179... See more...
Have a look on this article VMware support recommends when cases are raised about this issue for vCD 9.1 and above https://www.linkedin.com/posts/gramallo_subscribenow-shareit-cloud-activity-6717179820507324416-Y1y0 https://bakingclouds.com/installing-wildcard-signed-ssl-certificates-in-vcloud-director-9-1/  
Hello, I experienced similar issue with a tenant having few vApps showing double storage consumption than VMs inside the vApp. This is a known issue resolved on vCD 9.5 onwards. By opening a ca... See more...
Hello, I experienced similar issue with a tenant having few vApps showing double storage consumption than VMs inside the vApp. This is a known issue resolved on vCD 9.5 onwards. By opening a case with support they can confirm that and advise you to upgrade I recommend you upgrade VCD Moving VMs to new vApps and doing any other work on will not resolve the issue unfortunately As workaround you can increase the storage quota to allow tenant consume that capacity until you find a way to upgrade or migrate If you have concern about consumption having a dedicated Datastore for those VMs can make the trick of limiting those machines. Regards Guillermo Ramallo http://bakingclouds.com
Hi, Can you upload a diagram of how your scenario looks? NAT is needed to have a public IP for Veeam portal for external users access If what you need is the client request to end at Edge an... See more...
Hi, Can you upload a diagram of how your scenario looks? NAT is needed to have a public IP for Veeam portal for external users access If what you need is the client request to end at Edge and make the Edge send the request to VCD, Veeam, etc on your mgmt network check on your Edge rules configuration to terminate connections on Edge rather than sending client request directly to your servers. Regards Guillermo
Hello, In my experience extra options goes at beginning of line right after ovftool.exe Using latest version of ovftool was having same issue as you until moved the options Your command ... See more...
Hello, In my experience extra options goes at beginning of line right after ovftool.exe Using latest version of ovftool was having same issue as you until moved the options Your command will be similar to ovftool.exe --X:progressSmoothing=10 --X:vCloudTimeout=60000 --X:vCloudKeepAliveTimeout=60000 --X: logFile=0ovf.log --X:logLevel=info  "source-vApp" "target-file" Regards Guillermo Ramallo bakingclouds.com
The best you can do is use OVFtool to download and upload large files using extra configuration values Some of them are:   --X:connectionFileTransferRetryCount: Specifies how many times... See more...
The best you can do is use OVFtool to download and upload large files using extra configuration values Some of them are:   --X:connectionFileTransferRetryCount: Specifies how many times up/downloads   --X:connectionReconnectCount        : Specifies how many times a reconnect   --X:connectionReconnectDelay        : Specifies the delay in milliseconds   --X:connectionRetryCount            : Specifies how many times up/downloads   --X:logFile                         : Log internal events to given log file.   --X:logLevel                        : Log level (none, quiet, panic, error,                                         warning, info, verbose, trivia).   --X:progressSmoothing               : Estimate download damping interval.   --X:vCloudKeepAliveTimeout          : Specify the vCloud connection keep   --X:vCloudTimeout                   : vCloud server timeout defined in                                         seconds. Default is 60 seconds (                                         --X:vCloudTimeout=60). Your command will be similar to ovftool.exe --X:progressSmoothing=10 --X:vCloudTimeout=60000 --X:vCloudKeepAliveTimeout=60000 --X: logFile=0ovf.log --X:logLevel=info  "source-vApp" "target-file" Regards Guillermo Ramallo bakingclouds.com
I used this one in the past to migrate a complete array give it a try Get off my array! (Scripting datastore migrations with PowerCLI) | Notes from a Sysadmin
Found this nice function in Luc blow we are using this one for DS. But recently we received the request to get same level of verifications for devices (RDM in this case or any LUN not used as dat... See more...
Found this nice function in Luc blow we are using this one for DS. But recently we received the request to get same level of verifications for devices (RDM in this case or any LUN not used as datastore) Does anyone knows a powercli function to perform same checks available from GUI for Device detach? http://www.lucd.info/2012/04/15/test-if-the-datastore-can-be-unmounted/ Regards Gui
Hi Luc, Thanks for your reply. I have VMware vSphere PowerCLI 5.1 Release 1 build 793510 on vSphere 5 environment. Commands below are executed to unmount and detach datastores also your functi... See more...
Hi Luc, Thanks for your reply. I have VMware vSphere PowerCLI 5.1 Release 1 build 793510 on vSphere 5 environment. Commands below are executed to unmount and detach datastores also your function to detach any LUN used as RDM or not in use. Get-Datastore $DATASTORE | Unmount-Datastore Get-Datastore $DATASTORE | Detach-Datastore To detach RDM $clustername = ‘ClusterA’, $canonicalname = 'eui.xxxxxxxxx', 'eui.xxxxxxxxxxxxx' Get-Cluster -Name $clustername | Get-VMHost | %{ Detach-Disk -VMHost $_ -CanonicalName $canonicalname} Used this yesterday to detach 12 RDM from 5 hosts cluster and took long time. Same behavior as for datastores. After unmap LUN from storage all hosts Rescan-HostsStorage $Host5 . All lines works and never experienced issues. Problem is PowerCLI executes the task for each datastore in one host at time and waits until command prompt returns to continue with next one. It considerably increase time to complete the job using a script against time required to manually do the job from vcenter, especially when I need to work on 30 hosts and 10 datastores/RDM's or more. It could take hours Our script use functions from this post http://communities.vmware.com/docs/DOC-18008 As you can see in post screenshots tasks are executed by host for each DS. From vcenter is more dynamic because I can quickly jump between hosts to unmount DS letting vcenter queue all the tasks. Is there a way to make PowerCLI send all the tasks and let vcenter queue the complete work in tasks queue? I investigated if this is possible but couldn’t find a way. Regards Gui
Hi Luc, Detach function works great. But I am having same issue as using detach-datastore. PowerCLI takes lot of time to complete each task. When I detach many datastores or RDM LUNs across ... See more...
Hi Luc, Detach function works great. But I am having same issue as using detach-datastore. PowerCLI takes lot of time to complete each task. When I detach many datastores or RDM LUNs across many hosts takes more time to complete the job by powercli than using vcenter client to do it manually. Hope you can help on this one. Regards Gui
Did you find root cause for this issue?
Yes, had a typo error in '$NetworkInfo.mgmtAddr' and my line 13 was '$NetworkInfo = "" | select-Object Host, PNic, Speed, MAC, DeviceID, PortID, Observed, VLAN, mgmtAddr' This is working now.... See more...
Yes, had a typo error in '$NetworkInfo.mgmtAddr' and my line 13 was '$NetworkInfo = "" | select-Object Host, PNic, Speed, MAC, DeviceID, PortID, Observed, VLAN, mgmtAddr' This is working now.. What object can be used to get NICs used by each vSS? Object PhysicalNicCdpInfo does not have that option. My intention of this report is analyse the vSS configuration for HA using different network adapters and physical switches reading this report. Thanks Luc
Hello I am checking my enviroment is properly configured for HA on virtual switches using uplinks connected to differents phisycal switches. For this I am using Alan script to get a report, its... See more...
Hello I am checking my enviroment is properly configured for HA on virtual switches using uplinks connected to differents phisycal switches. For this I am using Alan script to get a report, its a great script but I am trying to add the management add of DevID and virtual switchs information to know NICs being used by vSS. Alan script http://www.virtu-al.net/2008/12/12/detailed-vmware-host-network-information/ I tried to add those 2 lines to get the report just copying line 17 and modified with $NetworkInfo.mgmtaddr but didn't work. CDP information does not show vSS using each NIC. How can I add these info to report or modify vmware powercli script to get a report as Alan script with this info? http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1007069 Connect-VIServer MYVISERVER $filename = "c:\DetailedNetworkInfo.csv" Write "Gathering VMHost objects" $vmhosts = Get-VMHost | Sort Name | Where-Object {$_.State -eq "Connected"} | Get-View $MyCol = @() foreach ($vmhost in $vmhosts){ $ESXHost = $vmhost.Name Write "Collating information for $ESXHost" $networkSystem = Get-view $vmhost.ConfigManager.NetworkSystem foreach($pnic in $networkSystem.NetworkConfig.Pnic){      $pnicInfo = $networkSystem.QueryNetworkHint($pnic.Device)      foreach($Hint in $pnicInfo){          $NetworkInfo = "" | select-Object Host, PNic, Speed, MAC, DeviceID, PortID, Observed, VLAN          $NetworkInfo.Host = $vmhost.Name          $NetworkInfo.PNic = $Hint.Device          $NetworkInfo.DeviceID = $Hint.connectedSwitchPort.DevId          $NetworkInfo.PortID = $Hint.connectedSwitchPort.PortId          $record = 0          Do{              If ($Hint.Device -eq $vmhost.Config.Network.Pnic[$record].Device){                  $NetworkInfo.Speed = $vmhost.Config.Network.Pnic[$record].LinkSpeed.SpeedMb                  $NetworkInfo.MAC = $vmhost.Config.Network.Pnic[$record].Mac              }              $record ++          }          Until ($record -eq ($vmhost.Config.Network.Pnic.Length))          foreach ($obs in $Hint.Subnet){              $NetworkInfo.Observed += $obs.IpSubnet + " "              Foreach ($VLAN in $obs.VlanId){                  If ($VLAN -eq $null){                  }                  Else{                      $strVLAN = $VLAN.ToString()                      $NetworkInfo.VLAN += $strVLAN + " "                  }              }          }          $MyCol += $NetworkInfo      } } } $Mycol | Sort Host, PNic | Export-Csv $filename -NoTypeInformation
Hi I am new to powercli but I am needing a solution for a critical VM. Is there any script with features below? 1) Create a new clone from online machine 2) Delete the old clone (if exists... See more...
Hi I am new to powercli but I am needing a solution for a critical VM. Is there any script with features below? 1) Create a new clone from online machine 2) Delete the old clone (if exists) but first check the new clone was successfully created 3) Select the best datastore to put the new clone 4) Select the best host to put the new clone 5) Send an e-mail if the task was successful or failed Thanks for help...