Team Leader - Nutanix Technology Champion - Nutanix NTC Storyteller

Julien DUMUR
Infrastructure in a Nutshell
Recovering a lost IPMI password on a Nutanix or Supermicro node

A little misadventure happened to me recently. After changing the IPMI password on my 1-node, I couldn’t log back into my node’s management interface. Forgot it instantly? Typo? Botched copy-paste? Whatever the reason, the access lockout was very real.

Losing your IPMI password (or BMC) is enough to make anyone break a sweat. But rest assured, experience has taught me a golden rule: as long as you still have access to the host operating system (whether it’s AHV, a standard Linux, or even ESXi), you can regain control without needing to perform a hardware reset.

However, the situation can be more critical than it seems. For the experts reading this, you know that in a Nutanix Single-Node environment, IPMI isn’t just an administrative convenience: it’s your one and only fail-safe. Without it, you can’t mount a Phoenix ISO via Remote Media during a major AOS crash or force a reboot. Losing BMC access on such a node quickly becomes a critical bottleneck for your production and remote console access.

In this guide, I’ll share the different methods to regain control of your node in a matter of minutes, from the gentlest approach to the last resort.

Method 1: In-band Reset via ipmitool

If you are running Nutanix AHV or a classic Linux distribution, you’re in luck: the ipmitool utility is usually available natively. The trick here relies on the KCS (Keyboard Controller Style) hardware channel. Simply put, this allows the host OS to communicate directly with the BMC chip via the motherboard bus (LPC/PCIe), entirely bypassing the management network.

Identify and Overwrite the Admin Account

Log in as root on your host. As a precaution, first ensure that the kernel modules managing IPMI are loaded:

modprobe ipmi_si
modprobe ipmi_devintf

Next, we’ll list the configured users (usually on channel 1) to spot the ID of our administrator account. In 99% of cases, the default account (ADMIN) corresponds to ID 2.

ipmitool user list 1

In my case, the ID is indeed 2:

ipmitool user list 1 output with the ADMIN account on ID 2

Once the ID is confirmed, the command to force a new password is child’s play:

ipmitool user set password 2 'MyNewPwd123!'

When entering the previous command, the terminal might throw a nasty Invalid data field in request error.

Don’t panic; it’s simply the security policy parser of some firmwares rejecting your request. Not only does it require a minimum complexity (8 characters, uppercase, lowercase, number), but it can also be picky about the request format.

To bypass (or rather, satisfy) this mechanism, force the encoding length to 20 bytes by simply appending 20 to the end of your command:

ipmitool user set password 2 'MyNewPwd123!' 20

Your password has now been overwritten. You can test the connection to the web interface.

Method 2: The IPMICFG Utility (The Solution for VMware ESXi)

If you are running VMware ESXi, the first method might leave you stranded. Why? Because ipmitool is not packaged natively, and resolving dependencies to compile it on a hypervisor is a waste of time that I wouldn’t recommend.

The workaround is called IPMICFG. This is the official tool provided by Supermicro (downloadable from their portal with a free account). Its massive advantage is that it comes as static binaries, ready to use for Linux, Windows, and crucially, ESXi.

Once the archive is transferred to your host and extracted, using it is very straightforward:

./IPMICFG-Linux.x86_64 -user list
./IPMICFG-Linux.x86_64 -user setpwd 2 MyNewPwd123!

Note: Adapt the binary name if you are using the Windows or ESXi version.

You can download the utility here: https://www.supermicro.com/wdl/utility/IPMICFG/

Extreme Case: The Node No Longer Has a Bootable OS

What if the OS won’t boot at all? This is usually where the sweating starts, thinking that without network access to the IPMI or a functional OS, the only remaining option is a factory reset.

Remember: the KCS interface is exposed at the hardware level as soon as the BIOS POST completes. It is completely independent of your storage’s state.

All you have to do is boot the server from a USB stick containing a Linux Live CD (Ubuntu, Rocky Linux). Once on the live desktop, open a terminal, install the utility if it isn’t already there (e.g., apt install ipmitool), and run the exact same commands from Method 1.

Last Resort Method: The BMC Factory Reset

If for some obscure reason the previous methods fail, there is one ultimate resort left: resetting to factory settings.

With the Supermicro tool, the command is direct:

./IPMICFG-Linux.x86_64 -fd

And if you prefer the pure ipmitool method, you need to send a RAW command:

ipmitool raw 0x3c 0x40

⚠️ Warning, the consequences are heavy: Your entire BMC configuration is wiped clean. You will lose the static IP (the port reverts to DHCP), VLAN configurations, and user accounts. The BMC will then reboot (expect a good 2 to 3 minutes). Pay close attention to recent generations of servers: the password may not revert back to ADMIN/ADMIN. It defaults to the unique password printed on the OCP label (often stuck on the chassis or motherboard). Keep this in mind if your server is physically located on the other side of the world!

My Recommendations

Once access is recovered via method 1 or 2, here is what I systematically do to cover my back:

  1. The Password Manager: It’s basic, but save your creds immediately instead of keeping them in your copy-paste clipboard.
  2. The Backup Account: Create a second administrator account.
  3. The Slot ID Trick: Do not put your backup account on Slot ID 3. Force its creation on a higher Slot (like 5 or 6). Why? Because some infrastructure automation scripts have the annoying tendency to forcefully overwrite or modify the early Slots (2 and 3) during provisioning. By placing it further down, you safeguard it.

What about you? Have you ever locked yourself out of one of your nodes? Share your worst nightmare in the comments below!

Read More
Power consumption of my Nutanix cluster

As everyone knows, the cost of running a homelab is something to consider when you start setting up your infrastructure at home. Here is my feedback…

My Nutanix homelab

To start, it is good to take stock of the configuration of my homelab which I mainly use to carry out tests and write my articles.

It is a slightly old server based on an Intel S2600WTTR motherboard which was in service from early 2016 to mid 2020.

In terms of configuration, it is a dual-processor Intel Xeon E5-2640 @ 2.4GHz (10 cores 20 threads) with 384Gb of RAM.

For storage, I can count on:

  • 1 lambda SSD of 120GB for the system
  • 4 SAS SSDs of 800Gb of type WUSTR6480ASS204
  • 6 SAS HDDs of 1.8Tb (10k rpm) of type ST1800MM0129

Connectivity is limited to 2 onboard RJ45 ports supported by a 4-port network card.

A single connected power supply to avoid consuming too much energy (no critical applications, therefore no impact in the event of a failure).

Detailed Server Configuration: https://juliendumur.fr/en/nutanix-ahv-perform-a-comprehensive-hardware-inventory/

Motherboard product page: https://www.intel.fr/content/www/fr/fr/products/sku/88281/intel-server-board-s2600wttr/specifications.html

CPU product page : https://www.intel.fr/content/www/fr/fr/products/sku/92984/intel-xeon-processor-e52640-v4-25m-cache-2-40-ghz/specifications.html

That’s the configuration as a whole, now let’s see what it consumes…

Cluster power consumption

To be able to measure the power consumption of my cluster, I purchased a Meross smart plug (on Amazon: https://amzn.to/4d4p6q9) that I added to my HomeAssistant server.

This allows me to activate and deactivate the plug remotely and thus measure the power consumption of the devices and equipment connected to it.

In my case, the plug is dedicated to my Nutanix cluster in order to have the most accurate and consistent measurement possible.

Nutanix cluster power consumption chart

On the graph, we can see:

  • August 18 and 19: the socket is in place but it is “off”
  • from August 20 to September 4: socket on but cluster off, consumption corresponds to the IPMI
  • September 5 and 6: cluster on during the day for repair
  • since September 8: cluster on 24/7

Consumption of the cluster off: approximately 440Wh per day

Consumption of the cluster on: approximately 5850Wh per day

Related to one year:

Consumption of the cluster off: 440 x 365 = 160.6 kWh

Consumption of the cluster on: 5850 x 365 = 2138.9 kWh

In terms of cost, this represents the following amounts at the regulated rate in France:

Cluster off: 160.6 x 0.25 = 40.15 euros

Cluster on: 2138.9 * 0.25 = 535 euros approximately

The operation of the cluster therefore represents a significant operating cost to take into account when you start creating an infrastructure at home. I find this consumption quite high, this is due to the age of my server which does not benefit from recent electrical optimizations. For my part, I only turn it on when I have tests, demonstrations to perform or articles to write, to keep costs down.

Read More

Subscribe