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 libc.so.6 version by:
~# /lib/libc.so.6

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 libc.so.6 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
linux-gate.so.1 => (0x009f0000)
libm.so.6 => /lib/libm.so.6 (0x00c80000)
libc.so.6 => /lib/libc.so.6 (0x00ac4000)
/lib/ld-linux.so.2 (0x00a9e000)

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

References:
http://ipmitool.sourceforge.net/
http://blog.rchapman.org/post/17480234232/configuring-bmc-drac-from-esxi-or-linux

Advertisements

Make a Comment

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s

4 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. […]

helpful……

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 http://distrowatch.com/table.php?distribution=Ubuntu 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.


Where's The Comment Form?

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

%d bloggers like this: