Let's say I have multiple Citrix XenServer VMs with the same name. Or, the names are garbage, doesn't matter.
From the guest OS on one of those VMs, how can I programatically determine the ID of the VM? I was hoping the UUID of the VM would should as the guest OS's BIOS serial number, but it doesn't. Have looked everywhere, registry, WMI, you name it.
Now, the reason I won't just use the hostname, is that I might have multiple machines with same hostname (e.g. a full lab with copies of VMs).
Using XenServer 5.x and 6.x.
Cheers.