Posts

Unable to confgure vSphere HA agent on ESX host "Configuration Error"

Image
I did my ESX host patching today and after that ESX host was rebooted and I exit that from Maintenance Mode but host was not able to join in HA. vSphere HA agent failed to install on ESX host. Below error occurs while host tried to install the vSphere HA agent. I also tried to Reconfigure HA manually but getting below error on the host. " The object 'vim.Datastore:datastore-4473' has already been deleted or has not been completely created " First, I checked what all datastores are present on all ESX host from SAN end via below command. Get-Cluster | Get-Datastore | Select Name, ID | Sort ID From the above output, i didn't find the datastore-4473 exist on the ESX host. The  datastore-4473 was deleted directly from Hosts instead of unmounted and detached bcuz that LUN was not in use by any VM but use by HA for heartbeat purpose . Now, it is clear that ESX host was searching for above data store during HA config on host and due to unavailability of dat...

How to kill "In Progress" request task running on vRA portal.

Hello Everyone, This post is based on vRealize Automation 7.3 versions. This is regarding to the issue occurs when a user request a VM from vRA portal and give incorrect details or any other issues due to which request stuck in vRA portal with status "In Progress". Please follow below steps to kill that "In Progress" tasks within vRA. To resolve this issue, we need to clean up the Postgres database for those "In Progress"tasks. 1.    Take a valid backup of Postgres database via below command.         su -m -c "/opt/vmware/vpostgres/current/bin/pg_dump -Fc vcac > /tmp/vcac.sql" postgres 2.    Login in vRA appliance via ssh with root account.    3. run command cd /opt/vmware/vpostgres/current/bin 4.  run command  ./psql -U postgres -d vcac 5. run command  SELECT id,requestnumber,state FROM cat_request where                        reques...

How to Remove a VM from vRA portal having status "Disposing".

Image
Please follow the below steps to remove/unregister a VM from vRA portal. Download VMware vRealize cloud client 4.4 version from VMware portal (https://my.vmware.com/web/vmware/details?downloadGroup=CLOUDCLIENT_440&productId=491) and go to bin folder and run cloudclient.bat file for Windows or cloudclient.sh if using Unix/Linux system. CloudClient command prompt will open like below screenshot. Log in to the vRA appliance by running this command: vra login userpass --user " username " --tenant " Tenant  Name" --server " vRA portal FQDN"  --password " Password" Log in to the IAAS machine by running this command: vra login iaas --user "username " --domain " domain name" --server " web server FQDN"  --password " Password" Remove the unwanted machine from vRealize Automation by running this command: vra machines forceunregister --name ...