Skip to main content

Get UUID from VM and ESX

Sometimes one wants to get the relation between a VM from the ESX inventory and from the system.
From ESX:
  # esxcli vm process list
  vm-inventory-name
  ...
  UUID: 56 4d 7c f7 f7 a6 a3 b1-fb 71 cd 3b 3c 34 65 0a


From Linux command line
  $ sudo dmidecode | grep UUID
  UUID: 564D7CF7-F7A6-A3B1-FB71-CD3B3C34650A

This is the relation and it's up to the user to reformat all these outputs.