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] Q: How to find own domid or uuid from domU?

To: Christian.Limpach@xxxxxxxxxxxx
Subject: Re: [Xen-devel] Q: How to find own domid or uuid from domU?
From: Markus Armbruster <armbru@xxxxxxxxxx>
Date: Tue, 23 May 2006 09:52:00 +0200
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx, "Andrew D. Ball" <aball@xxxxxxxxxx>
Delivery-date: Tue, 23 May 2006 00:52:26 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <3d8eece20605180959i5b06dbd2q3f66ebfeba0be255@xxxxxxxxxxxxxx> (Christian Limpach's message of "Thu, 18 May 2006 17:59:51 +0100")
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <87fyj7ravp.fsf@xxxxxxxxxxxxxxxxx> <877j4jr7gd.fsf@xxxxxxxxxxxxxxxxx> <87882c2fef4a6cb52eeb9881d1b4ca4a@xxxxxxxxxxxx> <87r72rppv2.fsf@xxxxxxxxxxxxxxxxx> <c7b7a9451577705256438d2456881321@xxxxxxxxxxxx> <87iro3pj2z.fsf@xxxxxxxxxxxxxxxxx> <0cbcc9c018815b56e92521554c2cd585@xxxxxxxxxxxx> <446C8488.1030503@xxxxxxxxxx> <8d2b2f0e40dfb24f939a81970a493a7f@xxxxxxxxxxxx> <446C910A.50000@xxxxxxxxxx> <3d8eece20605180959i5b06dbd2q3f66ebfeba0be255@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.4 (gnu/linux)
"Christian Limpach" <christian.limpach@xxxxxxxxx> writes:

> There's a uuid node under the vm path.  I.e. you'd do:
> vmpath=$(xenstore-read vm)
> uuid=$(xenstore-read $vmpath/uuid)

Works in dom0:

    # xenstore-read vm
    /vm/00000000-0000-0000-0000-000000000000
    # xenstore-read /vm/00000000-0000-0000-0000-000000000000/uuid
    00000000-0000-0000-0000-000000000000

Fails in domU:

    # xenstore-read vm
    /vm/947df77a-58b5-4e3d-9b6c-aa0178d8e133
    # xenstore-read /vm/947df77a-58b5-4e3d-9b6c-aa0178d8e133/uuid
    xenstore-read: couldn't read path 
/vm/947df77a-58b5-4e3d-9b6c-aa0178d8e133/uuid

Please advise.

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

<Prev in Thread] Current Thread [Next in Thread>