VMware Cloud Community
amircsco
Enthusiast
Enthusiast
Jump to solution

How many specific IDs each VM has??

i'm really interested to know that how many IDs exists for a VM???

i did some search and i found that there are 15 unique and specific IDs associated to each VM, is it correct??

if yes, what make them unique and guarantee that two VM on to different ESXi Host  won't have the same IDs??

Tags (2)
1 Solution

Accepted Solutions
vNEX
Expert
Expert
Jump to solution

MoRef ID on ESXi host can change in situations like vMotion, Storage vMotion, DR restore, Full restore from backup etc.

Bios.UUID is static unique identifier...

--------------------------------------------

EDITED to correct information

_________________________________________________________________________________________ If you found this or any other answer helpful, please consider to award points. (use Correct or Helpful buttons) Regards, P.

View solution in original post

0 Kudos
7 Replies
vNEX
Expert
Expert
Jump to solution

Hi,
to identify objects/entities in vSphere environment there are two properties which ensures its uniqueness:
- instanceUUID (128-bit integer) [replacement for SMBIOS UUID]
- MoRef ID (vm-214; cluster-3 ...)

these are not only assigned to VMs but also to other VI "objects" like hosts, datacenters, clusters, datastores ...etc.
by combining instanceUUID with MoRef ID you can uniquely identify objects across multiple vCenter server instances.

For more detailed and precise info look at these great posts:
http://www.virtuallyghetto.com/2011/11/vsphere-moref-managed-object-reference.html
Uniquely Identifying Virtual Machines in vSphere and vCloud Part 1: Overview | VMware vSphere Blog -...
instanceUuid | VMware vSphere Blog - VMware Blogs
VMware KB: Looking up Managed Object Reference (MoRef) in vCenter Server
Design and Implementation Overview

_________________________________________________________________________________________

If you found this or any other answer helpful, please consider to award points. (use Helpful or Correct buttons)

Regards,

P.

_________________________________________________________________________________________ If you found this or any other answer helpful, please consider to award points. (use Correct or Helpful buttons) Regards, P.
amircsco
Enthusiast
Enthusiast
Jump to solution

Thank you vNex that was very helpful, i'm working with couple of ESXi single hosts in my Datacenter and for now i don't have any vCenter infrastructure.

so without considering datacenters, clusters, datastores i just need to find unique IDs assigned to a VM on a ESXi host. Also i would really appreciate if you can tell me that how many are they??

0 Kudos
vThinkBeyondVM
VMware Employee
VMware Employee
Jump to solution

If you do not have vCenter server.

One of the ways to know VM managed object reference (MO Ref)@VMs,datastores is to explore the managed object browser (mob) as follows:

Open browser >>open this URL>>"https://<Your ESXi host IP>/mob"  >>This will prompt you to enter ESXi credentials >>Then just explore.


----------------------------------------------------------------
Thanks & Regards
Vikas, VCP70, MCTS on AD, SCJP6.0, VCF, vSphere with Tanzu specialist.
https://vThinkBeyondVM.com/about
-----------------------------------------------------------------
Disclaimer: Any views or opinions expressed here are strictly my own. I am solely responsible for all content published here. Content published here is not read, reviewed or approved in advance by VMware and does not necessarily represent or reflect the views or opinions of VMware.

vNEX
Expert
Expert
Jump to solution

Hi,

in VM configuration file (.vmx) you will find the reference for UUID.BIOS (legacy UUID)

uuid.bios = "42 1f 87 31 af a3 7b c3-a1 ea c5 49 fe b3 e7 3e"

as I post it above you can also have a look at MOB for MoRef ID on the standalone host see KB1017126

instanceUUID if I understand it correctly is vCenter server specific identifier.

Thanks

Regards,

P.

_________________________________________________________________________________________ If you found this or any other answer helpful, please consider to award points. (use Correct or Helpful buttons) Regards, P.
amircsco
Enthusiast
Enthusiast
Jump to solution

i appreciate for your responses guys  but unfortunately still i don't have efficient answer to my issue.

0 Kudos
vNEX
Expert
Expert
Jump to solution

Whats the issue?

On standalone host they are two for the VM object:

-BIOS.UUID

-MoReF

Regards

P.

_________________________________________________________________________________________ If you found this or any other answer helpful, please consider to award points. (use Correct or Helpful buttons) Regards, P.
0 Kudos
vNEX
Expert
Expert
Jump to solution

MoRef ID on ESXi host can change in situations like vMotion, Storage vMotion, DR restore, Full restore from backup etc.

Bios.UUID is static unique identifier...

--------------------------------------------

EDITED to correct information

_________________________________________________________________________________________ If you found this or any other answer helpful, please consider to award points. (use Correct or Helpful buttons) Regards, P.
0 Kudos