How to find which virtual machines are restarted by an HA failover

You have been paged because an ESXi host is unreachable. The host had gone down due to a hardware error. Along with it, the host took down a couple of VMs. Thankfully, you have vSphere HA turned on in the cluster and HA restart all the impacted VMs on other hosts in cluster.

Should you want to get a list of impacted VMs, VMware has a KB article.

Find the master node.
Continue reading “How to find which virtual machines are restarted by an HA failover”

How to find which virtual machines are restarted by an HA failover

What should we know before installing ESXi

If this is your first time installing ESXi, I bet you would be doing it in a virtual machine. There are several guides out there on the internet. VMware supports installing ESXi on a virtual machine for non-production use.

If you are going to install ESXi at work and your company is already using VMware, talk to your team for their install guide. If they don’t have one, take the opportunity to create one.

Install Method
Which install method are you going to use? The options are

  • Interactive ESXi installation
  • Scripted (Kickstart) ESXi installation
  • Auto Deploy ESXi installation
  • Customizing installations with ESXi Image Builder CLI

Via Methods for installing ESXi 6.0 (2109708)
Continue reading “What should we know before installing ESXi”

What should we know before installing ESXi

Port scan with curl and wget

Your server cannot communicate with another server on a port. You want to verify that port is open or not. But your favorite tools nc and nmap aren’t available and you cannot install them for one reason or another.

In this situation, you can use curl or wget.

$ wget -qS -O-  esxi.example.com:902
220 VMware Authentication Daemon Version 1.10: SSL Required, ServerDaemonProtocol:SOAP, MKSDisplayProtocol:VNC , VMXARGS supported, NFCSSL supported/t

$ curl   esxi.example.com:902
220 VMware Authentication Daemon Version 1.10: SSL Required, ServerDaemonProtocol:SOAP, MKSDisplayProtocol:VNC , VMXARGS supported, NFCSSL supported/t
Port scan with curl and wget

How to recover ESXi password with Linux boot disk

In the rare unfortunate event that you lost your ESXi root password, you can reset it with a Linux Live ISO. The reference article uses Ubuntu Live DVD. I used RHEL 7 Boot ISO and went into rescue mode. In theory, any Linux ISO that can you get a shell and mount fat16 partition should work.

The disk where ESXi installed will differ depending on how it was installed. In my case, I knew it was SD card installed. I could easily tell the install disk by the size. Besides, it was very clear from the partition layout. Newer ESXi uses GTP and not MBR. fdisk does not support GPT. Since I just needed to view the partition table, fdisk -l did the job.

How to recover ESXi password with Linux boot disk