Make ipmitool working for ESXi 5.1

Posted on September 17, 2013. Filed under: Linux, Programming | Tags: , , |

ESXi 5.1 has no ipmitool command built-in, and has limited IPMI capability, we can build a static ipmitool binary for ESXi 5.1.

1. Login to ESXi 5.1, check it’s version by:
~# /lib/

Compiled by GNU CC version 4.1.2 20070626 (Red Hat 4.1.2-14).
Compiled on a Linux 2.6.9 system on 2012-03-21.

This means the is built on linux with kernel 2.6.9 and gcc 4.1.2, so we’d better setup a linux environment with the same linux kernel and gcc version, such as CentOS 4.8.

2. login to the linux environment, build static linked ipmitool binary
2.1 download the ipmitool source code from sourceforge
2.2 Compile. And adding “-static” linker option. The resulting binary I got back was not statically compiled, but worked. Omitting the -static flag caused ipmitool to throw compile errors, so I left it.
~/src/ipmitool-1.8.11$ ./configure CFLAGS=-m32 LDFLAGS=-static

~/src/ipmitool-1.8.11/src/$ ldd ipmitool => (0x009f0000) => /lib/ (0x00c80000) => /lib/ (0x00ac4000)
/lib/ (0x00a9e000)

2.3 copy the built binary to ESXi 5.1 server, it works fine


Make a Comment

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

6 Responses to “Make ipmitool working for ESXi 5.1”

RSS Feed for John's Blog Comments RSS Feed

[…] it actually worked on an ESXi host (another person did a similar compile with ipmitool as described here). So first I followed the instructions laid out in this blog on how to compile netperf for solaris. […]


Just been looking into doing the same with esxi 5.5

Compiled by GNU CC version 4.6.3.
Compiled on a Linux 3.0.27 system on 2013-04-11.

I have no idea what ‘Linux 3.0.27 system’ could be? Have VMWare moved over to having there own linux released used for building tools?

It should be kernel version, what you should do is to find any distro is using this kernel version. Such as it’s Linux kernel on version 11.10 is using 3.0, you can try it, it might work, and please let us know when u succeed, good luck.

hi John,

Would it be possible for your to share the compiled binary for me as i dont have tools/hw to build this on my own.

Sorry Sunil, I don’t have it too. While you have esxi you should be able install a Linux to do the work. 🙂

Where's The Comment Form?

Liked it here?
Why not try sites on the blogroll...

%d bloggers like this: