From: Markus Armbruster Subject: Re: Q: How to find own domid or uuid from domU? Date: Tue, 23 May 2006 09:52:00 +0200 Message-ID: <87sln1ch5r.fsf@pike.pond.sub.org> References: <87fyj7ravp.fsf@pike.pond.sub.org> <877j4jr7gd.fsf@pike.pond.sub.org> <87882c2fef4a6cb52eeb9881d1b4ca4a@cl.cam.ac.uk> <87r72rppv2.fsf@pike.pond.sub.org> <87iro3pj2z.fsf@pike.pond.sub.org> <0cbcc9c018815b56e92521554c2cd585@cl.cam.ac.uk> <446C8488.1030503@us.ibm.com> <8d2b2f0e40dfb24f939a81970a493a7f@cl.cam.ac.uk> <446C910A.50000@us.ibm.com> <3d8eece20605180959i5b06dbd2q3f66ebfeba0be255@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: In-Reply-To: <3d8eece20605180959i5b06dbd2q3f66ebfeba0be255@mail.gmail.com> (Christian Limpach's message of "Thu, 18 May 2006 17:59:51 +0100") List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Christian.Limpach@cl.cam.ac.uk Cc: xen-devel@lists.xensource.com, "Andrew D. Ball" List-Id: xen-devel@lists.xenproject.org "Christian Limpach" 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.