I would like to be able to reliably determine the UUID associated with an OpenStack guest from within the guest. A klugey way to do it would be something like:

# nova show `hostname` | grep ' id '
| id                                   | 10493365-870f-4ff1-86ed-500b4b8db814                                 |

However, the hostname that a system knows itself as would not necessarily be the hostname that OpenStack knows the guest as.

Is there a way do do what I want? BTW, I'd actually be running this at Rackspace.

  • Is this on the Rackspace Public Cloud or a Rackspace OpenStack Private Cloud? – phoebus Nov 14 '14 at 23:37
  • Rackspace Public – jcollie Nov 15 '14 at 3:13

I like to use xenstore-read name. This asks the hypervisor for the instance's name.

# xenstore-read name

I refer to this page frequently, specifically the section "XenStore commands to be run on guest VM".

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.