In terms of XenServer, I don't think the UUID typically presented via the bios.
You can get it either by reading /sys/hypervisor/uuid or by using xenstore-read (e.g. xenstore-read domid followed by xenstore-read /local/domain/<id>/vm) Thanks, Bob From: openstack-bounces+bob.ball=citrix....@lists.launchpad.net [mailto:openstack-bounces+bob.ball=citrix....@lists.launchpad.net] On Behalf Of Zhiqiang Zhao Sent: 22 March 2013 07:30 To: openstack@lists.launchpad.net Subject: [Openstack] A question on Unique ID for instance in Compute v2.0 api Hi Experts, Is the id the same as uuid for vms? I've checked it when I use qume to lauch vms. Dmidecode in vm console: [root@10-0-0-6 ~]# ./dmidecode -t system # dmidecode 2.10 SMBIOS 2.4 present. System Information Manufacturer: OpenStack Foundation Product Name: OpenStack Nova Version: 2013.1 Serial Number: 42139d49-16d1-0942-ae83-3c529bb30435 UUID: F1998E0A-B45A-4149-A06A-F8975FEFDB68 Wake-up Type: Power Switch SKU Number: Not Specified Family: Not Specified openstack json response: {"server": {"status": "ACTIVE", "updated": "2013-03-11T01:59:03Z", "hostId": "ee8502390822a52801706dcdbe42369c5a12f3f2debbff60726a4ce7", "OS-EXT-SRV-ATTR:host": "crdc-210-5-2-control.cisco.com", "addresses": {"private": [{"version": 4, "addr": "10.0.0.6", "OS-EXT-IPS:type": "fixed"}]}, "links": [{"href": "http://10.74.125.74:8774/v2/ec38725672344e0ba756bc007a420b66/servers/f1998e0a-b45a-4149-a06a-f8975fefdb68", "rel": "self"}, {"href": "http://10.74.125.74:8774/ec38725672344e0ba756bc007a420b66/servers/f1998e0a-b45a-4149-a06a-f8975fefdb68", "rel": "bookmark"}], "key_name": null, "image": {"id": "c946b09d-ad2f-4c06-873b-bcc08000824d", "links": [{"href": "http://10.74.125.74:8774/ec38725672344e0ba756bc007a420b66/images/c946b09d-ad2f-4c06-873b-bcc08000824d", "rel": "bookmark"}]}, "OS-EXT-STS:task_state": null, "OS-EXT-STS:vm_state": "active", "OS-EXT-SRV-ATTR:instance_name": "instance-00000010", "OS-EXT-SRV-ATTR:hypervisor_hostname": "crdc-210-5-2-control.cisco.com", "flavor": {"id": "bcbdb244-e98a-4f11-954c-fb0fcf2cae6e", "links": [{"href": "http://10.74.125.74:8774/ec38725672344e0ba756bc007a420b66/flavors/bcbdb244-e98a-4f11-954c-fb0fcf2cae6e", "rel": "bookmark"}]}, "id": "f1998e0a-b45a-4149-a06a-f8975fefdb68", "security_groups": [{"name": "default"}], "OS-EXT-AZ:availability_zone": "nova", "user_id": "cd62dcd084ae4078b9e5cedaac6d8dcd", "name": "test2", "created": "2013-03-11T01:58:54Z", "tenant_id": "ec38725672344e0ba756bc007a420b66", "OS-DCF:diskConfig": "MANUAL", "accessIPv4": "", "accessIPv6": "", "progress": 0, "OS-EXT-STS:power_state": 1, "config_drive": "", "metadata": {}}} You can see UUID is consistent with ID. My question is: If I use ESXi or XEN as hypervior, is it always correct by this way? Currently I'm just using QUME to lauch vms. Best Regards! Henry
_______________________________________________ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp