Determine VMWare ESX version from Linux as guest OS

Recently I was asked to look at a virtual (linux) system which needed to be moved to a new datacenter. If you want to determine if you are on VM Ware, you can use either lspci or dmidecode. A little searching on the internet revealed it’s reasonably easy to determine the version of VMWare ESX using the BIOS Information:

case $( dmidecode | grep -A4 "BIOS Information" | grep Address | awk '{ print $2 }' ) in
"0xE8480" ) echo "ESX 2.5" ;;
"0xE7C70" ) echo "ESX 3.0" ;;
"0xE7910" ) echo "ESX 3.5" ;;
"0xE7910" ) echo "ESX 4"   ;;
"0xEA550" ) echo "ESX 4U1" ;;
"0xEA2E0" ) echo "ESX 4.1" ;;
"0xE72C0" ) echo "ESXi 5"   ;;
"0xEA0C0" ) echo "ESXi 5.1" ;;
"0xEA050" ) echo "ESXi 5.5" ;;
"0xEA580" ) echo "ESXi 6.5" ;;
* ) echo "Unknown version: "
dmidecode | grep -A4 "BIOS Information" 


  1. Laurent said:

    Thank you, very useful. You can complete it with 0xEA0C0 for ESX 5.1.

  2. Thank you Laurent! I’ve added your comment to the script in the article.

  3. dmidecode requires root access. If you don’t have root access, an alternative would be to search for VMWare MAC addresses in ifconfig output. VMWare MACs start with 00:05:69, 00:0C:29, 00:1C:14 or 00:50:56.

  4. Unfortunately, if you support VMWare Workstation and ESXi, then bad news: they both have the same address. Workaround: you can take into consideration the release date. Could you post release dates of esxi versions?

  5. 04/14/2014 – ESXi 5.5
    07/31/2013 – Workstation 10

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: