I have a few weeks left on a couple of the dedicated servers I’m no longer using, so I figured it would be a good opportunity to refresh my VMware skills and perhaps learn something new with ESXi 6.5 (one of the best free hypervisors available, fully using hardware virtualization).
Turns out, you can install and use VMware PowerCLI on MacOS, pretty cool! As a pre-requisite, you need to install Windows PowerShell using Homebrew first. All the commands below are the PowerShell ones (you start it by typing pwsh).
SSL connection errors in VMware PowerCLI Because it’s a freshly installed ESXi instance with a self-signed SSL certificate, it will through a warning when connecting to the server using browser or using VMware PowerCLI:
This is because by default PowerCLI doesn’t have a defined approach to invalid SSL certificates. You can confirm it with the Get-PowerCLIConfiguration command:
Let’s update tihe InvalidCertificateAction setting to “Ignore”:
And now our connection should work just fine:
That’s it! Will publish more as I learn, so stay tuned!