WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] How to get the persistent identifier of a domain?

On Thu, Dec 28, 2006 at 02:19:18PM -0500, Lily Huang wrote:

> Thanks for kind help from your guys.
> 
> After I specified the uuid in the configuration file, I got stable uuid
> across reboots. Now next question is:  how to get the uuid using program
> instead of command line. I mean, in the kernel space.

vm = xenstore-read "vm"
uuid = xenstore-read "$vm/uuid"

You ought to be able to do that from either kernel or userspace in a
domU, with the appropriate libraries installed.

Ewan.

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel