VMware vSphere

 View Only
  • 1.  How many specific IDs each VM has??

    Posted Jul 24, 2014 07:16 PM

    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??



  • 2.  RE: How many specific IDs each VM has??

    Posted Jul 24, 2014 09:24 PM

    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 - VMware Blogs
    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.



  • 3.  RE: How many specific IDs each VM has??

    Posted Jul 25, 2014 04:25 PM

    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??



  • 4.  RE: How many specific IDs each VM has??

    Broadcom Employee
    Posted Jul 25, 2014 05:09 PM

    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.



  • 5.  RE: How many specific IDs each VM has??

    Posted Jul 25, 2014 05:22 PM

    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.



  • 6.  RE: How many specific IDs each VM has??

    Posted Jul 25, 2014 05:48 PM

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



  • 7.  RE: How many specific IDs each VM has??

    Posted Jul 25, 2014 06:00 PM

    Whats the issue?

    On standalone host they are two for the VM object:

    -BIOS.UUID

    -MoReF

    Regards

    P.



  • 8.  RE: How many specific IDs each VM has??
    Best Answer

    Posted Jul 25, 2014 06:03 PM

    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