Virtual Geek

Tales from real IT system administrators world and non-production environment

Stuffs from real IT system ADMINISTRATORS world and my LAB

Forward vCenter Server Appliance logs to syslog server

Using Syslog server to forward the logs from vCenter is essential and best practice, forwarding logs to syslog server should always be in your configuration checklist. This is also a automated best way to ensure all the logs are streamed. Collected logs are used later for better troubleshooting vCenter server related issues incase of vCenter is failed. This also achieve the goal of centralizing vC…

Read more

VMware vCenter Server Management Exception in invoking authentication handler user password expired

While logging to vCenter VAMI portal (VMware vCenter Server Management Port 5480), I was receiving below error message with my root login.

Exception in invoking authentication handler User password expired.

This issue is due to the root password for VAMI portal is expired. Although you can still login through SSH. Check Enable or disable SSH on VMWare vCenter Server Appliance (VCSA) and E…

Read more

VMware LifeCycle Manager import updates bundle and patch ESXi server

With VMware vCenter version 7 Lifecyle Management is greatly improved as with new name lifecycle manager with new features (formerly VUM [VMware Update manager]). The new innovations for lifecycle management in vSphere 7 make it easy for customers to have consistent and up-to-date systems. The major lifecycle management improvements in vSphere 7 are vCenter Server Profiles, Update Planner and vSph…

Read more

How to update a patch on an ESXi host via command line

When it comes to upgrade/update patches or ESXi version my preferred method is VMware Lifecycle manager / VMware update manager vum. But there are scenarios or issues while updating ESXi using VUM / LifeCyle manager or also this procedure helps if ESXi server is standalone and not managed by vCenter server. 

Source KB: & VMware LifeCycle Manager im…

Read more

VMware LifeCycle Manager There are conflicts from the patches selected for staging or remediation

I was testing ESXi patching through Lifecycle Manager/VUM (Vmware Update Manager). While remediating patch bundle on ESXi server, there was electricity issue and my Esxi server and vCenter server got powered off abruptly in the middle of update. After powering on the vCenter and Esxi server I tried to to repeat process Remediating / Staging patch on the Esxi. I was receiving below error.


Read more

VMware WorkStation error This Virtual Machine appears to be in use

Recently my Windows OS crashed after some electricity issues where VMware WorkStation was installed. After powering on my lab servers again I was not able to Power On virtual machines on the VMware WorkStation and it was giving below error.

This virtual machine appears to be in use.
If this virtual machine is not in use, press the "Take Ownership" button to obtain ownership of it. Otherwise, …

Read more

Configure PTP (Precision Time Protocol) on ESXi Server

Time keeping on ESXi server is a best practice, It helps in SSL certificate authentication and troubleshooting (logs/activities), it is very essential to Time configuration settings on ESXi server after deployment or after later. I have written two articles earlier on this topic.

vSphere ESXi security best practices: Time configuration - (NTP) Network Time Protocol
VMWare Powercli: Time Conf…

Read more

Powershell adding leading zeros to string or int

I was working on a script project where I wanted to create and defined names for multiple virtual machine in the series, with maintaining length of the string of names with numbers adding leading zeros, Below -f format operator one-liner command helps me to create the list.

1..10 | ForEach-Object {"{0:d4}" -f ($_ * 11)}

1..10 | ForEach-Objec…

Read more

Powershell Dell iDrac redfish Rest API basic authentication

In one of my blog Configure Dell iDrac9 Rest API with Powershell I showed how use x-auth-token to connect to Dell iDrac, here I instead of token, using basic authentication (use UserName and Password each time to connect to Redfish iDRAC rest api), This is just a example and I will be using explicit credential in Invoke-RestMethod.

Microsoft Powershell dell idrac basic authentication rest api automation script ps1 invoke-restmethod certificatepolicy trustallcertspolicy new-object x509cert system.embeeded redfish.png

As you can see each time it need to create a session usi…

Read more

Powershell web scrapping extract table from html

This is small script I use to collect the table data from website to Powershell Object and then further it can be saved to csv file. For this example I am taking table example from I will try to convert table to Powershell Object. HTML tables has tags th (Table header) and td (Table data), all the data is between these HTMLs tags, to extract the data, I will just remove t…

Read more

View older posts »

Page Views


you saved my bacon with this, thank you!

Same error happened with me during installation of vCenter 6.7 but entries of my server are present in both forward lookup as well as in reverse lookup, cmd is resolving server with both IP and Hostname. Can't seem to resolve this issue, I have tried installation multiple times with local and domain accounts but no luck.

Bruddah.. this is awesome, thanks for making life easier for us small time IT people..

Thank You - This worked like a charm on a site that had a invalid certificate.

Follow me on Blogarama